Repository navigation
docs: add "type": "http" to the .mcp.json example - #1734
Dhairya-007 wants to merge 3 commits into
Conversation
Without it Claude Code treats the entry as a stdio server, since it only infers the transport from "type", and the server never connects. Matches the --transport http flag used by the CLI command above. Closes open-circle#1564
The JSON block is the one Claude Code users need, but the sentence above it only named Cursor.
|
No actionable comments were generated in the recent review. WalkthroughThe coding agents guide adds Dhairya-007 to its contributor list and updates its JSON configuration instructions to mention Claude Code’s Possibly related PRs
Suggested reviewers: Merge Risk:
|
|
Withdrawing this — #1725 covers the same The only difference is placement: #1725 adds a separate block for the project-level file, this one amended the existing Cursor example. Either reads fine, and #1725 has priority. |
Closes #1564.
Adds
"type": "http"to the.mcp.jsonexample on the Coding agents guide.Why it's needed
I checked this against the current Claude Code MCP docs rather than going on the original report alone. For a URL-based entry the field isn't just recommended, it's required: an entry that has a
urlbut notypeis read as a stdio server, so Claude Code skips it and reportsThat also lines up with the
claude mcp add --transport http ...command directly above the JSON block, which writes thetypefield for you — so the two snippets on the page disagreed.Changes
"type": "http"added to the JSON example..mcp.json— that's the config this fix matters for.contributors, per the convention on the other guide pages.Three small commits rather than padding it out, since the actual fix is one line.
Notes
"streamable-http"is accepted as an alias, but"http"is what the docs use and matches the CLI flag.url.--parser mdx; the repo config pulls in@trivago/prettier-plugin-sort-imports, which isn't needed for MDX).Docs-only — no library code touched.
Summary by CodeRabbit