为工具和 MCP 服务器生成安装链接
mcp.json
相同的格式,包含名称和传输配置。
安装链接:
组件 | 描述 |
---|---|
cursor:// | 协议方案 |
anysphere.cursor-deeplink | 深度链接处理器 |
/mcp/install | 路径 |
name | 服务器名称的查询参数 |
config | base64 编码 JSON 配置的查询参数 |
JSON.stringify
然后进行 base64 编码$NAME
和 $BASE64_ENCODED_CONFIG
替换为名称和编码后的配置格式 | 示例 |
---|---|
文本链接 | cursor://anysphere.curs… |
深色按钮 | ![]() |
浅色按钮 | ![]() |