call_tool
Call a tool
Invoke any indexed tool of an installed server (enabled or not) and return its result unchanged. Prefer calling exposed tools directly.
tool必填server必填arguments
io.github.keshrath由 GitHub 帳號 keshrath 發布v3.3.0更新於 Nov 14, 2026
Find, install and enable MCP servers mid-session on any host, with consent and tool pinning
一個 MCP 閘道,可在工作階段中尋找、安裝、啟用並代理其他 MCP 伺服器,具備確認、工具固定與隔離機制。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
參照 儲存庫 中的啟動說明。
[License: MIT] [Node.js] [Tests] [MCP Tools]
Find, install and enable MCP servers in the middle of a session, on any MCP host. agent-discover is one local daemon that searches the official MCP Registry, npm and PyPI, installs a server after you approve the exact command and its provenance, and then exposes its tools to your host without a config edit or a restart. It also guards what it installs: tool definitions are pinned and a server whose tools change is quarantined, secrets live in the OS keychain, and every action is audited.
Current hosts (Claude Code, Codex, the Anthropic and OpenAI APIs) have their own tool search, so agent-discover is not mainly about saving prompt tokens any more. What a host's tool search cannot do is work with a server you have not installed yet. Adding a new MCP server still means editing the host's config and restarting the session. agent-discover removes that step:
install_server shows you the exact command or URL, the env and header names, the pinned version and the provenance checks (registry namespace, npm mcpName, PyPI, OCI label). Nothing runs until you accept.native mode (the default) every enabled server's tools are listed as <server>__<tool> and agent-discover sends notifications/tools/list_changed on each change, so the host's native tool search, permission prompts and alwaysLoad settings keep working. In proxy mode only eight meta tools are listed and everything goes through call_tool, for hosts with weak or no tool search.Install the plugin. It runs the stdio shim as the MCP server, adds the find and install skills and a Claude Code mod (function hooks) with the management UI:
[The /discover pane docked beside the transcript]
New to the pane? The tutorial walks through it with screenshots.
/discover opens the agent-discover pane (docked beside the transcript in the fullscreen layout, above the prompt otherwise; also in the desktop Code tab and VS Code). Keys 1-4 switch tabs, and the focus lands on a safe next step (the first server, Check health, the first search result, the way back), never on a button that consents or destroys (Approve, Enable, Install, Uninstall): those are your own Tab away. Servers: every installed server with its state; open one for its config (command or URL, tags, source and registry status, package; env and header key names only), each config key with where its value comes from and, for a secret, the command that sets it (npx -y agent-discover@^3.3 secret set <server> <KEY>, which asks for the value in a terminal without echo; Claude Code panes have no masked input yet: a value typed into a pane is drawn in clear while it is typed, and keys can reach the Claude prompt), Delete, and Store as secret for a value written in the config, its tools with input schemas and per-tool metrics, health check and error reset, the quarantine diff with Approve / Keep disabled, OAuth sign-in (the authorize URL as a link), and Enable / Disable / Re-index / Uninstall. Browse: search the registries, review the install plan (exact command or URL, provenance, warnings, required keys; a required secret is set with the command once installed, and the server installs disabled until then) and install. Logs (recent proxied calls) and Audit (filter by server and action, paged). Questions upstream servers ask (elicitation) appear on top./discover <what you need> opens Browse with the results.2/6 enabled · 1 to review (enabled of installed, and how many servers need a look), a toast when a server is quarantined, goes unhealthy or asks a question, and a band above the prompt that shows only while something needs you and the pane is closed.search_tools before saying a capability is missing.agent-discover entry from ~/.claude.json so tools do not appear twice.Hosts with Streamable HTTP can instead point at http://127.0.0.1:3424/mcp when the daemon already runs. Cursor, Codex, VS Code, Claude Desktop and the rest: docs/SETUP.md.
Other hosts use agent-discover through its MCP tools (markdown results; the MCP Apps widget where the host renders it). Approving a quarantined server or installing without an elicitation-capable client happens in Claude Code's /discover pane, or an operator sets AGENT_DISCOVER_ALLOW_UNCONFIRMED_INSTALL=1.
One daemon per machine, agent-discover daemon, listens on 127.0.0.1:3424 and serves the REST API (/api/*, what the Claude Code pane talks to) and MCP Streamable HTTP at /mcp. /mcp speaks the 2026-07-28 protocol and the 2025 sessionful protocol on the same endpoint.
The default bin agent-discover is a thin stdio shim: it checks /api/health, starts the daemon if it is not running (lockfile-guarded, detached) and relays stdio to /mcp. Every host and every session shares the one daemon, so connection and enablement state has a single owner. The daemon exits after 30 minutes with no open HTTP exchanges (AGENT_DISCOVER_IDLE_MS).
Details: docs/ARCHITECTURE.md.
Prompts discover, install and status appear as slash commands in hosts that surface MCP prompts. All tools except call_tool declare an outputSchema and return structuredContent plus a markdown rendering.
MCP Apps widget. Tool results carry ui://agent-discover/app.html, a single widget that renders search results, server cards, install consent and a tool tester. Claude Desktop, claude.ai and VS Code render it. Claude Code does not render MCP Apps yet and shows the markdown instead.
Full schemas: docs/API.md.
agent-discover sits between your host and MCP servers it did not write, so it assumes their descriptions are hostile. Full model: docs/SECURITY.md.
confirm argument.npx -y agent-discover@^3.3 secret set <server> <KEY> (--stdin reads a pipe, --from-config moves a value written in the config, --new adds a key the server does not declare) or PUT /api/servers/:id/secrets/:key[?new=1]; agent-discover secret delete <server> <KEY> removes one. The /discover pane shows the command and never takes a value: Claude Code panes have no masked input yet: a value typed into a pane is drawn in clear while it is typed, and keys can reach the Claude prompt.GET /api/audit.OTEL_EXPORTER_OTLP_ENDPOINT or AGENT_DISCOVER_OTEL=1.iss check), with sign-in handed to you as a URL; agent-discover never opens it itself.Not covered: sandboxing upstream stdio servers. They run with your user's privileges.
search_tools ranks with SQLite FTS5 (Porter stemming, fielded BM25 over name, description and argument names), typo repair, server routing and a small usage prior. A local or OpenAI embedding provider is opt-in and adds dense scores.
Measured on the retrieval bench in bench/retrieval/: 50 real MCP servers, 1674 tools, 468 hand-labelled queries (paraphrase, task, cross-server, multi-step, typo, German, and unanswerable). All tuning used the dev split; these numbers are the held-out test split (269 answerable queries).
Read this honestly:
npm install @huggingface/transformers by hand (about 130 MB model, about 3 minutes to index 1674 tools on one thread) and is not run in CI.Methodology, per-category results and how to run it: bench/retrieval/README.md. CI runs npm run bench:retrieval -- --check.
updated_since sync, deprecated and deleted status tracking, and exact-name installs. A server whose registry entry was deleted is flagged in server_status.input_required and 2025 elicitation/create requests are relayed to your client./discover pane, the MCP Apps widget (Claude Desktop, claude.ai, VS Code) and markdown results for every other host (OpenCode, Cursor, Codex, ...). There is no web dashboard since 3.0.AGENT_DISCOVER_SETUP_FILE) listing servers to ensure installed at daemon start.The common ones. The complete list is in docs/API.md.
From 2.x: 3.0 removes the web dashboard on port 3424 (and its WebSocket, tester, presets and transient-server routes) and agent-desk support. Manage servers in Claude Code with /discover; other hosts keep the MCP tools. Host configs move to agent-discover@^3. Details in CHANGELOG.md.
From 1.x: 2.0 was a breaking release. The single registry tool is replaced by the eight tools above, REST routes were renamed, the setup file key auto_activate is now enabled, secrets move to the keychain, and the default bin is the shim. The database migrates itself and moves from ~/.claude to the per-user data directory (%LOCALAPPDATA%\agent-discover, ~/Library/Application Support/agent-discover, or $XDG_DATA_HOME/agent-discover / ~/.local/share/agent-discover; AGENT_DISCOVER_DATA_DIR overrides) on first start, so stop any running 1.x process first. Full list in CHANGELOG.md.
structuredContent to the model as JSON text instead of the markdown content (upstream behaviour, anthropics/claude-code#55677 closed as not planned, see also #15412). Other hosts and the widget use the markdown / UI./discover pane step by step, with screenshotsMIT, see LICENSE
來源:README.md,提交 c8a48bc
Call a tool
Invoke any indexed tool of an installed server (enabled or not) and return its result unchanged. Prefer calling exposed tools directly.
tool必填server必填argumentsDisable an MCP server
Stop exposing a server's tools. The server stays installed and its tools stay searchable.
name必填Enable an MCP server
Expose an installed server's tools to this host (as <server>__<tool> in native mode). Indexes the server first if needed. A quarantined server (tools changed since approval) asks the user to review and re-approve first.
name必填Get tool definition
Full definition (input/output schema, annotations, hash) of one indexed tool by server + tool name.
tool必填server必填Install an MCP server
Install a server found by search_servers (exact `server` name; version pinned) or from a manual command/url, then index its tools. The user confirms the exact command and provenance first. Tools become searchable immediately; pass enable=true (or call enable_server) to expose them.
envurlargsnametagsenableserversourcecommandheadersversiontransport另有 1 個Search MCP servers
Find MCP servers: installed ones (local registry) and, unless marketplace=false, the public MCP registry plus npm/PyPI. Use before install_server.
limitquery必填marketplaceSearch tools
Search the tool index of ALL installed servers (enabled or not) — one entry per query, batch several needs in one call. Exposed tools can be called directly; others via call_tool or after enable_server.
limitqueries必填Server status
State of installed servers (enabled, quarantined + drift, indexed, connected, tool count, flagged tools, health). check_health=true runs a live probe.
namecheck_health已滿足適用檢查項的 90%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
claude plugin marketplace add keshrath/agent-discoverclaude plugin install agent-discover@agent-discover{ "mcpServers": { "agent-discover": { "command": "npx", "args": ["-y", "agent-discover@^3"] } }}git clone https://github.com/keshrath/agent-discover.gitcd agent-discovernpm installnpm run buildnode dist/index.js daemonnpm test # 218 tests across 27 files (+9 e2e skipped unless AGENT_DISCOVER_E2E=1, +16 pane e2e)npm run check # typecheck + lint + format + testnpm run bench:retrievalnpm run plugin:check # claude plugin validate + the pane's 9 plugin testsnpm run e2e:claude # the /discover pane in the real Claude Code CLI (inline and docked), screenshots to ~/.claude/tmp/pane-shots