Skip to content

Move dependencies parameter to fastmcp.json file #88

@joe-clickhouse

Description

@joe-clickhouse

This deprecated warning needs to be addressed.

mcp_clickhouse/mcp_server.py:70
  .../mcp_clickhouse/mcp_server.py:70: DeprecationWarning: The 'dependencies' parameter is deprecated as of FastMCP 2.11.4 and will be removed in a future version. Please specify dependencies in a fastmcp.json configuration file instead:
  {
    "entrypoint": "your_server.py",
    "environment": {
      "dependencies": ["clickhouse-connect", "python-dotenv", "pip-system-certs", "chdb"]
    }
  }
  See https://gofastmcp.com/docs/deployment/server-configuration for more information.
    mcp = FastMCP(

Should be pretty easy. Just need to:

  1. Remove the dependencies parameter from the FastMCP constructor
  2. Add a fastmcp.json file to the project root and re-add the removed dependencies according to: https://gofastmcp.com/integrations/mcp-json-configuration#dependencies

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions