fix(mcps): migrate servers to MCP SDK 2 - #18463
Open
Christopher Co (christopherco) wants to merge 1 commit into
Open
fix(mcps): migrate servers to MCP SDK 2#18463Christopher Co (christopherco) wants to merge 1 commit into
Christopher Co (christopherco) wants to merge 1 commit into
Conversation
Copilot started reviewing on behalf of
Christopher Co (christopherco)
August 15, 2026 04:54
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates helper MCP servers to MCP Python SDK 2 while preserving decorators and stdio execution.
Changes:
- Bumps
mcpto 2.0.0. - Replaces
FastMCPwithMCPServer. - Updates the shared SDK re-export.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
scripts/mcps/requirements.txt |
Pins MCP SDK 2.0.0. |
scripts/mcps/_mcp_utils.py |
Re-exports MCPServer. |
scripts/mcps/koji-mcp.py |
Migrates the Koji server. |
scripts/mcps/fedora-distgit-mcp.py |
Migrates the Fedora dist-git server. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Christopher Co (christopherco)
force-pushed
the
chrco/mcp-2-update
branch
from
August 15, 2026 06:36
af62d80 to
30d986b
Compare
Copilot started reviewing on behalf of
Christopher Co (christopherco)
August 15, 2026 06:36
View session
Christopher Co (christopherco)
marked this pull request as ready for review
August 15, 2026 07:28
Christopher Co (christopherco)
force-pushed
the
chrco/mcp-2-update
branch
2 times, most recently
from
August 15, 2026 07:34
6458fb5 to
6971212
Compare
MCP 2 removes FastMCP and runs synchronous tool handlers concurrently in worker threads. The servers rely on serialized state and cache access. Update to MCPServer and use one shared lock context around each server's tool bodies to preserve MCP 1 ordering. Test concurrent requests for one uncached package and verify that it is cloned only once. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dd338a3f-cff6-4b03-8c00-fce99b2ac4a4
Christopher Co (christopherco)
force-pushed
the
chrco/mcp-2-update
branch
from
August 17, 2026 00:51
6971212 to
32bd82b
Compare
Copilot started reviewing on behalf of
Christopher Co (christopherco)
August 17, 2026 00:51
View session
Collaborator
Author
|
Switched from the previous decorator to context manager for the shared lock |
Collaborator
Author
|
/azp run |
|
Azure Pipelines: 2 pipeline(s) were filtered out due to trigger conditions. |
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.
MCP 2 removes FastMCP and dispatches synchronous tool handlers through
worker threads. The servers relied on serialized execution for mutable
state and the dist-git cache lifecycle.
Update the dependency to 2.0.0, use MCPServer, and serialize tool calls
with a shared lock per server to preserve MCP 1 ordering. Add a regression
test that sends concurrent MCP requests for the same uncached package and
verifies it is cloned only once.
Supersedes: #18415