Skip to main content

cursor-mcp

Configure MCP servers on Cursor SDK agents — stdio subprocess, HTTP, and SSE transports, inline vs file-based config, and per-run overrides. Use when extending an agent's tools beyond the built-ins.

ソース情報

リポジトリ
HKTITAN/cursor-sdk
ソースの最終更新活動
2026年5月3日 08:23
検出された SKILL.md の言語
英語
スター
2
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

ファイルエクスプローラー
9 ファイル

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
cursor-mcp
description
Configure MCP servers on Cursor SDK agents — stdio subprocess, HTTP, and SSE transports, inline vs file-based config, and per-run overrides. Use when extending an agent's tools beyond the built-ins.
metadata
{"internal":false,"source":"https://cursor.com/docs/sdk/typescript"}
# cursor-mcp MCP servers expose tools to the agent. Configure them on `AgentOptions.mcpServers` (or `SendOptions.mcpServers` for per-run override) as `Record<string, McpServerConfig>` — the **key is the server name**. ## Transports - [[references/stdio]] — `command`, `args`, `env`, `cwd` - [[references/http]] — `url`, `headers`, `auth` - [[references/sse]] — `url` with SSE transport ## Configuration patterns - [[references/inline-config]] — `mcpServers` on `Agent.create` - [[references/per-run-override]] — `mcpServers` on `agent.send` (replaces, doesn't merge) - [[references/file-config]] — `.cursor/mcp.json` and `settingSources` - [[references/persistence]] — inline servers are not persisted across `Agent.resume` ## Auth - [[references/oauth]] — `auth.CLIENT_ID` / `CLIENT_SECRET` / `scopes` for HTTP/SSE ## Cross-links - Tool calls in the stream → [[../cursor-runs/references/sdk-message-types]] - Subagent-scoped MCP → [[../cursor-subagents/references/agent-definition]] - Hooks for tool gating → [[../cursor-hooks/SKILL]] - `IntegrationNotConnectedError` → [[../cursor-errors/references/integration-not-connected]]
GitHubで見る