feat(skill): display MCP tool inputSchema when loading skills
Previously only tool names were shown. Now each tool displays its full inputSchema JSON so LLM can construct correct skill_mcp calls. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode)
This commit is contained in:
@@ -84,7 +84,20 @@ async function formatMcpCapabilities(
|
||||
])
|
||||
|
||||
if (tools.length > 0) {
|
||||
sections.push(`**Tools**: ${tools.map((t: Tool) => t.name).join(", ")}`)
|
||||
sections.push("**Tools:**")
|
||||
sections.push("")
|
||||
for (const t of tools as Tool[]) {
|
||||
sections.push(`#### \`${t.name}\``)
|
||||
if (t.description) {
|
||||
sections.push(t.description)
|
||||
}
|
||||
sections.push("")
|
||||
sections.push("**inputSchema:**")
|
||||
sections.push("```json")
|
||||
sections.push(JSON.stringify(t.inputSchema, null, 2))
|
||||
sections.push("```")
|
||||
sections.push("")
|
||||
}
|
||||
}
|
||||
if (resources.length > 0) {
|
||||
sections.push(`**Resources**: ${resources.map((r: Resource) => r.uri).join(", ")}`)
|
||||
|
||||
Reference in New Issue
Block a user