Skip to content

Server fails to start with mcp 2.0.0: 'Server' object has no attribute 'list_tools' #92

Description

@franckbrl

mcp 2.0.0 was released on 2026-07-28 and removed the list_tools() decorator from the low-level Server API. Since pyproject.toml declares mcp>=1.27 with no upper bound, fresh installs resolve to 2.0.0 and the server crashes on import, before serving any request.

File "mcp_logseq/server.py", line 157, in build_app
    @server.list_tools()
     ^^^^^^^^^^^^^^^^^
AttributeError: 'Server' object has no attribute 'list_tools'
Client side this surfaces as MCP error -32000: Connection closed.

Versions: mcp-logseq 1.8.0, mcp 2.0.0, Python 3.13, macOS.

Workaround: uv run --with "mcp-logseq[vector]" --with "mcp<2" mcp-logseq

Suggested fix: cap the dependency at mcp>=1.27,<2 until the 2.x API is supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions