-
-
Save KyMidd/898d3952a09dc0956452790ec1873576 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
| # Imports... | |
| # User question to start | |
| user_question = "Tell me about the Repos I own." | |
| # Build GitHub MCP | |
| def github_streamable_mcp_client(): | |
| token = os.getenv("GITHUB_TOKEN", "") | |
| if not token: | |
| raise RuntimeError("GITHUB_TOKEN is not set") | |
| return MCPClient(lambda: streamablehttp_client( | |
| "https://api.githubcopilot.com/mcp/", | |
| headers={"Authorization": f"Bearer {token}"} | |
| )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment