Harness Notes

MCP

Updated 2026-11-25,

On this page

How to connect MCP servers to each harness and what their tools can do once connected. The protocol table at the end shows which parts of the MCP specification each client supports.

Setting up a server

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Add a server

There is no agent mcp add command. Edit mcp.json by hand (~/.cursor/mcp.json or .cursor/mcp.json) with a top-level mcpServers object keyed by server name. Local servers use command, args, env and envFile; remote servers use url and headers. Plugins installed with /plugin and team-marketplace servers also add MCP servers.

The CLI and the editor read the same mcp.json files, so a server added in one works in both.

The installed binary is cursor-agent; the docs call it agent.

Transports

The CLI supports stdio (command), Streamable HTTP (url) and legacy SSE. For a url server it tries Streamable HTTP first and falls back to SSE. You can also pin "type": "sse" or "type": "http". WebSocket is not supported.

Where configs live, and project trust

User servers live in ~/.cursor/mcp.json and project servers in .cursor/mcp.json; both are loaded, and if a name appears in both, the project entry wins. When the same remote server appears in several scopes, the CLI runs it once, and you choose the winning scope in the server's Configure Scope tab in /mcp. Team servers come from the dashboard or team marketplace. Project servers need approval before they load (an "MCP Server Approval Required" prompt, agent mcp enable <name>, or --approve-mcps), but servers in ~/.cursor/mcp.json load without a prompt.

The CLI also finds .cursor/mcp.json in parent directories, up to the project root.

Team MCP servers configured in the dashboard are not available in ACP mode.

Sign in or pass credentials

For OAuth servers, run agent mcp login <name> or choose Login in /mcp. The browser flow returns to http://localhost:8787/callback, and Logout in /mcp clears the stored tokens. If the provider has no dynamic client registration, add an auth object with CLIENT_ID, optional CLIENT_SECRET and scopes. For token auth, put secrets in headers or env with ${env:NAME} interpolation, or use envFile for stdio servers.

Over SSH, the CLI prints port-forwarding instructions for the OAuth callback.

Interpolation works in command, args, env, url, headers and auth.

Using its tools

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Approve, allow or block tools

By default MCP tool calls ask for approval, and the prompt can allowlist that tool. To pre-allow tools, add Mcp(server:tool) entries (with * wildcards) to permissions.allow or permissions.deny in ~/.cursor/cli-config.json or .cursor/cli.json; deny wins. The CLI also reads mcpAllowlist from permissions.json. In Auto-review mode (--auto-review), allowlisted calls run and the rest go to a classifier; --force / --yolo runs everything that isn't denied.

Server-level approval is separate: agent mcp disable <name> stops a server from loading at all.

Enterprise admins can limit which servers and tools may run from the dashboard MCP Allowlist, and the CLI enforces it.

Tool search & code mode

Cursor loads MCP tools on demand. The agent gets only tool names plus a way to look up full tool definitions when needed, so many servers don't flood the prompt. There is no documented tool-count cap. To trim the set, disable whole servers with agent mcp disable or in /mcp; there is no per-tool on/off switch in the CLI.

When a tool seems to be missing, the agent refreshes the server's tool list. A call to a nonexistent tool returns the list of available tools.

Output size and timeouts

Large MCP text output is saved to a file instead of being truncated. In CLI 2026.10.12, text over 40,000 bytes goes to a file under Cursor's per-project agent-tools folder (up to about 49 MB), and the agent reads it from there. A stdio server gets 60 seconds to start and initialize, and each MCP request, including a tool call, times out after 60 seconds; progress notifications don't extend it. A timeout or crash shows as a failed tool call, and other servers keep working.

None of these limits can be configured in mcp.json.

Image content is passed to the model as an image.

Resources

Partly

Only the agent can use server resources in the CLI. It lists them and fetches one by URI, optionally saving it to a path inside the workspace, and these reads follow the same approval rules as other MCP calls. You cannot @-mention a resource, and resource templates are not offered.

The editor documents resources as "read and referenced"; the CLI exposes them only to the agent.

Prompts

Partly

The CLI shows a server's prompts in its /mcp detail view but has no way to run them. MCP prompts don't become slash commands, and the agent can't fetch them. Prompt support in Cursor's docs refers to the editor.

When a server asks you or the model

Not documented

Cursor editor documents generic elicitation without splitting modes. The installed CLI 2026.10.12-d47ca18 advertises form and exposes an injected-provider hook; it declines when no provider exists and declines URL-shaped requests. Successful form collection, provider registration across host modes, and schema validation remain unverified. Do not infer CLI behavior from the editor support table.

Running servers

QuestionCursor Agentchecked at 2026.10.12-d47ca18
Status, enable, reconnect, debug

agent mcp list (or /mcp in a session) opens a pager of servers grouped by User / Project / Team, showing status, transport and the error for failed servers. Each server's detail view lets you browse tool schemas, Login/Logout, Enable/Disable and Configure Scope. agent mcp list-tools <name> prints a server's tools and arguments, and agent mcp enable|disable <name> toggles a server. Changes apply to the running session.

There is no separate reconnect command; to restart a server, disable and re-enable it.

The "MCP Logs" output panel exists only in the editor.

Run the harness as an MCP server

Not supported

No. Cursor CLI cannot run as an MCP server. Its server mode is ACP (agent acp), which lets editors such as Zed or JetBrains drive the agent, and MCP servers those editors pass in over ACP are loaded.

