URL Scheme 一旦参数、编码或平台差异出错,用户的一键体验就会断掉
Protocol Launcher 生成安全、可点击、可分发的一键启动链接
import { installMCP } from 'protocol-launcher/cursor' const url = installMCP({ name: 'server-everything', type: 'stdio', command: 'npx', args: [ '-y', '@modelcontextprotocol/server-everything', ], })
installMCP({ name: '企查查企业信息 MCP', type: 'streamable_http', url: 'https://agent.qcc.com/mcp/company/stream', headers: { Authorization: 'Bearer REPLACE_WITH_YOUR_TOKEN', }, })
把 MCP、模型提供商、Base URL 和 API Key 打包成可点击入口
import { openFile } from 'protocol-launcher/vscode' const url = openFile({ path: '/etc/hosts', line: 1, column: 2, openInNewWindow: true, }) // vscode://file/etc/hosts:1:2?windowId=_blank
从 AI 工具到编辑器,再到效率应用和 macOS 工具
OpenCode
Trae
Drafts
Fantastical