-
-
Save KyMidd/a6326cdfc0b01cfa17e4dc56152431af 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
| # Create MCP clients | |
| github_mcp_client = github_streamable_mcp_client() | |
| pagerduty_mcp_client = build_pagerduty_mcp_client() | |
| # Open tools and start chatting | |
| with github_mcp_client, pagerduty_mcp_client: | |
| # Configure bedrock model | |
| bedrock_model = configure_bedrock_model() | |
| # Inventory tools each MCP provides | |
| github_tools = github_mcp_client.list_tools_sync() | |
| pagerduty_tools = pagerduty_mcp_client.list_tools_sync() | |
| # Build "tool belt" lol | |
| agent_tools = github_tools + pagerduty_tools + [calculator, current_time, retrieve, use_aws] | |
| # Create agent with tools | |
| agent = create_agent(agent_tools) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment