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.6.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.6-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcp_test_kits-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 db8cbd8d209ddd648c1adb1ca9891a792b90cf96d894d3149ce45eb86e346bf8
MD5 2c63d99e5a37fd820195d5efac6828e2
BLAKE2b-256 1b814b764974bd285fed6b803f9ef36992abe7751b8fdd7dca10f66db8910330

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_kits-0.0.6.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.6-py3-none-any.whl.

File metadata

  • Download URL: mcp_test_kits-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ea544479835bdcf27d862c653b887ffb001b39944535e08e9553b79d9c3ffe96
MD5 9bb404a7865c5ae94f5b4a6dfb3a2782
BLAKE2b-256 9b4758da81a35e303d7c46fc3461178d07dd7ee5a2b1dcd63bdfcbb4e5400b47

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_test_kits-0.0.6-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