Skip to content

chore: allow mcp 2.x - #119

Open
ichandann wants to merge 2 commits into
mainfrom
fix/allow-mcp-2
Open

ichandann wants to merge 2 commits into
mainfrom
fix/allow-mcp-2

Conversation

@ichandann

@ichandann ichandann commented Oct 1, 2026 •

Copy link
Copy Markdown

Why

setup.py caps mcp<2.0.0, pyperclip<1.9 and python-dotenv<1.1. datapilot imports only ClientSession, StdioServerParameters and mcp.client.stdio.stdio_client (src/datapilot/core/mcp_utils/mcp.py), and mcp 2.2.0 exports all three from the same paths. pyperclip and python-dotenv are used through pyperclip.copy and load_dotenv, which newer releases keep. The caps block altimate-backend from installing FastMCP 4, which needs mcp 2, pyperclip 1.9 and python-dotenv 1.1.

Change

  • mcp>=1.9.0,<2.0.0 becomes mcp>=1.9.0,<3.0.0
  • pyperclip~=1.8.2 becomes pyperclip>=1.8.2,<2.0
  • python-dotenv~=1.0.0 becomes python-dotenv>=1.0.0,<2.0

No code change.

Release

altimate-backend PR AltimateAI/altimate-backend#6946 depends on this through a git reference to this branch until a release carrying it is on PyPI; after that release it switches to the version.

datapilot imports only `ClientSession`, `StdioServerParameters` and
`stdio_client`, all of which mcp 2.x still exports from the same paths.
Capping at mcp<2 blocks dependents (altimate-backend) from installing
packages that need mcp 2.
@kilo-code-bot

kilo-code-bot Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • setup.py

Incremental review covered changes since e7f9d3c8889ebd28a0b2a1f28c7250551d8567b9 through b3976582cb80d16fe8a2e2092fcd485f13c2e536: the widened pyperclip and python-dotenv dependency ranges. Review was static and read-only; dependency resolution and runtime compatibility were not tested because code execution was prohibited.

Previous Review Summary (commit e7f9d3c)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit e7f9d3c)

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • setup.py

Review was static and read-only. MCP imports and client call sites were inspected; MCP 2.x runtime compatibility and dependency resolution were not tested because code execution was prohibited.


Reviewed by gpt-sol-latest · Input: 0 · Output: 0 · Cached: 0

Both are used through their stable APIs (`pyperclip.copy`, `load_dotenv`);
the tilde pins blocked dependents from installing packages that need
pyperclip 1.9 and python-dotenv 1.1.
@ichandann

Copy link
Copy Markdown
Author

altimate-backend has deferred the FastMCP 4 upgrade that needed this (AltimateAI/altimate-backend#6946 reverted it), so nothing depends on this PR right now. The relaxed caps are still correct for datapilot on their own; merging whenever convenient unblocks that upgrade later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant