Repository navigation
mcp-materialize / mcp-materialize-agents fail to start with mcp 2.x (and dependabot #40245 would break uv run) #40272
Replies: 2 comments 2 replies
|
I reproduced this in fresh Python 3.13 venvs. One update on "why it matters now": the agents half has already landed. #40246, the same Dependabot bump for Workarounds I ran until the cap is in: # pip
pip install mcp-materialize 'mcp<2'
# uvx (same args work in an MCP client config)
uvx --from mcp-materialize --with 'mcp<2' mcp-materialize
uvx --from mcp-materialize-agents --with 'mcp<2' mcp_materialize_agentsIn a checkout, cd misc/mcp-materialize-agents
uv add 'mcp>=1.10.1,<2' # relocks to mcp 1.30.0
uv run mcp_materialize_agentsSomething to fold into the same PR: the agents README says to run |
|
Thanks @dgesteves for reproducing this, and for the update on #40246. You are right: the agents lockfile on main now pins mcp 2.3.0, so @bobbyiliev, since you are working on the MCP servers: would a small PR be welcome? It would cap |
Uh oh!
There was an error while loading. Please reload this page.
Version:
mcp-materialize0.3.1 andmcp-materialize-agents0.3.2 (latest on PyPI), Python 3.13, macOS. This is the MCP servers inmisc/, not the database itself.What happens
Both packages declare
mcp>=1.10.1with no upper bound, so a fresh install now resolvesmcp2.3.0, and neither server starts:mcp-materializegets past the import, but once the connection pool is up,run()calls@server.list_tools()and that decorator no longer exists on the low-levelServerin mcp 2.x:With
--with 'mcp<2'(resolves 1.30.0), both start normally.Repro without a database
These are the same calls
mcp_materialize.run()makes:Why it matters now
uvx mcp-materializeandpip install mcp-materializealready break today, because they don't use the lockfile.misc/mcp-materialize/uv.lockfrom mcp 1.28.1 to 2.3.0. If it merges,uv run mcp-materialize, the command the README documents, breaks too.Suggested fix
The quickest fix is to cap both
pyproject.tomlfiles atmcp>=1.10.1,<2and close or ignore #40245. Porting to the 2.x API is the longer-term fix. I'm happy to open a PR for the cap if that's welcome.All reactions