Skip to main content

zongyuan-kernel-mcp

把 ZONGYUAN-ROOT 自治内核(V3.0,确权锚点 Ω₀⊂⊙∞⊂Ω,DID-BR-000002)的十大标准 REST 能力封装为 MCP (Model Context Protocol) 服务器,供任意 MCP Client(Claude Desktop、OpenCode、Cline 等)直接调用。

单文件、零第三方依赖、纯 Python 标准库(>= 3.8),stdio 传输。

上游

上游是 ZONGYUAN-ROOT Kernel API(P2A · Protocol-to-Agent Open Layer):

  • 默认地址 http://127.0.0.1:9311,可用环境变量 ZR_KERNEL_URL 指向任意已部署实例
  • 除 kernel_info 外均需 X-API-Key 认证,通过环境变量 ZR_API_KEY 提供
  • 上游自带 120 req/min 限流;本封装不缓存、不改写上游语义

工具清单(与上游端点一一对应)

工具 方法与路径 说明
kernel_info GET /api/v1/info 确权锚点、DID、版本、端点清单(免鉴权)
kernel_mount POST /api/v1/kernel/mount 挂载/初始化内核实例
kernel_self_check POST /api/v1/kernel/self-check 触发六维自检
kernel_evolve POST /api/v1/kernel/evolve 触发元闭环进化
kernel_status GET /api/v1/kernel/status 十二维状态、算子数、记忆水位
memory_write POST /api/v1/memory/write 写入记忆(L1/L2/L3)
memory_read GET /api/v1/memory/read 按 ID/标签/层级检索记忆
homology_check POST /api/v1/homology/check 工件哈希同源共识校验
ontology_query GET /api/v1/ontology/query 本体图谱实体与关系查询
neural_activate POST /api/v1/neural/activate 激活神经节点并可传播

快速开始

git clone https://github.com/tanbopiao/zongyuan-kernel-mcp.git
cd zongyuan-kernel-mcp
ZR_KERNEL_URL=http://127.0.0.1:9311 ZR_API_KEY=<your-key> python3 server.py

MCP 客户端配置示例

{
  "mcpServers": {
    "zongyuan-kernel": {
      "command": "python3",
      "args": ["/path/to/zongyuan-kernel-mcp/server.py"],
      "env": {
        "ZR_KERNEL_URL": "http://127.0.0.1:9311",
        "ZR_API_KEY": "<your-key>"
      }
    }
  }
}

已验证

  • MCP stdio 协议:initialize / tools/list / tools/call 全链路通过
  • 对真实内核实例实测:kernel_info、kernel_status、ontology_query 返回正常

License

MIT

Metadata

Release files for zongyuan-kernel-mcp 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zongyuan-kernel-mcp 1.0.0
File Size Uploaded Provenance Actions
zongyuan_kernel_mcp-1.0.0.tar.gz 6.3 kB Without provenance Details for zongyuan_kernel_mcp-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zongyuan-kernel-mcp 1.0.0
File Interpreter ABI Platform Actions
zongyuan_kernel_mcp-1.0.0-py3-none-any.whl Python 3 none any Details for zongyuan_kernel_mcp-1.0.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / zongyuan_kernel_mcp-1.0.0.tar.gz

Download URL zongyuan_kernel_mcp-1.0.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
285d1c60dd12c751ce22b3dc44afaec27d609e14fe77545516e522921eb9ffd7
BLAKE2b-256 checksum
How to use checksums
8ba86f73a3293fe346df5c3f2c191e76fbac64a18d4da986dd1e375b78bea287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / zongyuan_kernel_mcp-1.0.0-py3-none-any.whl

Download URL zongyuan_kernel_mcp-1.0.0-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4475ebdc3eb52692f204316482407ed0d3786e465aea43cbfe07cf01d8420ba
BLAKE2b-256 checksum
How to use checksums
5c98844679757a8e616f98e6c874fea002f2244ca2e642bbad7e04209623eef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for zongyuan-kernel-mcp 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page