无状态 MCP 规范移除 AWS 部署的会话亲和要求
原标题:Stateless MCP Removes Session Affinity Requirements for AWS Server Deployments
AI 摘要
AWS 架构博客阐述了最新 MCP 规范如何改变远程 MCP 服务器部署方式:移除协议级会话与 initialize 握手及 Mcp-Session-Id 头,使请求可路由到任意服务器实例,从而不再需要粘性会话和共享会话存储,简化水平扩展。AWS 建议用常规请求路由替代会话亲和路由,并指出 Lambda 适合该请求-响应模型。同时规范引入 server/discover、MRTR、Mcp-Method/Mcp-Name 头、W3C Trace Context 及缓存控制,但移除流可恢复性,客户端需重试并重视幂等性。Apify 等早期实现正并行支持有状态与无状态两种版本,迁移仍需跟踪协议版本并保留旧会话基础设施。
正文节选
AWS has outlined how the latest Model Context Protocol (MCP) specification changes remote MCP server deployments by removing protocol-level sessions and allowing requests to reach any available server instance. The change eliminates the protocol requirement for sticky sessions and shared session stores, simplifying horizontal scaling while shifting state management and other responsibilities to surrounding infrastructure. The updated MCP specification removes the initialize and initialized hands