Skip to main content

A comprehensive MCP testing server for debugging and testing MCP clients

Project description

MCP Test Kits - Python

Build from source using FastMCP.

Build

cd python
uv sync

stdio

{
  "mcpServers": {
    "mcp-test-kits": {
      "command": "uv",
      "args": ["run", "mcp-test-kits"],
      "cwd": "/path/to/mcp-test-kits/python",
      "transport": "stdio"
    }
  }
}

HTTP

Start server:

uv run mcp-test-kits --transport http --port 3000

MCP client config:

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/mcp",
      "transport": "http"
    }
  }
}

With OAuth

Start server:

uv run mcp-test-kits --transport http --port 3000 --enable-oauth
# or auto-approve for testing
uv run mcp-test-kits --transport http --port 3000 --enable-oauth --oauth-auto-approve

MCP client config (OAuth discovery automatic):

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/mcp",
      "transport": "http"
    }
  }
}

Or with pre-obtained token:

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/mcp",
      "transport": "http",
      "headers": {
        "Authorization": "Bearer YOUR_ACCESS_TOKEN"
      }
    }
  }
}

SSE

Start server:

uv run mcp-test-kits --transport sse --port 3000

MCP client config:

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/sse",
      "transport": "sse"
    }
  }
}

With OAuth

Start server:

uv run mcp-test-kits --transport sse --port 3000 --enable-oauth
# or auto-approve for testing
uv run mcp-test-kits --transport sse --port 3000 --enable-oauth --oauth-auto-approve

MCP client config (OAuth discovery automatic):

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/sse",
      "transport": "sse"
    }
  }
}

Or with pre-obtained token:

{
  "mcpServers": {
    "mcp-test-kits": {
      "url": "http://localhost:3000/sse",
      "transport": "sse",
      "headers": {
        "Authorization": "Bearer YOUR_ACCESS_TOKEN"
      }
    }
  }
}

Test with MCP Inspector

# stdio
npx @modelcontextprotocol/inspector uv run mcp-test-kits

# HTTP (start server first: uv run mcp-test-kits --transport http --port 3000)
npx @modelcontextprotocol/inspector --transport http --server-url http://localhost:3000/mcp

# SSE (start server first: uv run mcp-test-kits --transport sse --port 3000)
npx @modelcontextprotocol/inspector --transport sse --server-url http://localhost:3000/sse

Development

uv sync --all-extras
uv run pytest
uv run mypy src --check-untyped-defs
uv run ruff check src

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_test_kits-0.0.5.tar.gz (81.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_test_kits-0.0.5-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_test_kits-0.0.5.tar.gz.

File metadata

  • Download URL: mcp_test_kits-0.0.5.tar.gz
  • Upload date:
  • Size: 81.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_test_kits-0.0.5.tar.gz
Algorithm Hash digest
SHA256 f8aaf0c9d9b5844c8ef66bcc127a3a9f29201fa818f2146999cbc286716b2c73
MD5 bb15d7049f0689c09930a41c17ae9864
BLAKE2b-256 18a60cecc3c13c22bedb7bd477c9d7b04d52aed8142610b52678a55c34e9bd76

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_kits-0.0.5.tar.gz:

Publisher: publish-python.yml on midodimori/mcp-test-kits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_test_kits-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: mcp_test_kits-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_test_kits-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9730d2f21204b7e4015da799a145fe5f54e943c2bdb262f7ece7d15627f2fb
MD5 398fc7551b89ead71dc55d2b3f344e1b
BLAKE2b-256 c23acac54e8f727f54d4b2b2fbce90eb2d4bc95cd317e1bed40c2e31f2b5a11c

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_kits-0.0.5-py3-none-any.whl:

Publisher: publish-python.yml on midodimori/mcp-test-kits

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page