Title: Config typos are handled inconsistently: a misspelled --exclude-tools or --features entry is silently ignored · Issue #3761 · github/github-mcp-server · GitHub
Open Graph Title: Config typos are handled inconsistently: a misspelled --exclude-tools or --features entry is silently ignored · Issue #3761 · github/github-mcp-server
X Title: Config typos are handled inconsistently: a misspelled --exclude-tools or --features entry is silently ignored · Issue #3761 · github/github-mcp-server
Description: Describe the bug A misspelled name gets one of three different outcomes, depending on which option it is in: input result --tools=not_a_tool startup fails: unknown tools specified in WithTools: not_a_tool --toolsets=not_a_toolset (or Rep...
Open Graph Description: Describe the bug A misspelled name gets one of three different outcomes, depending on which option it is in: input result --tools=not_a_tool startup fails: unknown tools specified in WithTools: not...
X Description: Describe the bug A misspelled name gets one of three different outcomes, depending on which option it is in: input result --tools=not_a_tool startup fails: unknown tools specified in WithTools: not...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3761
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Config typos are handled inconsistently: a misspelled --exclude-tools or --features entry is silently ignored","articleBody":"### Describe the bug\n\nA misspelled name gets one of three different outcomes, depending on which option it is in:\n\n| input | result |\n|---|---|\n| `--tools=not_a_tool` | startup fails: `unknown tools specified in WithTools: not_a_tool` |\n| `--toolsets=not_a_toolset` (or `Repos`, case-sensitive) | WARN `unrecognized toolsets ignored`, then the server runs with **0 tools** |\n| `--exclude-tools=delete_fil` | no log line; `delete_file` stays enabled (46 tools) |\n| `--features=not_a_feature` | no log line |\n\nA misspelled `--exclude-tools` entry gives no signal, so the tool stays enabled. An operator who misspells a tool they meant to disable is not told, and the model can still call it.\n\nIgnoring unknown toolsets is deliberate (PR #1202, docs PR #1398), and so is erroring on unknown tools (PR #1776). Open PR #2184 adds an opt-in strict mode for toolsets. This issue is about the two options that give no signal at all. `ResolveFeatureFlags` documents this as intentional for request input; the ask here is only a startup log line for the `--features` CLI flag.\n\nCode (main 99d6d650, unchanged since v2.1.0):\n- `pkg/inventory/builder.go:154-175`: `WithExcludeTools` / `CreateExcludeToolsFilter` never check names against the inventory. Compare `:247-249` for `WithTools`.\n- `pkg/github/feature_flags.go:105-125`: `ResolveFeatureFlags` drops names outside `AllowedFeatureFlags` without logging.\n- `pkg/github/server.go:114`: the toolset warning.\n\n### Affected version\n\nv2.1.0 (image `sha256:f6056fc1…0f8a`, commit 4bcdcdf8) and main nightly (image `sha256:48bc16d0…338f`, revision 99d6d650). stdio.\n\n### Steps to reproduce the behavior\n\nEach step is `docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN \u003cimage> stdio \u003cflags>`, then `initialize` + `tools/list` (a dummy token is enough, since no API call is needed):\n1. no flags: 46 tools, including `delete_file`\n2. `--exclude-tools=delete_file`: 45, no `delete_file`\n3. `--exclude-tools=delete_fil`: 46, `delete_file` present, and stderr has no warning about the unknown name (only the token-scope WARN from the dummy token)\n4. `--features=not_a_feature`: 46, and stderr has no warning about the unknown name (only the token-scope WARN from the dummy token)\n5. `--toolsets=not_a_toolset`: 0 tools, and stderr has `level=WARN msg=\"Warning: unrecognized toolsets ignored\" toolsets=not_a_toolset`\n6. `--tools=not_a_tool`: the process exits with `failed to create MCP server: failed to build inventory: unknown tools specified in WithTools: not_a_tool`\n\n### Expected vs actual behavior\n\nExpected: unknown names in `--exclude-tools` and `--features` are at least logged, as unknown toolsets are. For `--exclude-tools`, an error would match `--tools`, since a typo there leaves enabled a tool the operator meant to disable.\n\nActual: silent.\n\nSuggested fix: in `WithExcludeTools`, collect names not present in the inventory (including deprecated aliases) and warn or error. In `ResolveFeatureFlags` (CLI path), warn on names outside `AllowedFeatureFlags`.\n\n### Logs\n\n```\n--exclude-tools=delete_fil -> 46 tools, delete_file listed; stderr: only the token-scope WARN\n--features=not_a_feature -> 46 tools; stderr: only the token-scope WARN\n--toolsets=not_a_toolset -> 0 tools; WARN \"Warning: unrecognized toolsets ignored\" toolsets=not_a_toolset\n--tools=not_a_tool -> exit; \"unknown tools specified in WithTools: not_a_tool\"\n```\nSame on v2.1.0 and main.\n\nFound during an independent audit of v2.1.0 on a throwaway org and private test repo. Prepared with AI assistance (Claude Code); reproduced by two independent test runs before filing.\n","author":{"url":"https://github.com/rafe-walker","@type":"Person","name":"rafe-walker"},"datePublished":"2026-11-09T06:09:06Z","url":"https://github.com/github/github-mcp-server/issues/3761"}
| 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:1751eeb6-0f25-e924-96f1-dfb10b453ca9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8326:3DEF55:749BF5:9706C7:6B0626BA |
| html-safe-nonce | 074708ce0022e75f4d5b6799fe77e45c45766384fa1711c9771aaa9e19aafdbb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzI2OjNERUY1NTo3NDlCRjU6OTcwNkM3OjZCMDYyNkJBIiwidmlzaXRvcl9pZCI6IjQ4MDIyOTk2NzEwMDE1NzMwNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ed06ae30ca46d287523be31ba05dae3fb5c036c9e7cb6910c313dfca1560d093 |
| hovercard-subject-tag | issue:6280945299 |
| 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/3761/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe89a57dd24228c9d112639128a67c4bfb7fb2f3dbaee883b51c24b36be51136/github/github-mcp-server/issues/3761 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe89a57dd24228c9d112639128a67c4bfb7fb2f3dbaee883b51c24b36be51136/github/github-mcp-server/issues/3761 |
| og:image:alt | Describe the bug A misspelled name gets one of three different outcomes, depending on which option it is in: input result --tools=not_a_tool startup fails: unknown tools specified in WithTools: not... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rafe-walker |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| 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 | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| 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