fix(agents): Add type: http to MCP HTTP server configs#13
Merged
Conversation
Claude Code requires `type: "http"` for remote MCP servers but we omitted it, causing configs to be rejected as malformed. Also fix VS Code emitting deprecated `type: "sse"` and Codex inheriting Claude's `headers` key instead of its expected `http_headers`. Changes per agent: - Claude: add `type: "http"` to HTTP server output - Cursor: inherits Claude, now also gets `type: "http"` - VS Code: change `type: "sse"` to `type: "http"` - Codex: custom serializer with `http_headers` and no `type` - OpenCode: already correct, no change Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/2j5FKYpMaTzAMO17OdUbBZ4S1MTn7j43PbprXy0fgm8
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.
Claude Code requires
type: "http"for remote MCP servers, but dotagents omitted this field — causing Claude to reject the config as malformed. Auditing all 5 agent serializers revealed additional issues:typefield entirely — config rejected as malformedtype)type: "sse"instead oftype: "http"headerskey instead of Codex's expectedhttp_headerstype: "remote")Fixes all three broken agents by adding
type: "http"to Claude (inherited by Cursor), updating VS Code from"sse"to"http", and giving Codex its own serializer that mapsheaders→http_headersand omitstype.Also adds HTTP server e2e tests for every agent in
mcp-writer.test.tsto catch this class of bug going forward.Co-Authored-By: Claude noreply@anthropic.com
Agent transcript: https://claudescope.sentry.dev/share/sp-UeENVVXGpFReEmk6k7mczIHjWq3GcBaW3GKrWGeg