Protocol features

FeatureCursor Agentprotocol 2025-11-25
Roots

Let a server discover the client-approved filesystem roots; this is not the server process working directory.

deprecated in the current spec

Not supported

In CLI 2026.10.12 the MCP client does not declare the roots capability, so servers cannot list roots. The docs table lists Roots as supported, which describes the editor.

Source
Sampling

Let a server request an LLM interaction through the host, with user review and model preferences.

deprecated in the current spec

Not supported

Sampling is not in Cursor's support table, and the CLI does not declare the sampling capability.

Source
Sampling with tools

Let the sampling loop invoke tools recursively; do not confuse this with ordinary server tool calls.

deprecated in the current spec

Not supported

There is no sampling, so there is no sampling with tools either.

Source
Elicitation (generic)

Server-originated MCP input requests, distinct from permission approvals, model ask-user tools, generic chat forms or MCP Apps. Check each mode and host separately.

Partly

Installed CLI 2026.10.12-d47ca18 advertises form and has a provider injection hook. No provider means decline; actual provider registration across CLI/ACP/cloud/custom hosts remains unverified. Editor generic-support docs do not prove CLI input collection.

Source
Form elicitation

Collect typed property-keyed answers using the restricted elicitation schema, with accept/decline/cancel. Schema parsing, UI validation and backend answer validation are separate claims.

Partly

Partial framework support: handler forwards requestedSchema to an injected provider and returns its action/content; successful interactive collection and backend schema validation remain unverified.

Source
URL elicitation

Direct the user to an external interaction without collecting its sensitive data. Acceptance is not completion; track legacy completion notifications separately from current MRTR retry.

Not supported

The inspected CLI handler declines requests without requestedSchema, including URL mode. This does not establish editor or other-host support.

Source
Prompts

Expose reusable, argument-aware server prompts through the client UI.

Partly

The CLI lists a server's prompts in its /mcp detail view but cannot run them; there are no prompt slash commands. The editor documents prompts as supported.

Source
Resources

List and read server-provided context independently from tool execution.

Supported

In the CLI the agent lists and reads resources itself (List MCP Resources / Fetch MCP Resource tool calls). You cannot @-mention them.

Source
Resource templates

Discover and fill parameterized resource URIs.

Not supported

Only concrete resources from resources/list are offered. Templates are never listed.

Source
Argument completion

Complete prompt arguments and resource-template parameters without an LLM call.

Not supported

The CLI never asks servers for argument completions.

Source
Progress

Correlate monotonic progress with a request; UI display and timeout extension are separate behaviors.

Not supported

In CLI 2026.10.12, tool calls carry no progress token, so server progress is neither shown nor used to extend timeouts.

Source
Cancellation

Cooperatively cancel in-flight protocol requests and propagate intent to the handler.

Not supported

In CLI 2026.10.12, tool calls are sent without an abort signal, so stopping the agent does not send notifications/cancelled to the server.

Source
Protocol logging

Deliver correlated server logs through MCP rather than relying on process stderr.

deprecated in the current spec

Not supported

The CLI neither sets a log level nor handles notifications/message. Stdio stderr is only surfaced in startup errors.

Source
Subscriptions

Receive correlated updates over a long-lived request.

Not supported

The CLI does not subscribe to resources. It does refresh tools when a server sends notifications/tools/list_changed.

Source
Multi-round-trip requests

Pause a request for sampling, elicitation, or roots input and retry it with opaque request state.

Not supported

The client speaks protocol revisions up to 2025-11-25, which predate multi-round-trip requests.

Source
Tasks (legacy)

Durable polling, status, result, and cancellation state from the 2025-11-25 experimental protocol era.

earlier experimental spec

Not supported

The client declares no tasks capability. Tools that require task-based execution fail.

Source
Tasks extension

Asynchronous tool results using io.modelcontextprotocol/tasks on 2026-07-28 connections, separate from legacy Tasks and client backgrounding.

separate protocol extension

Not documented

Unknown: public docs reviewed 2026-10-24 do not establish Tasks extension behavior. Official installer names 2026.10.22-27dcf5f, which was not inspected. Installed 2026.10.12-d47ca18 and editor elicitation evidence must not be extrapolated across CLI/ACP/cloud/custom hosts.

Events and agent wake-up

External updates that can trigger agent work. ChatGPT Work documents signed webhook subscriptions; Codex has a separate hosted-app event stream. Receiving an event and starting a model turn are separate capabilities.

separate protocol extension

Not documented

Not audited for this harness/version. Other notification or resource-subscription support does not establish event-triggered agent work.

Notes and sources

Cursor Agent, 12 sources
  • The first-party table says generic elicitation is supported but does not split form from URL mode, so both granular modes remain unknown until tested.
  • 2026-10-23 static bundle inspection is recorded with SHA-256 in docs/research/evidence/mcp-elicitation-2026-10-23.json; not a runtime probe. The earlier blanket claim that every CLI elicitation is declined is withdrawn because provider hooks exist.
Add a server, 4
Transports, 2
Where configs live, and project trust, 4
Sign in or pass credentials, 3
Approve, allow or block tools, 5
Tool search & code mode, 3
Output size and timeouts, 3
Resources, 1
Prompts, 2
When a server asks you or the model, 3
Status, enable, reconnect, debug, 2
Run the harness as an MCP server, 3