* fix(#3384): strip mcp__* tool grants from zcode-installed subagents ZCode's dispatcher treats every mcp__<server>__* entry in an agent's tools: frontmatter as a required MCP server and hard-fails the subagent spawn (CONFIGURATION_ERROR) when it is not connected, whereas Claude Code treats the same grants as an optional allowlist. ZCode shared Claude's verbatim agents copy (converter: null), so all 8 MCP-granted agents failed to spawn out of the box with zero MCP servers configured. Add convertClaudeAgentToZcodeAgent — a line-surgical converter that filters mcp__* entries out of the frontmatter tools: grant list (both inline comma and YAML block-list shapes) and preserves every other byte. Declare it on both of zcode's capability.json agents entries and cut zcode over to the descriptor-driven agents path (_DESCRIPTOR_AGENTS_RUNTIMES) so the legacy inline loop stops deleting+re-copying the converted agents raw. Claude Code, Kimi, and Gemini install behavior is unchanged. * chore(#3384): link changeset fragment to pr 3483 --------- Co-authored-by: sim <sim@local>
This commit is contained in:
@@ -3799,7 +3799,7 @@ const capabilities = {
|
||||
"prefix": "gsd-",
|
||||
"nesting": "flat",
|
||||
"recursive": false,
|
||||
"converter": null
|
||||
"converter": "convertClaudeAgentToZcodeAgent"
|
||||
}
|
||||
],
|
||||
"local": [
|
||||
@@ -3825,7 +3825,7 @@ const capabilities = {
|
||||
"prefix": "gsd-",
|
||||
"nesting": "flat",
|
||||
"recursive": false,
|
||||
"converter": null
|
||||
"converter": "convertClaudeAgentToZcodeAgent"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -7041,7 +7041,7 @@ const runtimes = {
|
||||
"prefix": "gsd-",
|
||||
"nesting": "flat",
|
||||
"recursive": false,
|
||||
"converter": null
|
||||
"converter": "convertClaudeAgentToZcodeAgent"
|
||||
}
|
||||
],
|
||||
"local": [
|
||||
@@ -7067,7 +7067,7 @@ const runtimes = {
|
||||
"prefix": "gsd-",
|
||||
"nesting": "flat",
|
||||
"recursive": false,
|
||||
"converter": null
|
||||
"converter": "convertClaudeAgentToZcodeAgent"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -727,6 +727,9 @@ const VALID_CONVERTER_NAMES = new Set([
|
||||
'convertClaudeAgentToCodexAgent',
|
||||
// ADR-1239 / #2092 Phase B Upgrade 1 — native .qwen/agents/*.md subagent projection.
|
||||
'convertClaudeAgentToQwenAgent',
|
||||
// #3384 — ZCode agents are Claude-shaped but its dispatcher treats mcp__* tools
|
||||
// grants as required MCP servers; this converter strips them at install time.
|
||||
'convertClaudeAgentToZcodeAgent',
|
||||
]);
|
||||
|
||||
// C3: Validate role:runtime body
|
||||
|
||||
Reference in New Issue
Block a user