MCP 通道
MCP 客户端接入点:claude mcp add --transport http marginnote http://127.0.0.1:{port}/bridge/v1/mcp --header "Authorization: Bearer $TOKEN"。工具仅 mn_guide(规程)与 mn_call({method,path,body} 转发)。GET /mcp 未实现(501),以 POST 通道为准。
MCP 客户端接入点:claude mcp add --transport http marginnote http://127.0.0.1:{port}/bridge/v1/mcp --header "Authorization: Bearer $TOKEN"。工具仅 mn_guide(规程)与 mn_call({method,path,body} 转发)。GET /mcp 未实现(501),以 POST 通道为准。
Authorization
bearerAuth AuthorizationBearer <token>
安装脚本写入 ~/.config/mn-bridge/token,或环境变量 MN_BRIDGE_TOKEN。不要带 Origin 头。
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
MCP JSON-RPC 通道,工具仅 mn_guide 与 mn_call({method,path,body} 转发到同一批端点)。
Response Body
curl -X POST "https://example.com/mcp" \ -H "Content-Type: application/json" \ -d '{}'Empty