Routing gateway kernel MCP: exact and prefix routes, default-deny, pass ledger, bitwise replay.
MCPpedia last refreshed this data
io.github.tanbopiao/zongyuan-gateway is an MCP server that routing gateway kernel MCP: exact and prefix routes, default-deny, pass ledger, bitwise replay. Its tool list has not been published yet over stdio, requires no API key, and scores 38/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"io-github-tanbopiao-zongyuan-gateway": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Routing gateway kernel MCP: exact and prefix routes, default-deny, pass ledger, bitwise replay.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in finance / maps
OKX trading MCP server — connect AI agents to spot, swap, futures, options & grid bots via the Model Context Protocol.
AI tools for EasyEDA Pro schematics, PCB placement and routing, SPICE simulation, and DRC.
Unofficial read-only deweloperuch.pl data: new-build asking prices, RCN transactions, GUS and NBP
Install, configure, operate and integrate self-hosted PayRam crypto payment gateways.
MCP Security Weekly
Get CVE alerts and security updates for io.github.tanbopiao/zongyuan-gateway and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
路由网关内核:路由在册、默认拒绝、通行留痕、重放可验,纯标准库。
|元枢体系 YUANSHU
一个纯标准库的路由网关内核:路由在册(精确路径与前缀路径分册注册,重复注册即拒);过门裁决按「精确优先于前缀、前缀最长者胜」定序,未注册路径默认拒绝,不静默放行;每次放行或拒绝都记入只追加的通行簿(路径、路由、裁决、序号);任意时刻可从通行簿重放裁决序,逐位一致——「裁决可重演」是本内核的第一契约;通行簿摘要在册,一字被改必现形。
| 道统名 | 内核对象 | 职责 |
|---|---|---|
| 路由在册 | register | 精确与前缀分册注册,重复即拒,不静默覆盖 |
| 所向有表 | match | 精确优先于前缀,前缀最长者胜 |
| 所禁有门 | handle | 未注册路径默认拒绝,裁决一律留痕 |
| 通行留痕 | ledger | 只追加通行簿:路径、路由、裁决、序号 |
| 重放核验 | replay | 按簿重演裁决序,逐位一致 |
| 摘要 | digest | SHA-256(canonical 通行簿),篡改现形 |
from zongyuan_gateway import Gateway
gw = Gateway()
gw.register("/health", "体检门")
gw.register("/api/", "总门", prefix=True)
gw.register("/api/v2/", "二版门", prefix=True)
gw.handle("/api/v2/users") # 放行(二版门:最长前缀胜)
gw.handle("/secret") # 拒绝(未注册路径默认拒)
print(gw.ledger()) # 通行留痕
print(gw.replay() == gw.ledger()) # True:裁决可重演
print(gw.digest()) # 摘要:篡改现形
命令行:
python tools/zongyuan_gateway.py stats ledger.json
python tools/zongyuan_gateway.py digest ledger.json
python tools/zongyuan_gateway.py replay ledger.json
内核已拧成 MCP 服务器(stdio,FastMCP,八工具):register_route/match_route/handle_path/ledger_view/replay_ledger/digest/stats/describe。进程内持有网关正本,通行簿随进程累积。
pip install "mcp>=1.0" # 仅门面需要,内核保持纯标准库
python run_mcp_server.py
注册配置(server.json:io.github.tanbopiao/zongyuan-gateway,v0.2.0)。
json/hashlib),无第三方依赖,无网络服务。/ 开头,重复注册(含跨册同路径)一律 GatewayError,不静默覆盖。GatewayError,不撞裸异常。regression.md 登记回归铁律(路由、匹配、拒绝、日志、摘要五域契约)。运行:
python3 -m unittest discover -s . -p "test_*.py"
Dual-licensed: AGPL-3.0 (default) or a commercial license for closed-source use — see DUAL-LICENSE.md。仓库:https://github.com/tanbopiao/zongyuan-gateway
生态导航:本作品属于 元枢工具货架(21 件 MCP,自动聚合)。 同门:tanze(深研) · pialuo(网页提取) · wengu(跨会话记忆) · jiwei(像素特效) · constraint-runtime(约束治理) · agent-eval-engine(可验证评测) · 全部作品