
SPOC
io.github.SPOC-App由 GitHub 账号 SPOC-App 发布v0.1.3更新于 Oct 24, 2026
stdio bridge for the SPOC MCP server — for Claude Desktop, Cursor, Zed
概览
本地 stdio 桥接器,让仅支持 stdio 的 MCP 客户端(如 Claude Desktop、Cursor、Zed)通过 HTTP+SSE 连接远程 SPOC MCP 服务器。
- 可以做什么
- 在 stdio 客户端与 SPOC HTTP 端点之间原样转发 MCP JSON-RPC 帧,使 SPOC 的工具出现在客户端的工具列表中。通过 SSE 事件流转发服务器发起的通知,该功能可关闭。为需要身份的工具传递 bearer 令牌,只读工具也可匿名访问。通过环境变量调整端点、事件端点和请求超时。将调试输出写入 stderr 以便排查问题。
- 适用场景
- 当你的 MCP 客户端只支持 stdio 传输,但需要访问托管的 SPOC MCP 服务器时使用,例如 Claude Desktop、Cursor、Zed、Windsurf 或 Continue。若客户端已直接支持 HTTP+SSE,则无需此桥接器。
- 运行要求
- 需要 Node.js 与 npx,或全局安装该 npm 包。需要访问 SPOC 端点的网络连接,默认使用托管的 RPC 与事件地址。可选 SPOC_BEARER 令牌,来自 SPOC 的 API 密钥设置;匿名只读访问可省略。可选变量 SPOC_ENDPOINT、SPOC_EVENTS_ENDPOINT、SPOC_TIMEOUT_MS、SPOC_DISABLE_SSE 和 SPOC_DEBUG。
安装
在 SourceWeft 中
- 打开 控制台中的 SPOC,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@spocapp/mcp-bridge
Small stdio bridge that lets Claude Desktop, Cursor, Zed, Windsurf and other stdio-only MCP clients talk to the SPOC MCP server at spoc.com/mcp/rpc.
- npm:
@spocapp/mcp-bridge - MCP Registry:
io.github.SPOC-App/mcp-bridge - Live server:
https://spoc.com/mcp/rpc— reports itself asspoc / 1.27.0
What this is (and isn't)
Most current MCP clients only speak the stdio transport — JSON-RPC over a subprocess's stdin/stdout. SPOC's MCP server speaks HTTP+SSE so it can serve many clients at once. This bridge is the shim between the two: install it, point your MCP client at it, and SPOC's tools appear in the client's tool picker.
It is not a rewrite of the MCP protocol, and it doesn't cache, batch, or reinterpret requests. Every JSON-RPC frame goes through unchanged. If you need behaviour that differs from what the bridge does today, it's usually easier to fix in SPOC itself than in the shim.
Install
You don't need to install it — most MCP clients will fetch it on demand with npx:
Or install it once and point clients at the binary:
Configure your MCP client
Claude Desktop
Edit the config file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Restart Claude Desktop. SPOC's tools should appear in the tool picker within a few seconds.
Cursor
~/.cursor/mcp.json (or Settings → MCP → Edit mcp.json):
Zed
~/.config/zed/settings.json:
Windsurf, Continue, etc.
Any client that speaks the MCP stdio transport works the same way. Set the command to npx -y @spocapp/mcp-bridge and pass a bearer via environment.
Environment variables
Bearer tokens
Generate one at https://spoc.com/settings/api-keys. Make sure the harness:issue scope is checked or SPOC will reject calls that need to issue harnesses.
Anonymous access works for read-only tools that don't need a principal. Bearer is only required for tools that act on behalf of an identity.
Smoke test
Confirm the bridge and the upstream are both healthy:
You should get a single JSON line back that includes "name":"spoc" and "version":"1.27.0". If you see that, MCP-aware clients will work.
Troubleshooting
Tools don't appear in the client after restart. Run the smoke test above in a plain terminal. If it returns an error frame, the error.data field will tell you why. If it returns nothing at all, check the client's log for a spawn error — the usual cause is npx not being on the client's PATH.
ERR_INTERNAL on tool calls. Almost always an upstream issue rather than a bridge issue. Set SPOC_DEBUG=1 and re-run — the bridge will log the raw upstream response.
401 errors. The bearer token is missing, wrong, or lacks scope. Verify at https://spoc.com/settings/api-keys.
SSE won't connect. Notifications are optional. Set SPOC_DISABLE_SSE=1 and everything except server-initiated notifications continues to work.
Testing
The client-integration suite spawns spoc-mcp-bridge as a real subprocess and drives it through the same stdio protocol that Claude Desktop, Cursor, Zed, and Windsurf use — initialize, notifications/initialized, tools/list, tools/call, concurrent in-flight calls, mixed-type ids, SSE notifications, upstream errors, and timeouts. If it passes, MCP clients that speak stdio will work.
To also exercise the real production endpoint:
CI runs the offline suite on Node 18 / 20 / 22 for every push and PR; the live suite runs on main only.
Writing your own client
If you're implementing SPOC's report-event HMAC signing directly (rather than going through this bridge), one thing to watch out for: SPOC's canonical form matches JavaScript JSON.stringify behaviour, which leaves non-ASCII characters as themselves rather than escaping them to \uXXXX. Python's default json.dumps(...) escapes non-ASCII — you'll get a bad_signature 401 the first time you include an em-dash, curly quote, or accented character. Pass ensure_ascii=False.
Links
https://spoc.com— the underlying servicehttps://spoc.com/mcp/manifest— the tool cataloguehttps://spoc.com/docs/api— the full HTTP APICHANGELOG.md— release history and what changed between versionsRELEASING.md— how to cut a new release
License
MIT
来源:README.md,提交 371b4cc
工具
0版本历史
1- v0.1.3最新Sep 21, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分