awslabs / awslabs/agentcore-samples
Amazon Bedrock AgentCore Samples - [Bug] hosting MCP server
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**Describe the bug**
01-tutorials/01-AgentCore-runtime/02-hosting-MCP-server/requirements.txt specifies mcp==1.8 but mcp v 1.8 cannot take an integer timeout value for an async http connection. Fix suggested by @EashanKaushik is to use the latest version of the library (which was *much* simpler than Claude's recommended fix :-)
**To Reproduce**
Run hosting_mcp_server.ipynb, cell python invoke_mcp_tools.py will fail.
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**! Additional context !**
- Sagemaker Studio Kernel used
- Instance used
- commit link to the workshop if you're not using the latest
Contributor guide
Research direction
Start with 01-tutorials/01-AgentCore-runtime/02-hosting-MCP-server/requirements.txt and compare the pinned mcp version with the latest compatible release. Run hosting_mcp_server.ipynb and inspect the python invoke_mcp_tools.py cell, where the async HTTP timeout failure occurs. Done means the cell runs successfully with the updated dependency.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- ai, backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100