Title: docs/CLI: README documents `tool-search` subcommand that does not exist in the binary · Issue #3161 · github/github-mcp-server · GitHub
Open Graph Title: docs/CLI: README documents `tool-search` subcommand that does not exist in the binary · Issue #3161 · github/github-mcp-server
X Title: docs/CLI: README documents `tool-search` subcommand that does not exist in the binary · Issue #3161 · github/github-mcp-server
Description: Problem The README's "CLI utilities" section documents a tool-search subcommand: github-mcp-server tool-search "
Open Graph Description: Problem The README's "CLI utilities" section documents a tool-search subcommand: github-mcp-server tool-search "
X Description: Problem The README's "CLI utilities" section documents a tool-search subcommand: github-mcp-server tool-search "<query>" searches tools by name, description, and input...
Opengraph URL: https://github.com/github/github-mcp-server/issues/3161
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs/CLI: README documents `tool-search` subcommand that does not exist in the binary","articleBody":"### Problem\n\nThe README's \"CLI utilities\" section documents a `tool-search` subcommand:\n\n```\ngithub-mcp-server tool-search \"\u003cquery>\" searches tools by name, description, and input parameter names. Use --max-results to return more matches.\ndocker run -it --rm ghcr.io/github/github-mcp-server tool-search \"issue\" --max-results 5\ngithub-mcp-server tool-search \"issue\" --max-results 5\n```\n\nBut the shipped binary does not have this subcommand.\n\n### Reproduction\n\nInstalled the latest release and ran the documented command:\n\n```\n$ go install github.com/github/github-mcp-server/cmd/github-mcp-server@latest\n$ github-mcp-server tool-search \"issue\" --max-results 5\nError: unknown command \"tool-search\" for \"github-mcp-server\"\nRun 'github-mcp-server --help' for usage.\n```\n\n`--help` lists only `completion`, `generate-docs`, `http`, `list-scopes`, `stdio`. The same failure occurs with `go run ./cmd/github-mcp-server tool-search ...` on current `main`.\n\n### Root cause (git archaeology)\n\n#1839 (\"Add tool search CLI\", released in v0.29.0) added:\n\n- `pkg/tooldiscovery/search.go` + `search_test.go` (the search implementation)\n- the README section advertising the CLI command\n\nbut the cobra subcommand itself was never registered in `cmd/github-mcp-server/main.go` — that PR's only `main.go` change removes a blank line. Since then, `tooldiscovery.SearchTools` has had zero callers outside its own package at every tag I checked (v0.29.0 through v1.11.0 and current `main`).\n\n### Suggested options\n\n1. **Implement the missing subcommand**: register a `tool-search` command in `cmd/github-mcp-server/main.go` that builds the enabled-tool inventory and delegates to `pkg/tooldiscovery.SearchTools` (the package already implements scoring, `--max-results`, etc.). This makes the documented behavior true.\n2. Or, if the CLI surface is intentionally deferred, remove/park the README section (and the Docker example) until it ships, so users don't hit `unknown command`.\n\nHappy to put up a PR for option 1 if maintainers want the subcommand.\n","author":{"url":"https://github.com/CAOShurong","@type":"Person","name":"CAOShurong"},"datePublished":"2026-08-25T19:59:01Z","url":"https://github.com/github/github-mcp-server/issues/3161"}
| 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:969fd3ac-dca3-172a-5dc8-91a8db26fbaa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA58:96784:668C94:8D66DE:6B0692DA |
| html-safe-nonce | 7e1177fe20a6a98f427e82f8f0d7b90eb490452423e15b3324c930d1e72cc542 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTU4Ojk2Nzg0OjY2OEM5NDo4RDY2REU6NkIwNjkyREEiLCJ2aXNpdG9yX2lkIjoiMjY3Mzc5NjE2MjA4NzQ1NzQ5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c809c85dccea2f192895aa72f699e209caeff66533368426216c5b43c66deb62 |
| hovercard-subject-tag | issue:5250044028 |
| 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/3161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/84e9e1dcb63ac6571bfeb80a6858b567e2fb8b8cf711f5130b4608a5148fbf7f/github/github-mcp-server/issues/3161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/84e9e1dcb63ac6571bfeb80a6858b567e2fb8b8cf711f5130b4608a5148fbf7f/github/github-mcp-server/issues/3161 |
| og:image:alt | Problem The README's "CLI utilities" section documents a tool-search subcommand: github-mcp-server tool-search " |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CAOShurong |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| 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