Add MCP connection patterns guide for AgentCore Runtime#336
Conversation
Addresses #246 - Provides golden path for managing connections between Strands agents and MCP servers on AgentCore Runtime, including: - Persistent connection patterns - Connection pooling - Service discovery - Health monitoring - Performance optimization
|
Hey @cflow30, Thank you so much for the contribution. I think we would be more inclined to accept this contribution if the title of the menu item and the folder where the contribution was placed were clearer about this being Agent Core specific (agentcore folder). Strands is cloud provider agnostic, and AgentCore is only one way to deploy an MCP, and we want to make sure that is clear to customers. |
| - AWS Lambda: user-guide/deploy/deploy_to_aws_lambda.md | ||
| - AWS Fargate: user-guide/deploy/deploy_to_aws_fargate.md | ||
| - Amazon Bedrock AgentCore : user-guide/deploy/deploy_to_bedrock_agentcore.md | ||
| - MCP Connection Patterns: user-guide/deploy/mcp-connection-patterns.md |
There was a problem hiding this comment.
Nest this in the AgentCore Menu item (you may need to rebase)
|
|
||
| Use persistent connections to avoid the overhead of reinitializing for each request. | ||
|
|
||
| ```python |
There was a problem hiding this comment.
Non-blocking, but would you consider adding TypeScript as well? You can look at other pages to see how to do this
There was a problem hiding this comment.
Move into the agentcore folder (you may need to rebase)
|
This repository has been merged into the strands-agents/harness-sdk monorepo and will be archived shortly. All new development happens there. If this PR is still relevant, please recreate it against the monorepo. The code now lives under Apologies for the disruption, and thank you for contributing! |
Addresses strands-agents/harness-sdk#2568 - Provides golden path for managing connections between Strands agents and MCP servers on AgentCore Runtime, including:
Description
Adds comprehensive guide for MCP connection patterns on AgentCore Runtime to address issue strands-agents/harness-sdk#2568. This documentation provides authoritative guidance on persistent connections, connection pooling, service discovery, and lifecycle management for MCP servers.
Type of Change
Motivation and Context
Issue strands-agents/harness-sdk#2568 identified the need for clear architectural patterns for MCP connection management in AgentCore Runtime. Current documentation lacks guidance on persistent connections vs per-request initialization, leading to performance issues and implementation confusion. This guide eliminates the overhead of per-request reinitialization and provides best practices for production deployments.
Areas Affected
user-guide/deploy/mcp-connection-patterns.mdmkdocs.yml(added navigation entry)Screenshots
N/A - Documentation only
Checklist
mkdocs serveAdditional Notes
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.