Skip to content

Python: update MCP OAuth sample dependencies - #14352

Merged
SergeyMenshykh merged 2 commits into
microsoft:mainfrom
SergeyMenshykh:update-mcp-oauth-sample-dependencies
Aug 31, 2026
Merged

Python: update MCP OAuth sample dependencies#14352
SergeyMenshykh merged 2 commits into
microsoft:mainfrom
SergeyMenshykh:update-mcp-oauth-sample-dependencies

Conversation

@SergeyMenshykh

Copy link
Copy Markdown
Contributor

Motivation and Context

Keep the MCP OAuth demo aligned with the current Semantic Kernel Python SDK release and public API signatures.

Description

  • Update the sample's Semantic Kernel dependency to 1.44.1.
  • Refresh the lockfile for the updated dependency graph.
  • Align timeout and agent-thread type annotations with the current SDK APIs.

Contribution Checklist

Update the MCP OAuth sample to use Semantic Kernel 1.44.1 and align the sample with the current SDK type signatures.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 71b0555a-bf39-4b88-8ff9-9a1178453c1b
Copilot AI lite review requested due to automatic review settings August 31, 2026 10:38
@SergeyMenshykh
SergeyMenshykh requested a review from a team as a code owner August 31, 2026 10:38

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

Updates the Python MCP OAuth demo to stay compatible with the current Semantic Kernel Python SDK release and its MCP/OAuth-related APIs.

Changes:

  • Bumps the demo’s semantic-kernel[mcp] dependency to >=1.44.1.
  • Refreshes uv.lock to reflect the updated transitive dependency graph.
  • Updates the MCP plugin timeout argument and agent thread typing to match current SDK signatures.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
python/samples/demos/mcp_with_oauth/uv.lock Regenerated lockfile for the updated Semantic Kernel and transitive dependencies.
python/samples/demos/mcp_with_oauth/pyproject.toml Pins semantic-kernel[mcp] to >=1.44.1.
python/samples/demos/mcp_with_oauth/agent/main.py Aligns MCP timeout argument type and thread annotation with current Semantic Kernel APIs.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread python/samples/demos/mcp_with_oauth/agent/main.py Outdated
@SergeyMenshykh SergeyMenshykh self-assigned this Aug 31, 2026

@github-actions github-actions Bot 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.

MAF Automated Review — Iteration 1

Result: No findings
Scope: full PR (1 commit(s)): 84ef67d63133
Model: claude-opus-4.8

Overview

This PR maintains the mcp_with_oauth demo: it pins semantic-kernel[mcp]>=1.44.1,
regenerates uv.lock, and aligns two agent/main.py annotations with the current
SDK public API (timeout=60.0 float instead of timedelta, and a widened
AgentThread thread annotation). All four edits were verified against the in-tree
SDK 1.44.1: MCPStreamableHttpPlugin.__init__ declares timeout: float | None,
AgentThread is an exported public base of ChatHistoryAgentThread, the removed
timedelta/ChatHistoryAgentThread symbols are cleanly excised, and the lockfile
digests match genuine PyPI artifacts with no downgraded or vulnerable pins. The
edits are correctness-improving and demo-scoped, so no publishable defect is
established. The one residual risk — the regenerated lock resolving a never-tested
openai 3.x major against SK 1.44.1 — is unverified and demo-only, recorded as a
follow-up rather than a concrete finding.

Reviewed the supplied pull-request change set across correctness, security/reliability, architecture, and failure behavior.
No publishable findings remained after source verification for this scope.

@SergeyMenshykh SergeyMenshykh moved this to In Progress in Agent Framework Aug 31, 2026
@SergeyMenshykh SergeyMenshykh moved this from In Progress to In Review in Agent Framework Aug 31, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 71b0555a-bf39-4b88-8ff9-9a1178453c1b
@SergeyMenshykh
SergeyMenshykh added this pull request to the merge queue Aug 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 31, 2026
@SergeyMenshykh
SergeyMenshykh merged commit 6da62d3 into microsoft:main Aug 31, 2026
31 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Done in Agent Framework Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants