Model Context Protocol

把任意 AI Agent 接入 M2 画布

M2 提供托管 MCP 服务。Agent 只需配一个 URL,就能读、写、截图、编排无限画布上的真实 UI。

服务地址https://test-mcp.patch.design/mcp

接入你的 Agent

选你的 client。通过 OAuth 登录一次即可,无需手动创建 API key。

一次接入本机所有客户端在终端运行:自动找到 Claude Code、Codex、Cursor、OpenCode、Qoder,逐个加上 M2 并打开授权
npx -y @m2canvas/connect@latest
Claude Code用 CLI 加 server
claude mcp add --transport http --scope user patch https://test-mcp.patch.design/mcp
Codex用 CLI 加 server,再走 OAuth 授权
codex mcp add patch --url https://test-mcp.patch.design/mcp
codex mcp login patch
Cursor写入 ~/.cursor/mcp.json
{
  "mcpServers": {
    "patch": {
      "url": "https://test-mcp.patch.design/mcp"
    }
  }
}
任意 MCP 客户端标准 streamable HTTP 传输
transport: streamable-http
url: https://test-mcp.patch.design/mcp
auth: OAuth (browser)

客户端只支持 stdio,用 npx mcp-remote https://test-mcp.patch.design/mcp 桥接。

TEST · claude/dreamy-saha-be6102@e14c5df66