-
-
Save KyMidd/3902874d7524c30e5be9d173a70ff13c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from strands import Agent | |
| from strands.tools.mcp import MCPClient | |
| from mcp import stdio_client, StdioServerParameters | |
| aws_docs_client = MCPClient( | |
| lambda: stdio_client(StdioServerParameters(command="uvx", args=["awslabs.aws-documentation-mcp-server@latest"])) | |
| ) | |
| with aws_docs_client: | |
| agent = Agent(tools=aws_docs_client.list_tools_sync()) | |
| response = agent("Tell me about Amazon Bedrock and how to use it with Python") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment