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:
YeonGyu-Kim
2026-01-01 23:30:33 +09:00
parent 1ceda05134
commit 7ef926d0c5
2 changed files with 244 additions and 1 deletions
+14 -1
View File
@@ -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(", ")}`)