Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.3 KB

File metadata and controls

67 lines (48 loc) · 1.3 KB

Developing

Setup

Requires uv - see the project README for installation instructions.

make setup

# <authentication is the same as in production>

Run using the MCP inspector

make mcp-inspector

In the inspector UI, add environment variables for DATAHUB_GMS_URL and DATAHUB_GMS_TOKEN, then click Connect.

Run using an MCP client

Use this configuration in your MCP client e.g. Claude Desktop, Cursor, etc.

{
  "mcpServers": {
    "datahub": {
      "command": "<full-path-to-uv>",  // e.g. /Users/hsheth/.local/bin/uv
      "args": [
        "--directory",
        "path/to/mcp-server-datahub",  // update this with an absolute path
        "run",
        "mcp-server-datahub"
      ],
      "env": {  // required if ~/.datahubenv does not exist
        "DATAHUB_GMS_URL": "<your-datahub-url>",
        "DATAHUB_GMS_TOKEN": "<your-datahub-token>"
      }
    }
  }
}

Run linting

# Check linting
make lint-check

# Fix linting
make lint

Run tests

The test suite is currently very simplistic, and requires a live DataHub instance.

make test

Publishing

We use setuptools-scm to manage the version number.

CI will automatically publish a new release to PyPI when a GitHub release is created.