mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: MCP sample bugbash fixes (#4001)
* MCP sample bugbash fixes * import fix
This commit is contained in:
committed by
GitHub
Unverified
parent
cc98d5b6f7
commit
8a2a21da97
@@ -47,10 +47,10 @@ async def github_mcp_example() -> None:
|
||||
# Set approval_mode="never_require" to allow the MCP tool to execute without approval
|
||||
client = OpenAIResponsesClient()
|
||||
github_mcp_tool = client.get_mcp_tool(
|
||||
server_label="GitHub",
|
||||
server_url="https://api.githubcopilot.com/mcp/",
|
||||
name="GitHub",
|
||||
url="https://api.githubcopilot.com/mcp/",
|
||||
headers=auth_headers,
|
||||
require_approval="never",
|
||||
approval_mode="never_require",
|
||||
)
|
||||
|
||||
# 5. Create agent with the GitHub MCP tool
|
||||
|
||||
Reference in New Issue
Block a user