awslabs / awslabs/agentcore-samples
Amazon Bedrock AgentCore Samples - [Bug]
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**Describe the bug**
A clear and concise description of what the bug is. This could be anything from:
1. A typo or text changes that make the lab better.... to
2. minor annoying code that still works.. to
3. breaking changes
**To Reproduce**
Steps to reproduce the behavior (or some version of this):
1. Go to '01-tutorials/01-AgentCore-runtime/02-hosting-MCP-server/hosting_mcp_server.ipynb'
2. Scroll down to 'Creating Local testing Client'
3. Go to streamablehttp_client(mcp_url, headers, timeout=120, terminate_on_close=False)
**Expected behavior**
`with streamablehttp_client does not support timeout=120, `
change to
`with streamablehttp_client(mcp_url, headers, terminate_on_close=False)`
**Screenshots**
Error:
```
line 772, in __aexit__ | raise BaseExceptionGroup(
| ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/Users/pratipb/Documents/AWSDEV/amazon-bedrock-agentcore-samples/venv/lib/python3.11/site-packages/mcp/client/streamable_http
.py", line 453, in streamablehttp_client | transport.timeout.seconds, read=transport.sse_read_timeout.seconds
| ^^^^^^^^^^^^^^^^^^^^^^^^^
| AttributeError: 'int' object has no attribute 'seconds'
+------------------------------------
```
**! Additional context !**
- Fix the all calls `streamablehttp_client`, like invoke_mcp_tools.py
Contributor guide
Assessment
This issue has not been assessed yet.