feat(goose): add MCP extensions adapter (global config.yaml) - #1842
Merged
Conversation
Goose configures MCP servers as 'extensions' in the shared global user config ~/.config/goose/config.yaml; rulesync emitted nothing for Goose MCP. Add a global-only GooseMcp adapter that maps canonical MCP fields to Goose's non-standard schema (command->cmd with array tail folded into args, env->envs, url/httpUrl->uri, disabled->enabled:false) and derives the extension type (stdio / streamable_http / sse). Generation merges the extensions: block into the existing config.yaml, preserving other Goose settings, and never deletes the file. Registers goose in the mcp processor (project: false, global: true), flips the README/docs mcp column, adds unit + global E2E tests. Part of #1823 (Skills and recipes->commands/subagents are left to the maintainer). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…import normalization Address review: clarify that Goose MCP lives only in the global ~/.config/goose/config.yaml (mirrors Cline's global-only MCP, so no project gitignore entry), and document the intentional import normalization (uri->url, streamable_http->http). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Owner
Author
|
@dyoshikawa Thank you! |
This was referenced Jul 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an MCP adapter for the
goosetarget. Goose configures MCP servers as extensions in the shared global user config~/.config/goose/config.yaml(global only — Goose has no project-scoped MCP location), which rulesync previously did not emit.This is the slice of #1823 the maintainer chose to implement now. Goose Skills and recipes→commands/subagents remain tracked in #1823.
Mapping
Goose's extension schema is non-standard, so canonical MCP fields are mapped:
command→cmd(an arraycommandfolds its tail intoargs)env→envs,url/httpUrl→uri,headers→headers,timeout/networkTimeout→timeoutdisabled: true→enabled: falsetypeis derived:command⇒stdio; remoteurl⇒streamable_http(orssewhen canonicaltypeissse)nametoRulesyncMcpreverses the mapping for import. Generation merges theextensions:block into the existingconfig.yaml, preserving other Goose settings (model, provider, ...), and the file is never deleted (isDeletable() === false).Changes
src/features/mcp/goose-mcp.ts(GooseMcp) + unit tests.gooseinmcp-processor.ts(supportsProject: false,supportsGlobal: true).docs/reference/supported-tools.mdmcp column → supported (global);docs/reference/file-formats.mdGoose MCP note (skill docs synced).gooseto the global-mode mcp matrix.Verification
pnpm cicheck:codepasses (252 files, 6272 tests); goose global E2E passes.Part of #1823
🤖 Generated with Claude Code