{"at":"2026-11-23T02:19:25.804Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T02:19:26.202Z","dir":"received","era":"server_discover","message":{"error":{"code":-32601,"message":"Method not found"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T02:19:26.303Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T02:19:26.699Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"tools":{"listChanged":true}},"protocolVersion":"2025-11-25","serverInfo":{"name":"cursor-mcp","version":"1.2.0"}}}}
{"at":"2026-11-23T02:19:26.699Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T02:19:26.699Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T02:19:26.704Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Execute a prompt using Cursor's AI agent with any model id the installed cursor-agent accepts (Composer, Claude, GPT, Gemini, Grok families on your plan; run cursor_models for ids). Modes: 'agent' (tools, terminal, search), 'plan' (design-focused), 'ask' (read-only). In headless mode cursor-agent only PROPOSES file changes unless the server operator set CURSOR_ALLOW_YOLO=true (then --force applies them; CURSOR_SANDBOX=enabled confines them). The result lists the files changed and the model used; a client that sends a progress token gets a progress notification per tool call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"mode":{"description":"Agent mode. 'agent' = full capabilities (file edit, terminal, search). 'plan' = design-focused, asks clarifying questions. 'ask' = read-only exploration. Default: agent.","enum":["agent","plan","ask"],"type":"string"},"model":{"description":"AI model id as cursor-agent accepts it, passed through to --model (any id cursor_models lists; e.g. a Composer, Claude, GPT, Gemini or Grok id on your plan). Default: auto (Cursor picks the model). Was a closed list of old ids before 1.1.0.","maxLength":200,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._\\/-]*$","type":"string"},"prompt":{"description":"The prompt or task for the Cursor agent. Supports natural language instructions for code generation, review, debugging, and more.","maxLength":100000,"minLength":1,"type":"string"},"timeout_seconds":{"description":"Maximum execution time in seconds (10-3600). Default: 600 (10 minutes).","maximum":3600,"minimum":10,"type":"integer"},"workspace":{"description":"Working directory for the agent. Affects file search scope and project context. Default: server's current working directory.","maxLength":4096,"minLength":1,"type":"string"}},"required":["prompt"],"type":"object"},"name":"cursor_agent","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"duration_ms":{"type":["number","null"]},"exit_code":{"anyOf":[{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"null"}],"description":"cursor-agent's exit code (null when it was killed)"},"files_changed":{"description":"Paths of file-tool write/edit/delete calls that reported success, in order, each once. Shell commands are not inspected: a file written by a shell tool is not listed.","items":{"type":"string"},"type":"array"},"files_proposed":{"description":"Paths of file-tool write/edit/delete calls that did not report success (proposed without --force, refused, failed), each once","items":{"type":"string"},"type":"array"},"is_error":{"type":"boolean"},"model":{"description":"The model cursor-agent reported at start (its display name), if it did","type":["string","null"]},"noise_lines":{"description":"stdout lines that were not stream-json events (counted, never dropped)","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"noise_sample":{"description":"The first few of those lines, verbatim (500 characters each at most)","items":{"type":"string"},"type":"array"},"request_id":{"type":["string","null"]},"result":{"description":"The agent's final answer; without a result event, its last message, else empty (what stdout held is in noise_sample, never here)","type":"string"},"session_id":{"description":"The session to resume with cursor_reply","type":["string","null"]},"status":{"description":"cursor-agent's result subtype: success, error, …; no-result-event when the run ended without one","type":"string"},"stderr":{"type":["string","null"]},"tool_calls":{"description":"Completed tool calls the agent made","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["result","status","exit_code","is_error","session_id","request_id","model","duration_ms","tool_calls","files_changed","files_proposed","noise_lines","noise_sample","stderr"],"type":"object"}},{"description":"Continue an existing Cursor agent session. Send a follow-up message in the same conversation context. Requires a session_id from a previous cursor_agent call.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{"model":{"description":"Override the model for this reply (any id cursor_models lists). If omitted, uses the session's original model.","maxLength":200,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._\\/-]*$","type":"string"},"prompt":{"description":"Follow-up message to send in an existing Cursor agent session.","maxLength":100000,"minLength":1,"type":"string"},"session_id":{"description":"Session ID from a previous cursor-agent call. Use cursor-sessions to list available sessions.","maxLength":200,"minLength":1,"pattern":"^[A-Za-z0-9][A-Za-z0-9._:-]*$","type":"string"},"timeout_seconds":{"description":"Maximum execution time in seconds (10-3600). Default: 600 (10 minutes).","maximum":3600,"minimum":10,"type":"integer"}},"required":["prompt","session_id"],"type":"object"},"name":"cursor_reply","outputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"properties":{"duration_ms":{"type":["number","null"]},"exit_code":{"anyOf":[{"maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},{"type":"null"}],"description":"cursor-agent's exit code (null when it was killed)"},"files_changed":{"description":"Paths of file-tool write/edit/delete calls that reported success, in order, each once. Shell commands are not inspected: a file written by a shell tool is not listed.","items":{"type":"string"},"type":"array"},"files_proposed":{"description":"Paths of file-tool write/edit/delete calls that did not report success (proposed without --force, refused, failed), each once","items":{"type":"string"},"type":"array"},"is_error":{"type":"boolean"},"model":{"description":"The model cursor-agent reported at start (its display name), if it did","type":["string","null"]},"noise_lines":{"description":"stdout lines that were not stream-json events (counted, never dropped)","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"},"noise_sample":{"description":"The first few of those lines, verbatim (500 characters each at most)","items":{"type":"string"},"type":"array"},"request_id":{"type":["string","null"]},"result":{"description":"The agent's final answer; without a result event, its last message, else empty (what stdout held is in noise_sample, never here)","type":"string"},"session_id":{"description":"The session to resume with cursor_reply","type":["string","null"]},"status":{"description":"cursor-agent's result subtype: success, error, …; no-result-event when the run ended without one","type":"string"},"stderr":{"type":["string","null"]},"tool_calls":{"description":"Completed tool calls the agent made","maximum":9007199254740991,"minimum":-9007199254740991,"type":"integer"}},"required":["result","status","exit_code","is_error","session_id","request_id","model","duration_ms","tool_calls","files_changed","files_proposed","noise_lines","noise_sample","stderr"],"type":"object"}},{"description":"List the model ids the installed cursor-agent offers (its `models` command), or a known list when it offers none. Pricing is on cursor.com/docs/models-and-pricing. Use an id with cursor_agent's 'model' parameter.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"cursor_models"},{"description":"List Cursor agent sessions created during this MCP server instance. Shows session IDs, models, and prompts. Use session IDs with cursor_reply to continue a conversation.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"cursor_sessions"},{"description":"Check Cursor CLI installation, authentication, and server configuration. Run this first to verify everything is set up correctly.","execution":{"taskSupport":"forbidden"},"inputSchema":{"$schema":"http://json-schema.org/draft-07/schema#","properties":{},"type":"object"},"name":"cursor_health"}]}}}
