Skip to content

fix(deps): cap mcp below 2 so uvx uns_mcp starts - #78

Open
vishalhabib99 wants to merge 3 commits into
Unstructured-IO:mainfrom
vishalhabib99:fix/cap-mcp-below-2
Open

vishalhabib99 wants to merge 3 commits into
Unstructured-IO:mainfrom
vishalhabib99:fix/cap-mcp-below-2

Conversation

@vishalhabib99

@vishalhabib99 vishalhabib99 commented Nov 4, 2026 •

Copy link
Copy Markdown

Problem

The README's Claude Desktop setup runs uvx uns_mcp. Both pyproject.toml and the published uns_mcp 0.1.8 on PyPI ask for mcp[cli]>=1.13.1 with no upper bound, and uvx doesn't read uv.lock, so a fresh run now gets mcp 2.3.0. uns_mcp/server.py line 14 does from mcp.server.fastmcp import Context, FastMCP. mcp 2.x removed that module, so the server fails on import:

ModuleNotFoundError: No module named 'mcp.server.fastmcp'

uv sync from a checkout isn't affected, because uv.lock pins mcp 1.26.0.

Change

  • mcp[cli]>=1.13.1,<2 in pyproject.toml, and the matching requires-dist line in uv.lock. No locked package changes.
  • Version 0.1.9 and a CHANGELOG entry, following fix(deps): bump certifi to 2026.10.19 #77. The uvx path only gets the fix from a new PyPI release, and release.yml publishes when the version changes, so merging this will publish 0.1.9. If you'd rather release separately, tell me and I'll drop the bump.

Moving to the 2.x API can be a separate change.

Checked

fresh resolve (uv pip compile, Python 3.12) mcp.server.fastmcp at that version
main mcp==2.3.0 absent from the v2.3.0 tag
this branch mcp==1.30.0 present in the v1.30.0 tag

uv lock --check passes on this branch. I also ran from mcp.server.fastmcp import FastMCP in clean environments: it works on mcp 1.30.0 and fails on 2.3.0 with ModuleNotFoundError. I did not run the server end to end.

View guided diff

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T17:31:07.065812Z f0f76db PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@vishalhabib99

Copy link
Copy Markdown
Author

Hi, just checking whether this one is on your radar. uvx uns_mcp from the README now gets mcp 2.3.0 and fails on import, because uvx doesn't read uv.lock. This caps mcp below 2 and prepares 0.1.9. Merging it auto-publishes that release. Happy to change anything.

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