Python: Sample on integration of Azure OpenAI Responses Client with a local MCP server - #1215
Merged
Merged
Conversation
…osted Model Context Protocol (MCP)
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a sample demonstrating integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) servers. The example shows how to connect to an MCP server and use it as a tool for Azure OpenAI agents to handle documentation-related queries.
Key changes:
- Added a new Python sample file showing MCP server integration
- Demonstrates authentication with Azure CLI credentials
- Provides example usage of MCPStreamableHTTPTool with Azure OpenAI agents
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…ver can be replaced by any other desired MCP server
Contributor
Author
|
Fixed the new-line issue |
eavanvalkenburg
approved these changes
Oct 6, 2025
dmytrostruk
approved these changes
Oct 6, 2025
…nses_client_with_local_mcp.py Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
eavanvalkenburg
enabled auto-merge
October 7, 2025 07:43
eavanvalkenburg
approved these changes
Oct 7, 2025
ReubenBond
pushed a commit
to ReubenBond/agent-framework
that referenced
this pull request
Oct 28, 2025
… local MCP server (microsoft#1215) * added a sample on integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) * added additional comments mentioning that the Microsoft Learn MCP server can be replaced by any other desired MCP server * corrected the MCP server type to local * added a newline at the end * Update python/samples/getting_started/agents/azure_openai/azure_responses_client_with_local_mcp.py Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> --------- Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
arisng
pushed a commit
to arisng/agent-framework
that referenced
this pull request
Feb 2, 2026
… local MCP server (microsoft#1215) * added a sample on integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) * added additional comments mentioning that the Microsoft Learn MCP server can be replaced by any other desired MCP server * corrected the MCP server type to local * added a newline at the end * Update python/samples/getting_started/agents/azure_openai/azure_responses_client_with_local_mcp.py Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com> --------- Co-authored-by: Dmytro Struk <13853051+dmytrostruk@users.noreply.github.com>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Why is this change required?
The example provides a sample guidance on integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) servers.
What problem does it solve?
This example is not currently present, and it will definitely be a scenario where help would be needed.
What scenario does it contribute to?
It will provide guidance to the developers who are seeking guidance on integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) servers.
If it fixes an open issue, please link to the issue here.
NA
Description
The example provides a sample guidance on integration of Azure OpenAI Responses Client with hosted Model Context Protocol (MCP) servers.
This code is designed to demonstrate how to connect to an MCP server, execute tool calls (such as fetching Microsoft documentation-related responses or other custom actions), and handle the returned data programmatically. The script can be easily adapted to automate workflows or integrate MCP-powered capabilities into larger applications.
Contribution Checklist