YodMCP
YodMCP — Agent Operating System
YodMCP 是一个面向生产的 Agent 操作系统 内核,基于 MCP:多图记忆、任务、技能、A2A、认证(软件/模拟 TEE)、OpenTelemetry 以及基于计划计费。
本 README 旨在让资深工程师仅凭 此文件 + 源代码树 即可完成安装、部署所有功能、测试各项特性并验证端到端流程。
包表面
表面 | 命令 | 默认值 | 目的 |
MCP |
| stdio | 本地 MCP 客户端 (Cursor, Claude Desktop 等) |
MCP HTTP |
|
| 远程 / 可流式 HTTP MCP |
API |
|
| REST 健康检查、记忆、审计、技能、计费 |
A2A |
|
| Agent 卡片、消息、任务 |
SDK |
| HTTP 客户端 | 针对 API 的轻量客户端 |
技能 |
| 自动加载 | 作为 MCP 资源的 Agent 技能 |
验证 |
| CI | Substrate + durable + TEE 模式 |
Related MCP server: Agentic Control Framework (ACF)
系统要求
Python 3.11 或 3.12(声明支持 3.10+;CI 覆盖 3.11/3.12)
可选:用于多服务部署的 Docker
安装
git clone https://github.com/ANAMIZED/YodMCP.git
cd YodMCP
python -m venv .venv && source .venv/bin/activate # recommended
pip install -e ".[dev]"复制环境默认值:
cp .env.example .env变量 | 默认值 | 含义 |
|
|
|
|
| 使用 durable 时的 SQLite 路径 |
|
|
|
|
|
|
|
| 软配额租户密钥 |
| (自动) | 技能根目录覆盖 |
| 未设置 | 启用实时 Checkout 会话 |
TEE 真实性说明:
nitro/sgx是提供商钩子;没有真实的 TEE 库时,它们会回退到模拟声明。本地验证时建议使用software或simulated_tee。
快速开始(本地)
# 1) MCP over stdio (attach from an MCP client)
yodmcp
# 2) REST API
yodmcp-api --port 8080
# curl http://127.0.0.1:8080/health
# 3) A2A
yodmcp-a2a --port 9000
# curl http://127.0.0.1:9000/a2a/cardMCP 客户端配置(stdio)
Cursor — 项目 .cursor/mcp.json 或全局 MCP 设置:
{
"mcpServers": {
"yodmcp": {
"command": "yodmcp",
"args": [],
"env": {
"YODMCP_MEMORY_BACKEND": "memory",
"YODMCP_PLAN": "free",
"YODMCP_ATTEST_MODE": "software"
}
}
}
}如果 yodmcp 不在 PATH 中,请使用模块形式:
{
"mcpServers": {
"yodmcp": {
"command": "python",
"args": ["-m", "yodmcp"],
"cwd": "/absolute/path/to/YodMCP",
"env": {
"PYTHONPATH": "src",
"YODMCP_MEMORY_BACKEND": "memory"
}
}
}
}Claude Desktop — 在 claude_desktop_config.json 的 mcpServers 下配置相同结构。
可流式 HTTP MCP(支持 URL 传输的远程客户端):
yodmcp --http --host 0.0.0.0 --port 8000
# endpoint: http://127.0.0.1:8000/mcpDocker
docker compose up --build
# API :8080 A2A :9000 MCP HTTP :8000单个 API 容器:
docker build -t yodmcp .
docker run --rm -p 8080:8080 -e YODMCP_PLAN=free yodmcp端到端验证(无需外部账户)
# Unit + integration
YODMCP_MEMORY_BACKEND=memory YODMCP_ATTEST_MODE=software \
PYTHONPATH=src pytest tests/ -v
# Durable SQLite + simulated TEE
YODMCP_MEMORY_BACKEND=sqlite YODMCP_MEMORY_DB=/tmp/yodmcp.db \
YODMCP_ATTEST_MODE=simulated_tee \
PYTHONPATH=src pytest tests/ -v
# Exhaustive substrate script
PYTHONPATH=src python scripts/verify_e2e.py预期:所有测试通过;脚本输出 ALL E2E CHECKS PASSED。
API 冒烟测试(需要 yodmcp-api 正在运行):
curl -s http://127.0.0.1:8080/health
curl -s http://127.0.0.1:8080/api/skills
curl -s http://127.0.0.1:8080/api/billing/plans
curl -s http://127.0.0.1:8080/api/billing/statusSDK:
python examples/sdk_quickstart.py # requires API on :8080MCP 工具(目录)
工具 | 描述 |
| 持久化到多图层级记忆 |
| 通过嵌入相似度检索 |
| 将高重要性情景记忆提升为语义记忆 |
| 节点/边计数 |
| 持久化异步任务句柄 |
| 列出 Agent 技能(含资源 URI) |
| A2A Agent 卡片 JSON |
| 语义计划缓存 |
| 缓存统计信息 |
| 最近的 TRACE 风格声明 |
| 最近的策略/审计事件 |
| 工具和技能的渐进式发现 |
| 连接探测 |
资源:
skills://{name}— 技能 Markdown 正文yodmcp://agent-card— Agent 卡片 JSON
技能
内置技能始终注册。磁盘技能 位于 skills/*/SKILL.md,会自动加载(可通过 YODMCP_SKILLS_DIR 覆盖)。仓库附带:
memory-hygiene,safe-tool-use,funding-usdc,repo-bootstrap以及内置的
long-horizon-planning
计费
计划 | 美元/月 | 工具调用/天 | 持久化 | TEE |
Free | 0 | 500 | — | — |
Pro | 49 | 50k | 是 | 模拟 |
Enterprise | 499 | 无限制 | 是 | Nitro/SGX 钩子 |
通过工具门控实现软配额;配额用尽时显示升级提示
设置
STRIPE_SECRET_KEY后启用实时 Stripe Checkout;否则 Checkout 返回status: payment_link
计划 | 链接 |
Pro | |
Enterprise |
非托管 USDC(Agent 优先推荐)
网络 | 地址 |
Base |
|
Ethereum |
|
Solana |
|
项目结构
src/yodmcp/ # package (src-layout)
core/ # server, substrate, context
memory/ # in-memory + durable SQLite multi-graph
tools/ # MCP tool registration + gate
tasks/ skills/ cache/ security/ observability/ monetization/
api/ a2a/ sdk/
skills/*/SKILL.md # portable Agent Skills (loaded at runtime)
scripts/verify_e2e.py
tests/
docs/ARCHITECTURE.md已知限制(请在声明生产环境前阅读)
计划缓存 使用轻量级嵌入;默认相似度阈值为 0.68(非生产级向量搜索)。
TEE Nitro/SGX 是钩子,除非接入真实提供商,否则会回退到模拟。
前端
src/yodmcp/frontend/dashboard.py仍使用旧的core.runtime,不是 主控制平面——请使用yodmcp-api+ MCP 工具。配额 是软配额(进程内计量);非分布式计费账本。
进程间 不 共享内存状态;请使用
sqlite后端 + 共享卷实现多进程持久化。
许可证
Apache-2.0 · CONTRIBUTING · CHANGELOG · ARCHITECTURE · AGENTS.md
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables deployment of autonomous AI agents with memory and tool execution capabilities through a WebSocket-based MCP protocol. Provides production-ready infrastructure with REST API access, persistent state management, and extensible function registry for building self-hosted AI systems.
- AlicenseDqualityCmaintenanceAI-native orchestration layer with 80+ tools for task management, code editing, browser automation, terminal control, and persistent memory across CLI, local MCP, and cloud deployments.691131ISC
- Alicense-qualityDmaintenanceFoundational MCP/A2A-native core platform for secure credential injection, native x402 micropayments, and Agent-to-Agent routing.2MIT
- Alicense-qualityDmaintenanceA production-ready MCP server that equips AI agents with dynamic, persistent, and executable skills. It enables secure script execution and progressive disclosure to reduce context window usage.15MIT
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
MCP-native Trust Infrastructure for AI Agents. Persistent encrypted memory with Trust Quotient.
Sovereign Agent OS — Persistent Memory, Governance & Compliance for AI Agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ANAMIZED/YodMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server