Title: Nil values for optional arrays returns error · Issue #193 · github/github-mcp-server · GitHub
Open Graph Title: Nil values for optional arrays returns error · Issue #193 · github/github-mcp-server
X Title: Nil values for optional arrays returns error · Issue #193 · github/github-mcp-server
Description: Describe the bug A clear and concise description of what the bug is. When attempting to use the MCP tools in Claude, experimenting with the create_issue tool, I found that optional arrays are passed in as 'nil'. This is not handled curre...
Open Graph Description: Describe the bug A clear and concise description of what the bug is. When attempting to use the MCP tools in Claude, experimenting with the create_issue tool, I found that optional arrays are passe...
X Description: Describe the bug A clear and concise description of what the bug is. When attempting to use the MCP tools in Claude, experimenting with the create_issue tool, I found that optional arrays are passe...
Opengraph URL: https://github.com/github/github-mcp-server/issues/193
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Nil values for optional arrays returns error","articleBody":"### Describe the bug\n\nA clear and concise description of what the bug is.\n\nWhen attempting to use the MCP tools in Claude, experimenting with the `create_issue` tool, I found that optional arrays are passed in as 'nil'. This is not handled currently by [`server.go`](https://github.com/github/github-mcp-server/blob/56c1fce434d98cc5d4935979cc4c661a29bd0ed6/pkg/github/server.go#L234)\n\nExample Error:\n\n\u003e ```\n\u003e {\n\u003e `body`: `This is a test issue created via Claude to verify GitHub API functionality. Feel free to close it when no longer needed.`,\n\u003e `repo`: `SmartDNN`,\n\u003e `owner`: `A-Georgiou`,\n\u003e `title`: `Test Issue`\n\u003e }\n\u003e Error executing code: MCP error -32603: failed to create issue: POST https://api.github.com/repos/A-Georgiou/SmartDNN/issues: 422 Invalid request.\n\u003e \n\u003e For 'properties/assignees', nil is not an array.\n\u003e For 'properties/labels', nil is not an array. []\n\u003e ```\n\u003e \n\n### Affected version\n\nPlease run ` docker run -i --rm ghcr.io/github/github-mcp-server ./github-mcp-server --version` and paste the output below\n\n`server version v0.1.0-rc.1 (87d4407d1c3dd12eacf9f134534f44d016fd363c) 2025-04-03T21:37:05Z\n`\n### Steps to reproduce the behavior\n\n1. Query the Claude MCP to create a simple test issue on a local repo\n\n### Expected vs actual behavior\n\nA clear and concise description of what you expected to happen and what actually happened.\n\nExpected: The MCP tool to create an issue on the respective repo\nActual: The tool call fails and the LLM attempts to recover by repeatedly calling with different parameters\n\n","author":{"url":"https://github.com/A-Georgiou","@type":"Person","name":"A-Georgiou"},"datePublished":"2025-04-09T13:17:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/193/github-mcp-server/issues/193"}
| 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:17a41666-125d-35da-b1a2-fc91a49026de |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5B0:F87C0:209189:2E9CB0:6A621C1A |
| html-safe-nonce | 7854cb2ea8e4138582ec4ea49b0ae20ef5cda40014a895feb607524a0614abd9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUIwOkY4N0MwOjIwOTE4OToyRTlDQjA6NkE2MjFDMUEiLCJ2aXNpdG9yX2lkIjoiNTU0OTk1OTA5NTMxODA5MjgyNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c716834c680b054fb1dfecc23f442171f1df6faf600e99aaaccd4a41d42344a3 |
| hovercard-subject-tag | issue:2982802148 |
| 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/193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7923ba8787a93e9be08a64afb4081086fce76e68a80f28d3a105891c4a1ba870/github/github-mcp-server/issues/193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7923ba8787a93e9be08a64afb4081086fce76e68a80f28d3a105891c4a1ba870/github/github-mcp-server/issues/193 |
| og:image:alt | Describe the bug A clear and concise description of what the bug is. When attempting to use the MCP tools in Claude, experimenting with the create_issue tool, I found that optional arrays are passe... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | A-Georgiou |
| hostname | github.com |
| expected-hostname | github.com |
| None | be68eaf9abf2a202afbd94047d7200fb88b7edb0338f533bf171bbb1a69fab4e |
| 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 | 3d00b04c8874615454dfbdb32a7d2ca4db66d3f4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width