Title: Consolidated `method`-dispatch tools return unhelpful "unknown method" errors (don't list supported methods) · Issue #2712 · github/github-mcp-server · GitHub
Open Graph Title: Consolidated `method`-dispatch tools return unhelpful "unknown method" errors (don't list supported methods) · Issue #2712 · github/github-mcp-server
X Title: Consolidated `method`-dispatch tools return unhelpful "unknown method" errors (don't list supported methods) · Issue #2712 · github/github-mcp-server
Description: Describe the bug The consolidated tools that dispatch on a method argument return a bare unknown method: when the method is unrecognized, without listing the valid methods. labels.go already does the helpful thing ("... Supported methods...
Open Graph Description: Describe the bug The consolidated tools that dispatch on a method argument return a bare unknown method: when the method is unrecognized, without listing the valid methods. labels.go already does t...
X Description: Describe the bug The consolidated tools that dispatch on a method argument return a bare unknown method: when the method is unrecognized, without listing the valid methods. labels.go already does t...
Opengraph URL: https://github.com/github/github-mcp-server/issues/2712
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Consolidated `method`-dispatch tools return unhelpful \"unknown method\" errors (don't list supported methods)","articleBody":"### Describe the bug\n\nThe consolidated tools that dispatch on a method argument return a bare unknown method: \u003cvalue\u003e when the method is unrecognized, without listing the valid methods. `labels.go` already does the helpful thing (\"... Supported methods are: create, update, delete\"); the other method-dispatch tools don't, so the behavior is inconsistent.\n\nSeparately, `pull_request_review_write` decodes arguments with `mapstructure.WeakDecode` (it does not use RequiredParam like the other tools), so omitting the required method produces \"unknown method: \" with an empty value — instead of telling the caller that method is required.\n\nAffected tools: `pull_request_read`, `pull_request_review_write`, `issue_read`, sub-issue write, actions (list/get/run), projects (list/get/write), ui_get.\n\n### Affected version\n\nVersion: v1.3.0\nCommit: 34227037fc48771baea9af7163e28cb6556ef287\nBuild Date: 2026-06-11T14:16:55Z\n\n### Steps to reproduce the behavior\n\n1. Call `pull_request_review_write` with the required method omitted, e.g. `{ \"owner\": \"o\", \"repo\": \"r\", \"pullNumber\": 42 }`.\n2. View the output.\n3. Server returns (tool-result error, HTTP 200 `isError`): \n\n`unknown method: `\n(empty after the colon — method was never supplied, but the error doesn't say it's required or what the valid values are).\n\nOr, with an unrecognized value `{ \"method\": \"bogus\", ... }`:\n\n`unknown method: bogus`\nNo list of supported methods. The same bare error occurs on pull_request_read, issue_read, actions_*, projects_*, and ui_get for any unrecognized method.\n\n### Expected vs actual behavior\n\nExpected: the error names the supported methods (matching labels.go, e.g. unknown method: bogus. Supported methods are: create, submit_pending, delete_pending, resolve_thread, unresolve_thread), and an omitted required method reports method is required. Supported methods are: ....\n\nActual: a bare unknown method: \u003cvalue\u003e with no guidance; for pull_request_review_write an omitted method yields unknown method: (empty), which reads like a routing bug rather than a missing required argument.\n\nLogs\nTool-result error text returned by the server:\n\nunknown method:\nunknown method: bogus","author":{"url":"https://github.com/gustavo-sec","@type":"Person","name":"gustavo-sec"},"datePublished":"2026-06-17T02:11:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2712/github-mcp-server/issues/2712"}
| 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:8d5c5447-c712-192e-3f1e-4023cd0423c4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6F2:39B1FE:33FF1D4:495C7EC:6A5F9075 |
| html-safe-nonce | bbcd1ff2b9644b04851fbb482531f858dcad751c1bd3579c6fb4792475cd80ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkYyOjM5QjFGRTozM0ZGMUQ0OjQ5NUM3RUM6NkE1RjkwNzUiLCJ2aXNpdG9yX2lkIjoiNzQzMzIwNDE3MDQ0NTc4NzI1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 359ae9259df6d6583e9343534e2663143d690ca37556c0cd093803a1aafe1246 |
| hovercard-subject-tag | issue:4679408675 |
| 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/2712/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2749f27468c8825d7888594c692bce2732ab9417f71ce5b6072625a46d3aa4c/github/github-mcp-server/issues/2712 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2749f27468c8825d7888594c692bce2732ab9417f71ce5b6072625a46d3aa4c/github/github-mcp-server/issues/2712 |
| og:image:alt | Describe the bug The consolidated tools that dispatch on a method argument return a bare unknown method: when the method is unrecognized, without listing the valid methods. labels.go already does t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gustavo-sec |
| hostname | github.com |
| expected-hostname | github.com |
| None | 05a5a04783bf869edc9d6ffbeac22f1152a11abce708ff1bf649457a9b96836a |
| 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 | ebe18dcab12b14d87b778dc32f6b70e7a6910911 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width