Title: blocked bug from using MCP server in Antigravity IDE · Issue #2904 · github/github-mcp-server · GitHub
Open Graph Title: blocked bug from using MCP server in Antigravity IDE · Issue #2904 · github/github-mcp-server
X Title: blocked bug from using MCP server in Antigravity IDE · Issue #2904 · github/github-mcp-server
Description: Describe the bug When using the github-mcp-server with an LLM client or gateway that integrates with the Gemini API (such as Antigravity), tool initialization/registration fails with a 400 INVALID_ARGUMENT error. This is caused by an inv...
Open Graph Description: Describe the bug When using the github-mcp-server with an LLM client or gateway that integrates with the Gemini API (such as Antigravity), tool initialization/registration fails with a 400 INVALID_...
X Description: Describe the bug When using the github-mcp-server with an LLM client or gateway that integrates with the Gemini API (such as Antigravity), tool initialization/registration fails with a 400 INVALID_...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2904
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"blocked bug from using MCP server in Antigravity IDE","articleBody":"\n\u003cimg width=\"526\" height=\"724\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/353784ca-dfb3-4825-8637-a03789ab1a6e\" /\u003e\n\n***\n\n### Describe the bug\n\nWhen using the `github-mcp-server` with an LLM client or gateway that integrates with the Gemini API (such as Antigravity), tool initialization/registration fails with a `400 INVALID_ARGUMENT` error. \n\nThis is caused by an invalid JSON Schema definition for the `delete` parameter within the `issue_fields` array property of the `issue_write` tool. The schema defines `delete` with `Enum: []any{true}`. Because the Gemini API's protobuf representation only supports string enums (`repeated string enum`), non-string values like the boolean `true` are serialized into an empty string (`\"\"`), which fails the API gateway validation.\n\n### Affected version\n\n```\nGitHub MCP Server\nVersion: v1.5.0\nCommit: 8cd03c018525ae0bafc9b3cdb84ec2133e01bac2\nBuild Date: 2026-06-27T07:57:40Z\n```\n\n### Steps to reproduce the behavior\n\n1. Start `github-mcp-server` in stdio mode.\n2. Launch a client that bridges the MCP server's JSON schema tool declarations to the Gemini API (such as Antigravity).\n3. Attempt to register the `issue_write` tool schema with the Gemini API.\n4. The Gemini API rejects the request, returning a `400 INVALID_ARGUMENT` response indicating `enum[0]` is empty.\n\n### Expected vs actual behavior\n\n* **Expected:** The `issue_write` tool schema registers successfully.\n* **Actual:** Registration fails with `INVALID_ARGUMENT: enum[0]: cannot be empty` because of the boolean enum constraint on the `delete` parameter. Removing `Enum: []any{true}` (making it a clean boolean type parameter, which matches the schema used in the granular `set_issue_fields` tool) resolves the error.\n\n### Logs\n\n```json\n{\n \"error\": {\n \"code\": 400,\n \"message\": \"* GenerateContentRequest.tools[51].function_declarations[0].parameters.properties[issue_fields].items.properties[delete].enum[0]: cannot be empty\\n\",\n \"status\": \"INVALID_ARGUMENT\"\n }\n}\n```\n\n### Fix\nkindly, check the following pull request \nfix: remove invalid boolean enum from issue_write delete parameter this appears in antigravity IDE cause error\n[https://github.com/github/github-mcp-server/pull/2887](https://github.com/github/github-mcp-server/pull/2887)","author":{"url":"https://github.com/Mazen-Embaby","@type":"Person","name":"Mazen-Embaby"},"datePublished":"2026-07-18T10:46:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2904/github-mcp-server/issues/2904"}
| 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:94180aa1-77ee-84c6-9b91-9c95231b5fc3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD92:E334E:28CCEA:3A22E0:6A6234F9 |
| html-safe-nonce | c63aa1f7c6e286eae4e0accd3bb391144348e5b54a44acdb4a303aad2c960f9d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDkyOkUzMzRFOjI4Q0NFQTozQTIyRTA6NkE2MjM0RjkiLCJ2aXNpdG9yX2lkIjoiOTc5OTIwMjkyNDI4MjY0Njk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 0dfc89b5e51a0310bddf10d948054d76a6ffd711566f6f16c34af325686efff3 |
| hovercard-subject-tag | issue:4917924085 |
| 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/2904/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b9a2f92adbd2e211b2c6e7b38e85cf768fb9bc8308d8ec3ce4513c9ffbe9bb0/github/github-mcp-server/issues/2904 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b9a2f92adbd2e211b2c6e7b38e85cf768fb9bc8308d8ec3ce4513c9ffbe9bb0/github/github-mcp-server/issues/2904 |
| og:image:alt | Describe the bug When using the github-mcp-server with an LLM client or gateway that integrates with the Gemini API (such as Antigravity), tool initialization/registration fails with a 400 INVALID_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Mazen-Embaby |
| hostname | github.com |
| expected-hostname | github.com |
| None | f01037538d0c99e88fa8e01da1b1825ad354ff4da745198c7392a43592c8398c |
| 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 | 10b5a8861bf21b66a650f894089f8ce1476c1d49 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width