安装码相关
安装辅助路由,无 confirm 门,不轮换 token、不写 Skill 文件。具体语义以运行时 GET /guide 为准;刷新规程只读 GET /guide。
安装辅助路由,无 confirm 门,不轮换 token、不写 Skill 文件。具体语义以运行时 GET /guide 为准;刷新规程只读 GET /guide。
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.
安装辅助路由,具体语义以运行时 GET /guide 为准;不轮换 token。
Response Body
curl -X POST "https://example.com/install/code" \ -H "Content-Type: application/json" \ -d '{}'Empty
安装脚本(一次性码) GET
GET /bridge/v1/install?code=xxx。code 10 分钟有效、只能用一次。成功返回 shell 安装脚本(写 token + 装 Skill);失败 403 返回无效/过期提示脚本。
MCP 通道 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 通道为准。