AI Practices AI实践 6h ago Updated 1h ago 更新于 1小时前 52

How AgentCore Gateway supports the MCP 2026-07-28 spec AgentCore Gateway如何支持MCP 2026-07-28规范

MCP 2026-07-28 introduces a stateless protocol design, eliminating session-based interactions to enable horizontal scaling via standard HTTP infrastructure. The new spec replaces the initialize/initialized handshake with self-contained requests carrying version and client info in the _meta parameter, reducing dependency on sticky sessions or shared stores. Governance enhancements include a feature lifecycle policy, extensions framework, and conformance-suite requirements to ensure backward compa MCP 2026-07-28 规范发布,核心变化为协议无状态化,基于普通 HTTP 基础设施实现水平扩展。 引入受管扩展系统、强化 OAuth 2.0/OpenID Connect 授权机制及生命周期保障,减少未来版本破坏性变更。 AgentCore Gateway 支持通过 `UpdateGateway` 配置启用新协议版本,客户端按需选择版本,升级过程可选且向后兼容。 移除会话 ID(Session ID)和初始化握手,所有请求携带元数据(_meta),工具调用自包含。 新增 `server/discover` 方法供客户端动态发现服务器能力,替代旧版 handshake 机制。

75
Hot 热度
70
Quality 质量
75
Impact 影响力

Analysis 深度分析

TL;DR

  • MCP 2026-07-28 introduces a stateless protocol design, eliminating session-based interactions to enable horizontal scaling via standard HTTP infrastructure.
  • The new spec replaces the initialize/initialized handshake with self-contained requests carrying version and client info in the _meta parameter, reducing dependency on sticky sessions or shared stores.
  • Governance enhancements include a feature lifecycle policy, extensions framework, and conformance-suite requirements to ensure backward compatibility in future updates.
  • Authorization now aligns with enterprise standards (OAuth 2.0/OpenID Connect), improving security and integration readiness for large-scale deployments.
  • AgentCore Gateway supports opt-in adoption of the new version without disrupting existing clients, allowing gradual migration and coexistence with older versions.

Why It Matters

This revision addresses critical scalability challenges faced by AI agent systems operating at enterprise scale, enabling seamless deployment across distributed infrastructures without requiring complex session management. By decoupling state from transport, it simplifies architecture patterns for cloud-native AI services while maintaining robustness through standardized governance and security models. For practitioners, this means easier integration with existing HTTP-based toolchains and reduced operational overhead when scaling agent-driven workflows.

Technical Details

  • Stateless Architecture: Removed Mcp-Session-Id header requirement; all contextual data (protocol version, client identity, capabilities) is embedded within each request’s _meta parameter, allowing any server instance to handle any request independently.
  • Request Format Changes: Replaced multi-step handshake with single-call semantics using headers like MCP-Protocol-Version and Mcp-Method; example shows direct tool invocation with embedded metadata instead of prior session establishment.
  • Discovery Mechanism: Introduced server/discover method as alternative to initial handshake, enabling dynamic capability probing without assuming fixed initialization sequence.
  • Backward Compatibility Strategy: Gateway advertises supported versions via configuration field; clients explicitly select version per request—older clients continue functioning unchanged unless they opt into newer behavior.
  • Security Alignment: Integrated OAuth 2.0 and OpenID Connect flows for authentication/authorization, replacing custom mechanisms with industry-standard protocols suitable for regulated environments.

Industry Insight

The shift toward statelessness reflects broader trends in microservices and serverless architectures where elasticity and fault tolerance are paramount—AI agents built on this specification will inherit these benefits natively without additional engineering effort. Enterprises adopting MCP 2026-07-28 can expect smoother compliance audits due to alignment with established identity frameworks, accelerating trust in autonomous tool usage across hybrid cloud setups. Additionally, the governed extension system suggests a maturing ecosystem where third-party tools can evolve safely under defined rules, fostering innovation while minimizing fragmentation risks in agent interoperability landscapes.

TL;DR

  • MCP 2026-07-28 规范发布,核心变化为协议无状态化,基于普通 HTTP 基础设施实现水平扩展。
  • 引入受管扩展系统、强化 OAuth 2.0/OpenID Connect 授权机制及生命周期保障,减少未来版本破坏性变更。
  • AgentCore Gateway 支持通过 UpdateGateway 配置启用新协议版本,客户端按需选择版本,升级过程可选且向后兼容。
  • 移除会话 ID(Session ID)和初始化握手,所有请求携带元数据(_meta),工具调用自包含。
  • 新增 server/discover 方法供客户端动态发现服务器能力,替代旧版 handshake 机制。

为什么值得看

该更新标志着 MCP 协议向企业级可扩展性和安全性迈进的关键一步,对构建大规模 AI 代理系统的开发者至关重要。无状态设计简化了部署架构,而强化的身份验证与治理机制提升了生产环境下的可靠性与合规性。

技术解析

  • 无状态架构转型:旧版依赖 Mcp-Session-Id 绑定客户端到特定服务器实例,需 sticky session 或共享存储;新版取消会话层,每个请求独立携带协议版本、客户端信息(via _meta)和能力声明,使 MCP 服务可像标准 HTTPS 端点一样横向扩展。
  • 请求格式革新:HTTP 头部新增 MCP-Protocol-VersionMcp-Method,JSON-RPC 负载中嵌入 _meta 字段传递 clientInfo(如 name/version),取代原有 initialize/initialized 握手流程。
  • 动态能力发现:引入 server/discover 方法,允许客户端在任何时刻查询服务器支持的协议版本和功能,无需预知能力,增强灵活性与互操作性。
  • 状态管理下沉至应用层:若需跨调用保持状态(如购物车 ID),应由工具自身在参数中显式传递句柄(如 basket_id),而非依赖协议层会话,符合 RESTful 设计原则。
  • AgentCore Gateway 透明适配:网关作为统一入口聚合后端 Lambda/API/MCP 服务,自动处理协议转换与版本路由;用户只需在 gateway 配置中声明支持的版本列表(如 2025-11-25 + 2026-07-28),客户端自行协商使用哪一版,零侵入升级。

行业启示

  • AI 代理基础设施标准化加速:MCP 无状态化趋势反映行业对云原生、弹性伸缩架构的迫切需求,未来更多通信协议将摒弃会话绑定,推动“即插即用”式工具集成成为主流。
  • 安全与治理前置化:OAuth 2.0/OC 对齐及扩展治理框架表明,企业级 AI 应用正从功能优先转向安全可控优先,协议层内置权限校验与版本生命周期管理将成为标配。
  • 开发者体验优化导向明确:通过 opt-in 升级、 backward-compatible 设计和自动化网关屏蔽底层复杂性,降低 adoption 门槛,鼓励渐进式迁移而非强制重构,有利于生态健康演进。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Security 安全 Deployment 部署 Policy 政策