MCP connected but no tools: trace discovery before the UI
Diagnose MCP initialization, tools/list, HTTP sessions, pagination, stale discovery, and client filtering with a real public-server observation.
Sources are linked in the guide. Read our editorial policy.
On this page 5 sections
An MCP server showing “connected” does not prove that tools were advertised, listed, accepted by the client, or exposed to the model. Trace initialize → notifications/initialized → tools/list, including every result page. Only then debug the client interface or tool selection.
A server can legitimately provide resources or prompts without tools. Start with AGENTS.md, skills, and MCP differences if these capabilities are being conflated, or the local-AI hub for the broader workflow.
Locate the first missing piece
| Observation | What to inspect | Likely owner |
|---|---|---|
Connection exists, no successful initialize |
Version negotiation, endpoint, transport, credentials | Transport/server configuration |
Initialize response lacks capabilities.tools |
Whether this server offers only prompts/resources | Server capability registration |
Tools capability present, tools/list errors |
Session headers, authentication, initialization completion | Protocol/server integration |
Successful tools/list returns tools: [] |
Permissions, server registration, configuration | Server or authenticated identity |
| Only some tools arrive | nextCursor, names, schemas, client filters |
Pagination or client ingestion |
| Full list arrives, UI shows none | Enablement, policy, schema compatibility, UI mode | Specific client/version |
| UI lists tools, model never calls them | Model/tool exposure and selection behavior | Client/model integration—not discovery |
Capture client and server versions, transport, negotiated protocol version, and redacted request/response evidence. A green icon has client-specific meaning; it is not a protocol assertion.
Check capability negotiation before listing
The MCP lifecycle specification requires initialization first. The client proposes a supported version; the server returns a version and capabilities. The client must support the returned version before continuing, then send notifications/initialized.
The server advertises tools through capabilities.tools. An empty object is a valid capability declaration. listChanged describes change notifications; it is not required merely to offer tools. prompts/list and resources/list are separate interfaces, not alternate spellings of tools/list.
Inspect the actual initialize response and subsequent messages in your client’s diagnostics or an already installed MCP Inspector. Keep tokens and session identifiers private. Do not call write-capable tools merely to establish that listing works.
Probe Streamable HTTP without skipping its session
These unexecuted curl examples require Bash and curl and target the public Microsoft Learn MCP endpoint. They are a one-off wire diagnostic, not a production MCP client. For your own authenticated server, use its documented credential flow; do not disable authorization or paste secrets into shared logs.
MCP_URL='https://learn.microsoft.com/api/mcp'
curl --include --no-buffer --max-time 20 "$MCP_URL" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
--data-binary '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"discovery-diagnostic","version":"1.0"}}}'
Inspect the returned protocolVersion, capabilities, and optional Mcp-Session-Id response header. For this diagnostic, continue only with a version whose specification you understand. Set the next variables from your response, not from another user’s session:
MCP_VERSION='2025-06-18'
MCP_SESSION_ID='paste-your-returned-session-header'
curl --include --no-buffer --max-time 20 "$MCP_URL" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "MCP-Protocol-Version: $MCP_VERSION" \
-H "Mcp-Session-Id: $MCP_SESSION_ID" \
--data-binary '{"jsonrpc":"2.0","method":"notifications/initialized"}'
curl --include --no-buffer --max-time 20 "$MCP_URL" \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H "MCP-Protocol-Version: $MCP_VERSION" \
-H "Mcp-Session-Id: $MCP_SESSION_ID" \
--data-binary '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
2025-06-18 is the version observed in the live check below, not a universal default. If initialization issued no session ID, omit that header from both requests. Streamable HTTP allows JSON or SSE responses; both are valid. Expect an accepted notification to return HTTP 202 without a body. For listing, find the JSON-RPC response matching id: 2, possibly inside SSE data: events. A timeout after receiving stream data is not automatically a failed initialization.
HTTP 401/403 requires inspecting authentication, scopes, or origin policy—not disabling them. Missing required session IDs can produce HTTP 400; an expired session can produce 404 and requires reinitialization. A browser GET is not an initialization or tool-list test. Legacy HTTP+SSE and stdio require different handling; do not apply this POST recipe indiscriminately.
For stdio, check the executable, working directory, inherited environment, and that stdout contains only protocol messages. Send diagnostic logging to stderr. A process that starts successfully can still corrupt discovery with a startup banner on stdout.
Finish pagination, then inspect freshness and schemas
The pagination contract makes cursors opaque. If a list result includes nextCursor, repeat tools/list with params.cursor equal to that exact value and a new request ID. Continue until the cursor is absent; do not infer completion from page size or reuse cursors across sessions.
For stale discovery, check whether the server declared tools.listChanged, emitted notifications/tools/list_changed, and the client fetched a fresh list. The tools specification defines the notification, not a universal client refresh button. A reconnect can isolate a cache problem, but is not a substitute for implementing supported change notifications.
If the wire list is complete, inspect tool names and inputSchema. Names should be unique within a server; cross-server namespacing and collision handling vary by client. A valid tool schema must be an object, not null; even a parameterless tool can use {"type":"object","additionalProperties":false}. Check the client’s supported schema subset and logs rather than assuming every valid JSON Schema feature is accepted downstream.
Verify in the intended client
Compare complete wire tool names with the client’s enabled-tool view and actual model request. Check workspace versus global configuration, account permissions, approval policy, and tool enablement. Some clients discover lazily or show tools separately from prompts/resources. Do not generalize one application’s UI behavior to all MCP clients.
Actual evidence, 2026-11-07 UTC: a Python 3.10.0 standard-library HTTP diagnostic contacted the real Microsoft Learn server, not a mock. initialize returned HTTP 200 with SSE, protocol 2025-06-18, server version 1.0.0, a session header, and the tools capability. After notifications/initialized returned 202, tools/list returned three names: microsoft_docs_search, microsoft_code_sample_search, and microsoft_docs_fetch, with no next cursor. A JSON-only parsing attempt failed on the SSE body; handling SSE recovered the response. Session DELETE returned 405. No tools were invoked, and no desktop client’s UI, authorization failure, pagination, or cache bug was reproduced.
Sources use MCP specification 2025-11-25; the older negotiated server version above is explicitly separate. Microsoft’s reference carries a November 28, 2025 content date and March 26, 2026 update metadata. All linked sources were read on the check date.
Before exposing discovered tools, apply the MCP security checklist and human-approval boundaries. If tools reach a local vLLM backend but tool-bearing chat fails, continue with vLLM chat-template errors.