:企业治理——Registry、路由与可观测性)
为什么需要治理三个 MCP Server 靠记忆管理。二十个需要系统。企业内 MCP Server 数量增加后出现的典型问题:新同事不知道已有哪些 Server,重复开发了 Jira 工具Agent 调用了已废弃的search_jira工具(v1.x)而不是新的search_issues(v2.x)某次工具调用失败,没有日志,不知道是 Server 挂了还是参数有问题Token 消耗异常,不知道是哪个 Server 的哪个工具Registry 解决发现,路由解决分发,可观测性解决定位。MCP RegistryRegistry 是企业内 MCP Server 的目录,记录每个 Server 的位置、版本、能力和责任人。# mcp-registry.yamlservers:-id:jira-toolsname:Jira 工具集description:"Jira 工单的搜索、创建、更新操作"version:"2.1.0"domain:engineering# 按领域分类owner:"@team-platform"status:active# active / deprecated / experimentaltransport:stdiocommand:pythonargs:["/opt/mcp/jira/server.py"]capabilities:tools:[search_issues,create_issue,update_issue]resources:[jira://projects,jira://sprint/current]metrics:monthly_calls:4521avg_latency_ms:180error_rate:0.2%-id:github-toolsname:GitHub 工具集version:"1.5.0"domain:engineeringowner:"@team-platform"status:activetransport:stdiocommand:npxargs:["-y","@modelcontextprotocol/server-github"]capabilities:tools:[create_pull_request,search_repositories,get_file_contents]-id:postgres-readonlyname:PostgreSQL 只读查询version:"1.0.0"domain:dataowner:"@team-data"status:activetransport:stdiocommand:npxargs:["-y","@modelcontextprotocol/server-postgres","${DATABASE_URL}"]capabilities:tools:[query]resources:["postgres://analytics/schema"]-