Python: MCP sample bugbash fixes (#4001)

* MCP sample bugbash fixes

* import fix
This commit is contained in:
Giles Odigwe
2026-02-17 11:18:27 -08:00
committed by GitHub
Unverified
parent cc98d5b6f7
commit 8a2a21da97
2 changed files with 8 additions and 3 deletions
@@ -1,5 +1,6 @@
# Copyright (c) Microsoft. All rights reserved.
import asyncio
import os
from agent_framework import Agent, MCPStreamableHTTPTool
@@ -54,3 +55,7 @@ async def api_key_auth_example() -> None:
print(f"User: {query}")
result = await agent.run(query)
print(f"Agent: {result.text}")
if __name__ == "__main__":
asyncio.run(api_key_auth_example())