> ## Documentation Index
> Fetch the complete documentation index at: https://docs.molesignal.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 接入 Cursor

> 通过远程 Streamable HTTP Server 与 OAuth，将 Cursor Agent 接入 MoleSignal Inbound MCP。

Cursor 支持远程 Streamable HTTP MCP Server 与 OAuth 认证。

## 配置 Server

当前项目使用 `.cursor/mcp.json`；全局配置使用 `~/.cursor/mcp.json`：

```json theme={null}
{
  "mcpServers": {
    "molesignal": {
      "url": "https://molesignal.example.com/api/v1/mcp"
    }
  }
}
```

<Steps>
  <Step title="打开 Tools & MCP">
    打开 **Cursor Settings → Tools & MCP**，找到 `molesignal`。
  </Step>

  <Step title="使用 OAuth 连接">
    选择 **Connect**，在浏览器中完成 MoleSignal 授权。Cursor 会从 MCP
    Protected Resource Metadata 自动发现 OAuth 端点。
  </Step>

  <Step title="验证 Tool">
    确认可用 Tool 中包含 `tool_search`、`call_read_tool` 与 `call_managed_tool`。修改配置后，在 **Tools & MCP** 中重启 Server。
  </Step>
</Steps>

<Warning>
  不要把 Bearer Token 提交到 `.cursor/mcp.json`。交互式 Cursor 会话优先使用 OAuth；
  非交互凭证应使用客户端支持的 Secret 注入机制。
</Warning>

参见 [Cursor MCP 官方文档](https://cursor.com/docs/mcp)。
