AGENT SKILL
go-binance-mcp-http-api-mirror
Maintain the go_binance_futures Streamable HTTP MCP server when its explicit REST allowlist, JWT forwarding, transport, or documentation changes. Use for adding or removing categorized MCP tools while ensuring unrelated HTTP routes remain unexposed and conf/app.conf stays untouched.
适用职业开发工程师
- License 许可
- MIT
- 最近更新
- 2026-11-11
- Stars
- ★ 255
- Forks
- 57
01 前言 Front Matter
- name
- go-binance-mcp-http-api-mirror
- trusted
- false
- version
- 1.0.0
- description
- Maintain the go_binance_futures Streamable HTTP MCP server when its explicit REST allowlist, JWT forwarding, transport, or documentation changes. Use for adding or removing categorized MCP tools while ensuring unrelated HTTP routes remain unexposed and conf/app.conf stays untouched.
03 SKILL.md 正文
Go Binance MCP HTTP API Mirror
Use this workflow when adding or changing MCP coverage in /Users/zhz/work/binance/go_binance_futures.
- Read
routers/router.go,mcpserver/,middlewares/auth.go, and the relevant controller inputs. Establish the user-approved MCP allowlist before editing; never infer that every non-login route should be exposed. - Keep only explicitly allowed, stable, categorized tools in
mcpserver/api_tools.go. Keep tool paths fixed in code; never accept an arbitrary target URL. Usepath_params,query, andbodyto preserve each allowed REST contract. - Keep MCP transport Streamable HTTP only at
/mcp. Do not add stdio, command, or a separate local port. Require the existing login JWT and forward the incomingAuthorizationheader to the internal HTTP call. - Do not register MCP-specific notification, scanner, system, account, order, or other privileged tools unless the user explicitly adds them to the allowlist. Removing an MCP-only notification tool also removes its dedicated adapter and template while preserving the project's ordinary notification services.
- Test the exact tool-name and method/path allowlist, confirm every allowed operation still exists in
routers/router.go, and ensure unrelated routes are not required or auto-exposed. Also testtools/list, an actual allowedtools/call, Authorization propagation, and internal HTTP request construction. - Run MCP tests from an isolated
/tmpconfig and language directory. Compile from the repository, but never modify or use the realconf/app.confas test setup. Bind only a temporary localhost port for Streamable HTTP protocol tests. - Update
doc/mcp.mdwith endpoint, JWT setup, common arguments, the exact current allowlist, removed tool groups, and destructive-operation warnings. Verify every registered tool appears in the document and deleted tool names do not remain. - Finish with
git diff --check, focusedgo vet, a main-package compile-only check, an exact residual route/tool comparison, andgit diff --exit-code -- conf/app.conf. Preserve unrelated worktree changes.
04 同仓库更多 Skills
valid-resources
Use a bundled reference when a task needs the fixture policy.
★ 255
valid-minimal
Summarize a user request. Use when a concise structured summary is needed.
★ 255
go-binance-web-notification
Implement and verify persisted browser notifications with authenticated WebSocket delivery across go_binance_futures and go_binance_futrues_new_ui.
★ 255