Skip to content

FastMCP API incompatibility with mcp>=1.8.1 #14

@afmp94

Description

@afmp94

Description

DroidMind fails to start with newer versions of the mcp library due to an API change in FastMCP.

Error

TypeError: FastMCP.__init__() got an unexpected keyword argument 'description'

Full traceback:

Traceback (most recent call last):
  File ".../bin/droidmind", line 6, in <module>
    from droidmind.server import main
  File ".../droidmind/server.py", line 28, in <module>
    from droidmind import (
  File ".../droidmind/prompts.py", line 8, in <module>
    from droidmind.context import mcp
  File ".../droidmind/context.py", line 11, in <module>
    mcp = FastMCP(
        "DroidMind",
        description="Control Android devices with MCP",
        dependencies=["rich>=13.9.4"],
    )
TypeError: FastMCP.__init__() got an unexpected keyword argument 'description'

Root Cause

In droidmind/context.py, the FastMCP constructor is called with description and dependencies keyword arguments:

mcp = FastMCP(
    "DroidMind",
    description="Control Android devices with MCP",
    dependencies=["rich>=13.9.4"],
)

However, newer versions of the mcp library have removed or renamed these parameters in the FastMCP class.

Environment

  • Python: 3.13
  • droidmind: 0.3.1
  • mcp: latest (installed via mcp[cli]>=1.8.1 dependency)
  • Installation method: uvx --from git+https://github.com/hyperb1iss/droidmind droidmind

Suggested Fix

Update droidmind/context.py to use the current FastMCP API. The description parameter may need to be passed differently or removed if no longer 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