You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/concepts/tools/mcp-tools.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,6 +75,22 @@ with streamable_http_mcp_client:
75
75
agent = Agent(tools=tools)
76
76
```
77
77
78
+
You can configure additional properties - like authentication and headers - when creating the `streamablehttp_client`. All configuration options from the [MCP Python SDK](https://github.com/modelcontextprotocol/python-sdk) are supported:
79
+
80
+
```python
81
+
import os
82
+
from strands.tools.mcp.mcp_client import MCPClient
83
+
from mcp.client.streamable_http import streamablehttp_client
84
+
85
+
github_http_mcp_client = MCPClient(
86
+
lambda: streamablehttp_client(
87
+
url="https://api.githubcopilot.com/mcp/",
88
+
# Get pat token from here: https://github.com/settings/personal-access-tokens
0 commit comments