Skip to content

Python: Added example with MCP and authentication - #1389

Merged
Dmytro Struk (dmytrostruk) merged 3 commits into
microsoft:mainfrom
dmytrostruk:mcp-auth
Oct 10, 2025
Merged

Python: Added example with MCP and authentication#1389
Dmytro Struk (dmytrostruk) merged 3 commits into
microsoft:mainfrom
dmytrostruk:mcp-auth

Conversation

@dmytrostruk

Copy link
Copy Markdown
Member

Motivation and Context

Basic sample with MCP and authentication with a reference to MCP documentation for OAuth 2.0 samples.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Copilot AI review requested due to automatic review settings October 10, 2025 17:54
@dmytrostruk Dmytro Struk (dmytrostruk) added the python Usage: [Issues, PRs], Target: Python label Oct 10, 2025
@markwallace-microsoft Mark Wallace (markwallace-microsoft) added the documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs label Oct 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new Python example demonstrating MCP (Model Context Protocol) authentication capabilities within the Agent Framework. The addition provides developers with practical guidance on implementing API key-based authentication when connecting to MCP servers.

  • Added API key authentication example for MCP integration
  • Created comprehensive documentation explaining MCP and available examples
  • Provided reference links to official MCP SDK authentication examples

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
python/samples/getting_started/mcp/mcp_api_key_auth.py New example demonstrating API key authentication with MCP servers using various header patterns
python/samples/getting_started/mcp/README.md New documentation file explaining MCP and cataloging available examples

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread python/samples/getting_started/mcp/mcp_api_key_auth.py
Comment thread python/samples/getting_started/mcp/mcp_api_key_auth.py
Comment thread python/samples/getting_started/mcp/README.md
@dmytrostruk
Dmytro Struk (dmytrostruk) added this pull request to the merge queue Oct 10, 2025
Merged via the queue into microsoft:main with commit 29cb87b Oct 10, 2025
20 checks passed
Reuben Bond (ReubenBond) pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
Co-authored-by: Eric Zhu <ekzhu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Usage: [Issues, PRs], Target: documentation in the code base and learn docs python Usage: [Issues, PRs], Target: Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants