llm-wiki wiki · sources 2026-06-14

原文:raw/mcp-lifecycle-operator-architecture-analysis.md · 仓库:https://github.com/kubernetes-sigs/mcp-lifecycle-operator · 优先级 P1

一句话定位

MCP Lifecycle Operator 用声明式 API 部署、管理和安全滚动 MCP Servers,把 Agent tool server 生命周期放进 Kubernetes control plane。

核心架构图

┌────────────────────────────────────────────────────────────────────────────┐
│ MCP server lifecycle intent                                                │
│ Platform teams declare tool server version, config, rollout, security, and │
│ readiness.                                                                 │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ MCP Lifecycle Operator                                                     │
│ Controllers reconcile MCP server deployment, service, config, secrets, and │
│ status.                                                                    │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ Operational automation                                                     │
│ Health checks, rollout control, version state, and production lifecycle    │
│ behavior.                                                                  │
└────────────────────────────────────────────────────────────────────────────┘
                                       │
                                       ▼
┌────────────────────────────────────────────────────────────────────────────┐
│ Consumers                                                                  │
│ Agents, gateways, auth layers, and MCP clients discover and use the        │
│ managed tool servers.                                                      │
└────────────────────────────────────────────────────────────────────────────┘

模块分层

层 / 模块 职责
MCPServer-like APIs MCPServer-like APIs
Controller deploy/rollout/status
Integration gateway/auth/config/secrets
Production automation health, rollout, lifecycle

关键数据流

用户声明 MCP server
        │
        ▼
operator 创建 deployment/service/config
        │
        ▼
执行 rollout/health checks
        │
        ▼
gateway/agent 发现 tool endpoint
        │
        ▼
状态和版本回写

设计决策与哲学