Add stripOutputSchema config for Claude Code compatibility#62
Merged
pardeike merged 3 commits intopardeike:mainfrom Mar 29, 2026
Merged
Add stripOutputSchema config for Claude Code compatibility#62pardeike merged 3 commits intopardeike:mainfrom
pardeike merged 3 commits intopardeike:mainfrom
Conversation
Claude Code rejects MCP servers that include `outputSchema` in tools/list responses — this field is not part of the MCP tools spec. Only 4 of 110 RimBridgeServer tools carry it, but their presence causes Claude Code to drop the entire server on startup. Add `"stripOutputSchema": true` to ~/.gabs/config.json to strip the field from tools/list. Default is false so Codex and other clients that handle it are unaffected. Full tool metadata including outputSchema remains available via games.tool_detail. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Author
|
add tests |
Verify that: - outputSchema is preserved when config is false (default) - outputSchema is stripped when config is true - tools without outputSchema are unaffected - inputSchema is preserved when stripping outputSchema Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…test - findTool helper now takes *testing.T and fails on marshal/unmarshal errors - Add test verifying stripping does not mutate the original handler.Tool Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
70ddd97 to
5a16017
Compare
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
stripOutputSchemaboolean to~/.gabs/config.jsonthat stripsoutputSchemafromtools/listresponsesfalse— no behavior change for Codex or other MCP clientstrue, enables Claude Code to load all 110+ game tools as direct MCP toolsProblem
Claude Code rejects MCP servers that include
outputSchemain tool definitions returned bytools/list. This field is not part of the MCP tools spec (which only definesname,description,inputSchema), nor the Claude API tool spec.Only 4 of 110 RimBridgeServer tools carry
outputSchema, but their presence causes Claude Code to drop the entire GABS server. Confirmed by binary search: strippingoutputSchemais the only change needed — full tool names, descriptions, and input schemas all work at 123 tools.Config usage
{ "stripOutputSchema": true }Full tool metadata including
outputSchemaremains accessible viagames.tool_detail.Test plan
stripOutputSchema: false(default): no behavior change, Codex works as beforestripOutputSchema: true: all 123 tools (13 core + 110 game) load as direct MCP tools in Claude Codetools/list_changedworks — no disconnects aftergames.connectmcp__gabs__rimworld_rimbridge_pingreturns pong🤖 Generated with Claude Code