Title: `add_issue_comment`'s top-level `anyOf` (added in v1.10.0 / #3085) breaks Claude tool-use API compatibility · Issue #3126 · github/github-mcp-server · GitHub
Open Graph Title: `add_issue_comment`'s top-level `anyOf` (added in v1.10.0 / #3085) breaks Claude tool-use API compatibility · Issue #3126 · github/github-mcp-server
X Title: `add_issue_comment`'s top-level `anyOf` (added in v1.10.0 / #3085) breaks Claude tool-use API compatibility · Issue #3126 · github/github-mcp-server
Description: What's Wrong? add_issue_comment's inputSchema gained a top-level anyOf in v1.10.0 (introduced by #3085, fixing #3048): "inputSchema": { "anyOf": [ { "required": ["body"] }, { "required": ["reaction"] } ], "dependentSchemas": { ... }, "pr...
Open Graph Description: What's Wrong? add_issue_comment's inputSchema gained a top-level anyOf in v1.10.0 (introduced by #3085, fixing #3048): "inputSchema": { "anyOf": [ { "required": ["body"] }, { "required": ["reaction...
X Description: What's Wrong? add_issue_comment's inputSchema gained a top-level anyOf in v1.10.0 (introduced by #3085, fixing #3048): "inputSchema": { "anyOf": [ { "required"...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3126
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`add_issue_comment`'s top-level `anyOf` (added in v1.10.0 / #3085) breaks Claude tool-use API compatibility","articleBody":"### What's Wrong?\n\n`add_issue_comment`'s `inputSchema` gained a top-level `anyOf` in v1.10.0 (introduced by #3085, fixing #3048):\n\n```json\n\"inputSchema\": {\n \"anyOf\": [\n { \"required\": [\"body\"] },\n { \"required\": [\"reaction\"] }\n ],\n \"dependentSchemas\": { ... },\n \"properties\": { ... },\n \"required\": [\"owner\", \"repo\", \"issue_number\"],\n \"type\": \"object\"\n}\n```\n\nAnthropic's Claude tool-use API rejects any custom tool whose `input_schema` uses `oneOf`/`allOf`/`anyOf` at the top level:\n\n```\nAPI Error: 400 tools.N.custom.input_schema: input_schema does not support oneOf, allOf, or anyOf at the top level\n```\n\nSince MCP clients typically send the *entire* tool list in one request, this single non-conformant schema causes the **whole request** to fail with a 400 — even if `add_issue_comment` itself is never invoked in that turn.\n\n### Who hits this\n\nClients that eagerly forward the full MCP tool list to the Claude Messages API without sanitizing schemas first. Concretely:\n- `claude` CLI in headless mode (`claude -p`), e.g. as used by `anthropics/claude-code-action` in GitHub Actions with `ghcr.io/github/github-mcp-server` configured as a Docker MCP server. The 400 is request-level tool-schema validation, so it is model- and provider-independent (see anthropics/claude-code#63436).\n- Likely other MCP clients built on `@anthropic-ai/claude-agent-sdk` without a schema-sanitization layer.\n\nInteractive Claude Code sessions are generally unaffected because they defer full tool-schema loading via Tool Search (see anthropics/claude-code#64113 and #63436), but that mitigation does not apply to headless/CI/subagent invocations, so this is a real-world breaking regression for anyone running Claude-based automation against this server.\n\n### Suggested fix\n\nOther tools in this same release already express \"at least one of A or B\" without a top-level combinator, by nesting under `properties`/`dependentSchemas` instead (e.g. `issue_write`, `projects_write`, `update_issue_assignees`, `update_issue_labels`, `update_issue_type`). Could `add_issue_comment`'s validation be restructured the same way?\n\n### Version\n\nv1.10.0 (regression from v1.9.0 — introduced by #3085). The change is on `main`, so the latest `main` is affected as well.\n\n### Related\n\nClient-side (Claude Code) issues describing the same 400 mechanism and proposing schema sanitization before forwarding:\n- anthropics/claude-code#64113 (headless `claude -p`)\n- anthropics/claude-code#63436 (subagent/Workflow spawn)\n- anthropics/claude-code#84056 (open; proposes sanitizing regardless of code path)","author":{"url":"https://github.com/takasek","@type":"Person","name":"takasek"},"datePublished":"2026-08-20T07:45:03Z","url":"https://github.com/github/github-mcp-server/issues/3126"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:604599ff-dda0-5d00-9370-4167786b86c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E868:1C68A:EFA248:14CA931:6B06AEA9 |
| html-safe-nonce | b9594e19faff7307d6b775b7d742d371ddbe737e9a2e638ce868397deb87e3e0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODY4OjFDNjhBOkVGQTI0ODoxNENBOTMxOjZCMDZBRUE5IiwidmlzaXRvcl9pZCI6IjQ1NjU3MTIzNDU2Njk3NTE0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e79334273ad2f0165d22c77d4656257fa7907a4bf1bf1ea430a8f8fb0a473a47 |
| hovercard-subject-tag | issue:5200996050 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/github/github-mcp-server/3126/issue_layout |
| twitter:image | https://opengraph.githubassets.com/496167573c8049ca06b8204efc18accf224327eb33f0a5eb5f50860dc64f919c/github/github-mcp-server/issues/3126 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/496167573c8049ca06b8204efc18accf224327eb33f0a5eb5f50860dc64f919c/github/github-mcp-server/issues/3126 |
| og:image:alt | What's Wrong? add_issue_comment's inputSchema gained a top-level anyOf in v1.10.0 (introduced by #3085, fixing #3048): "inputSchema": { "anyOf": [ { "required": ["body"] }, { "required": ["reaction... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | takasek |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| turbo-cache-control | no-preview |
| go-import | github.com/github/github-mcp-server git https://github.com/github/github-mcp-server.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 942771284 |
| octolytics-dimension-repository_nwo | github/github-mcp-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 942771284 |
| octolytics-dimension-repository_network_root_nwo | github/github-mcp-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 0599d77dd29476ebb6797bcafb4d4987ea6c8fc9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width