---
id: zed-hand-writes-its-mcp-client-and-answers-no-server-requests
title: Zed hand-writes its MCP client, declares no capabilities and never answers a server request
kind: idiosyncrasy
summary: At ad1058d7 Zed's MCP client is its own Rust code with no SDK. It sends clientInfo Zed 0.1.0 and an empty capabilities object, and its request handler table is never filled, so ping, roots/list and every other server-to-client request gets no response.
capabilities:
  - roots
  - sampling
  - elicitation
  - logging
  - transports.streamableHttp
clients:
  - zed
specVersions:
  - 2024-11-05
  - 2025-03-26
  - 2025-06-18
  - 2025-11-25
sources:
  - url: https://github.com/zed-industries/zed
    title: crates/context_server/src/protocol.rs, ModelContextProtocol::initialize
    commit: da3a2740
    path: crates/context_server/src/protocol.rs:ModelContextProtocol
    date: 2026-11-27
  - url: https://github.com/zed-industries/zed
    title: crates/context_server/src/context_server.rs, clientInfo
    commit: da3a2740
    path: crates/context_server/src/context_server.rs:ContextServer.initialize
    date: 2026-11-27
  - url: https://github.com/zed-industries/zed
    title: crates/context_server/src/client.rs, request handler table and handle_input
    commit: da3a2740
    path: crates/context_server/src/client.rs:Client,Client.handle_input
    date: 2026-11-27
  - url: https://github.com/zed-industries/zed
    title: crates/context_server/src/transport/http.rs, POST-only transport
    commit: da3a2740
    path: crates/context_server/src/transport/http.rs:HttpTransport.build_request
    date: 2026-11-27
  - url: https://github.com/zed-industries/zed
    title: crates/context_server/Cargo.toml, dependencies
    commit: da3a2740
    path: crates/context_server/Cargo.toml
    date: 2026-11-27
status: current
lastVerified: 2026-11-27
related:
  - zed-passes-mcp-servers-to-external-agents-without-oauth
canonical: https://canimcp.io/research/zed-hand-writes-its-mcp-client-and-answers-no-server-requests
last-updated: 2026-11-27
---

> **Alpha: work in progress. canimcp is an alpha, built by one person and changing often. Statuses, notes and probe results may be incomplete or inaccurate, and pages, data and the API can change without notice. Check the cited source before relying on a claim, and send corrections through the [contact page](https://canimcp.io/contact).**

# Zed hand-writes its MCP client, declares no capabilities and never answers a server request

Kind: idiosyncrasy · Status: current · Last verified: 2026-11-27 · Clients: [zed](/clients/zed.md) · Revisions: `2024-11-05`, `2025-03-26`, `2025-06-18`, `2025-11-25`

Zed calls MCP servers context servers. The `context_server` crate implements JSON-RPC, the lifecycle, stdio, Streamable HTTP and OAuth with serde and Zed's own HTTP client. `Cargo.lock` at `ad1058d7` has no `rmcp` or other MCP crate, and the workspace `[patch.crates-io]` section patches nothing MCP-related. This is the only MCP client in the repo. The ACP external agents use their own clients (see [[zed-passes-mcp-servers-to-external-agents-without-oauth]]).

The handshake is fixed. `initialize` sends `LATEST_PROTOCOL_VERSION`, `2025-11-25`, and accepts `2025-11-25`, `2025-06-18`, `2025-03-26` or `2024-11-05` back. Any other version fails the connection. There is no `2026-07-28` code and no `server/discover` path. `clientInfo` is `{"name": "Zed", "version": "0.1.0"}`. The version comes from `env!("CARGO_PKG_VERSION")` inside the `context_server` crate, whose own version is `0.1.0`, so it does not change with Zed releases (Zed itself is 1.31.0 at this commit).

`ClientCapabilities` is built with `experimental`, `sampling` and `roots` all `None`, and the struct has no field for elicitation, tasks or extensions. The wire value is `"capabilities": {}`. `ServerCapabilities` has no `extensions` field either, so a server's extension declarations are dropped on parse.

`Client::new` creates a request handler map and nothing ever inserts into it. `handle_input` parses an incoming request, looks up a handler by method, and does nothing when there is none: no result and no `-32601` error. A server's `ping`, `roots/list`, `sampling/createMessage` or `elicitation/create` waits until the server's own timeout. The client also subscribes to only one notification, `notifications/tools/list_changed`, so `notifications/message`, `notifications/prompts/list_changed` and `notifications/resources/list_changed` are dropped.

On HTTP, every message is a POST, and responses arrive as JSON or as an SSE stream on that POST. Zed never opens the optional GET stream, so a server can reach Zed only while a POST response stream is open. A `tools/list_changed` sent outside a request does not reach a Zed HTTP client.

The crate also contains an MCP server half in `listener.rs`. At this commit nothing outside the crate constructs it.

## Sources

- [crates/context_server/src/protocol.rs, ModelContextProtocol::initialize](https://github.com/zed-industries/zed), commit `da3a2740`, `crates/context_server/src/protocol.rs:ModelContextProtocol`, 2026-11-27
- [crates/context_server/src/context_server.rs, clientInfo](https://github.com/zed-industries/zed), commit `da3a2740`, `crates/context_server/src/context_server.rs:ContextServer.initialize`, 2026-11-27
- [crates/context_server/src/client.rs, request handler table and handle_input](https://github.com/zed-industries/zed), commit `da3a2740`, `crates/context_server/src/client.rs:Client,Client.handle_input`, 2026-11-27
- [crates/context_server/src/transport/http.rs, POST-only transport](https://github.com/zed-industries/zed), commit `da3a2740`, `crates/context_server/src/transport/http.rs:HttpTransport.build_request`, 2026-11-27
- [crates/context_server/Cargo.toml, dependencies](https://github.com/zed-industries/zed), commit `da3a2740`, `crates/context_server/Cargo.toml`, 2026-11-27

## Related notes

- [zed-passes-mcp-servers-to-external-agents-without-oauth](/research/zed-passes-mcp-servers-to-external-agents-without-oauth.md)
