awslabs / awslabs/agentcore-samples

Amazon Bedrock AgentCore Samples - [Bug] hosting MCP server

Open
#182 0 comments 0 reactions 0 assignees View on GitHub
01-AgentCore-runtime 01-tutorials bug
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.