AWS bedrock-agentcore documentation change
Summary
Added tip about enabling MCP sessions or configuring Mcp-Session-Id header to reduce latency.
Security assessment
The change provides performance optimization guidance without addressing security vulnerabilities or introducing security features.
Diff
diff --git a/bedrock-agentcore/latest/devguide/gateway-target-MCPservers.md b/bedrock-agentcore/latest/devguide/gateway-target-MCPservers.md index ef0eea473..863c45e6b 100644 --- a//bedrock-agentcore/latest/devguide/gateway-target-MCPservers.md +++ b//bedrock-agentcore/latest/devguide/gateway-target-MCPservers.md @@ -86,0 +87,4 @@ The following must be configured. +###### Tip + +If your MCP server is hosted on AgentCore Runtime, enable [MCP sessions](./gateway-sessions.html) on your gateway or add `Mcp-Session-Id` as an allowed request and response header in the target’s `metadataConfiguration`. This avoids repeated initialization with the MCP server on each request and results in lower latency for subsequent tool calls. +