Skip to content

fix(doctor): read Amp and Goose MCP registrations instead of calling them unreadable - #1975

Merged
Fmarzochi merged 1 commit into
mainfrom
fix/doctor-amp-goose-readers
Oct 18, 2026
Merged

Fmarzochi merged 1 commit into
mainfrom
fix/doctor-amp-goose-readers

Conversation

@Fmarzochi

@Fmarzochi Fmarzochi commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

What

egc doctor reported the Amp and Goose MCP registrations as unreadable even when egc init had registered the servers. The MCP section only had readers for json, claude-cli, toml, zed-context-servers, opencode-mcp and crush-mcp, so the amp-settings and goose-yaml target formats fell through to "no reader for the format".

Change

  • Add a reader for amp-settings (JSON under the amp.mcpServers key the registrar writes).
  • Add a reader for goose-yaml (the YAML extensions list, each with a stdio transport).
  • Add a test for both readers, plus a guard that fails if any registration target format lacks a doctor reader, so a new target cannot reintroduce this gap.

Test

node --test tests/lib/doctor-mcp-readers.test.js passes all four cases: the two readers, an empty-key case, and the every-format-has-a-reader guard.


Summary by cubic

egc doctor now reads Amp and Goose MCP registrations instead of reporting them as unreadable when egc init had registered the servers.

  • Adds a JSON reader for the amp-settings format, reading servers from the amp.mcpServers key.
  • Adds a YAML reader for the goose-yaml format, reading servers from the extensions list.
  • Adds tests for both readers and a guard that fails if any registration target format lacks a doctor reader.

Written for commit 8417153. Summary will update on new commits.

View guided diff Turn on auto-fix

…them unreadable

The doctor only had readers for json, claude-cli, toml, zed-context-servers,
opencode-mcp and crush-mcp, so the Amp (amp-settings) and Goose (goose-yaml)
targets came back as unreadable even when egc init had registered the servers.
Add a reader for each, plus a test that fails if any registration target format
lacks a doctor reader.

Signed-off-by: Felipe Marzochi <fmarzochi@gmail.com>
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Oct 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Fmarzochi
Fmarzochi merged commit a7841ea into main Oct 18, 2026
36 checks passed
@Fmarzochi
Fmarzochi deleted the fix/doctor-amp-goose-readers branch October 18, 2026 05:48
@Fmarzochi Fmarzochi moved this to Done in EGC Roadmap Oct 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant