awslabs / awslabs/agentcore-samples
Amazon Bedrock AgentCore Samples - [Bug] error when running demo 01-tutorials/02-AgentCore-gateway/02-transform-apis-into-mcp-tools/03-transform-smithyapis-into-mcp-tools/01-s3-smithy-into-mcp-iam.ipynb
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**Describe the bug**
I'm running the notebook:
01-tutorials/02-AgentCore-gateway/02-transform-apis-into-mcp-tools/03-transform-smithyapis-into-mcp-tools/01-s3-smithy-into-mcp-iam.ipynb
In the region us-west-2.
I run into this error when calling the gateway:
```
| Traceback (most recent call last):
| File "/Users/maitreyr/Dev/generativeAI/amazon-bedrock-agentcore-samples/.venv/lib/python3.10/site-packages/strands/tools/mcp/mcp_client.py", line 271, in _async_background_thread
| await session.initialize()
| File "/Users/maitreyr/Dev/generativeAI/amazon-bedrock-agentcore-samples/.venv/lib/python3.10/site-packages/mcp/client/session.py", line 146, in initialize
| raise RuntimeError(
| RuntimeError: Unsupported protocol version from the server: 2025-03-26
```
**To Reproduce**
Change the region in the notebook to us-west-2 and run the notebook.
**Expected behavior**
Client should be able to call the MCP server.
Contributor guide
Research direction
Start by rerunning 01-tutorials/02-AgentCore-gateway/02-transform-apis-into-mcp-tools/03-transform-smithyapis-into-mcp-tools/01-s3-smithy-into-mcp-iam.ipynb in us-west-2 and inspect the MCP client and gateway protocol versions. Done means the notebook can call the MCP server without the unsupported protocol version error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- jupyter-notebook, python
- Domain
- ai, api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100