Title: projects_write: item_id parameter typed as float64 instead of string · Issue #2153 · github/github-mcp-server · GitHub
Open Graph Title: projects_write: item_id parameter typed as float64 instead of string · Issue #2153 · github/github-mcp-server
X Title: projects_write: item_id parameter typed as float64 instead of string · Issue #2153 · github/github-mcp-server
Description: Bug Description The projects_write tool has an ID mismatch between its add_project_item and update_project_item methods. add_project_item returns a GraphQL node ID (string, e.g. "PVTI_lADOBII0s..."), but update_project_item expects a num...
Open Graph Description: Bug Description The projects_write tool has an ID mismatch between its add_project_item and update_project_item methods. add_project_item returns a GraphQL node ID (string, e.g. "PVTI_lADOBII0s..."...
X Description: Bug Description The projects_write tool has an ID mismatch between its add_project_item and update_project_item methods. add_project_item returns a GraphQL node ID (string, e.g. "PVTI_lADOBII0...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2153
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"projects_write: item_id parameter typed as float64 instead of string","articleBody":"## Bug Description\n\nThe `projects_write` tool has an ID mismatch between its `add_project_item` and `update_project_item` methods.\n\n`add_project_item` returns a GraphQL node ID (string, e.g. `\"PVTI_lADOBII0s...\"`), but `update_project_item` expects a numeric REST API database ID (`item_id` typed as `number`, parsed via `RequiredBigInt`). This means the ID returned by one method cannot be directly used as input to the other.\n\n## Steps to Reproduce\n\n1. Call `projects_write` with `method: add_project_item` to add an issue to a project\n2. The response returns an `id` like `\"PVTI_lADODr_Ky84BNQJ7zgmwpT4\"` (GraphQL node ID string)\n3. Call `projects_write` with `method: update_project_item`, passing that `id` as `item_id`\n4. The tool rejects it with: `parameter item_id is not of type float64`\n\n## Root Cause\n\nThere are two ID systems at play:\n\n| ID System | Type | Example | Used By |\n|-----------|------|---------|---------|\n| REST API `id` / `fullDatabaseId` | number (int64/BigInt) | `1001` | `update_project_item`'s `item_id` param |\n| GraphQL node `id` | string (ID!) | `\"PVTI_lADOBII0s...\"` | `add_project_item`'s return value |\n\nIn the source (`pkg/github/projects.go`), `item_id` is defined as `Type: \"number\"` and parsed with `RequiredBigInt(args, \"item_id\")`, which is correct for the REST API's numeric ID. However, the return value from `add_project_item` appears to be the GraphQL node ID (string), creating a mismatch.\n\n## Suggested Fix\n\nOne of:\n1. **Preferred:** Have `add_project_item` also return the numeric `fullDatabaseId` so it can be used with `update_project_item`\n2. Have `update_project_item` accept the GraphQL node ID and resolve it to the numeric ID internally\n3. Document which ID format each method expects/returns, so callers know to look up the numeric ID separately\n\n## Workaround\n\nUsing `gh project item-edit` via CLI works fine with the GraphQL node ID string.\n\n## Environment\n\n- MCP endpoint: `https://api.githubcopilot.com/mcp/`\n- Toolset: `default,projects`\n- Client: Claude Code via `mcp-remote`","author":{"url":"https://github.com/leoalord","@type":"Person","name":"leoalord"},"datePublished":"2026-03-05T16:41:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2153/github-mcp-server/issues/2153"}
| 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:73c300f1-799a-63da-c187-895084aaf6c0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C062:34AB45:E6756:14F810:6A61DCCB |
| html-safe-nonce | 849a3606d6cfd3bbd54882c1db83d84518afee63f42470ee6817d72e26b6417f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDYyOjM0QUI0NTpFNjc1NjoxNEY4MTA6NkE2MURDQ0IiLCJ2aXNpdG9yX2lkIjoiMjgzODk2NjE2MDMwNTgwNjUzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a8f6aa4914a324ca85d652e667397a86ff4e9162a0c04cb962f3d3afd4702008 |
| hovercard-subject-tag | issue:4029397531 |
| 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/2153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/77064e56566adcdd25180e8b981adbdd781c675e5498542a58a5b751f1eee5fb/github/github-mcp-server/issues/2153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/77064e56566adcdd25180e8b981adbdd781c675e5498542a58a5b751f1eee5fb/github/github-mcp-server/issues/2153 |
| og:image:alt | Bug Description The projects_write tool has an ID mismatch between its add_project_item and update_project_item methods. add_project_item returns a GraphQL node ID (string, e.g. "PVTI_lADOBII0s..."... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | leoalord |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| 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 | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width