feat: add mcp_servers to agent.yaml for portable MCP server definitions#66
Conversation
…initions Define MCP servers once in agent.yaml and export to each provider's native format. Supports both stdio-based (command + args) and HTTP-based (url) servers. Tier 1 adapters (native MCP config): Claude Code (.mcp.json), Cursor (.cursor/mcp.json), Gemini (.gemini/settings.json), Codex (codex.json), OpenCode (opencode.json). Tier 2 adapters (markdown docs): system-prompt, copilot, openai, crewai, lyzr, nanobot, openclaw. Also fixes pre-existing duplicate .requiredOption bugs in export and import commands, and fixes codex case placed after default in export switch. Closes open-gitagent#57 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
231deb8 to
52d01a2
Compare
|
Apologies for the slow review — this should not have sat for a month. Brutally honest review: this is excellent and on-spec. What I love:
Things I want to confirm before merge:
Recommendation: merge. I'd like to see CI green on this branch (it currently shows no checks — possibly needs a rebase to pick up the workflow). If @chr1syy can rebase on Real apologies for the delay, and thank you for shipping this — |
|
Picking this back up — apologies for the longer-than-promised wait after my Apr-3 review. Re-read the diff against current main:
Merging. Will add the corresponding Closes #57. Thank you for the patience. |
Summary
mcp_serversfield toagent.yamlso MCP servers can be defined once and exported to each provider's native configuration formatcommand+args) and HTTP-based servers (url+headers).mcp.json), Cursor (.cursor/mcp.json), Gemini (.gemini/settings.json), Codex (codex.json), OpenCode (opencode.json).requiredOptionbugs in export/import commandsCloses #57
Test plan
gitagent validatepasses on updatedexamples/full/agent.yamlmcp_serversdefined for each format, verify output contains correct MCP config🤖 Generated with Claude Code