Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

debug-mcp-server-launcher

A Python launcher for the debug-mcp-server, providing step-through debugging capabilities for LLM agents.

Overview

This launcher simplifies running the debug-mcp-server by:

  • Auto-detecting available runtimes (Node.js/npm or Docker)
  • Automatically launching the server with the appropriate runtime
  • Handling process lifecycle and graceful shutdowns
  • Providing clear error messages and installation guidance

Installation

pip install debug-mcp-server-launcher

This will install the launcher and ensure debugpy (required for Python debugging) is available.

Usage

Basic Usage

The launcher takes a single positional mode argument: stdio (the default) or http (Streamable HTTP, recommended for remote use).

# Launch in stdio mode (default, recommended)
debug-mcp-server

# Launch in Streamable HTTP mode
debug-mcp-server http

# HTTP mode with custom port
debug-mcp-server http --port 8080

--port affects http; stdio ignores it (default port: 3001).

Any flag the launcher does not recognise is passed to the server as given, as long as it comes after the mode:

# Accept the Host header a containerised client sends (server flag, forwarded)
debug-mcp-server http --allowed-host mcp-debugger

# Docker mode reachable from other machines: publish on every interface AND
# tell the server which Host to accept
debug-mcp-server http --docker --bind 0.0.0.0 --allowed-host myhost

--bind ADDR chooses the address the server is reachable on — with npx it is forwarded as the server's own --bind (default 127.0.0.1, debugmcp/mcp-debugger#680); with Docker it is the host address the port is published on; the default is 127.0.0.1, so a launched container is only reachable from the machine that launched it unless you say otherwise. MCP_HTTP_ALLOWED_HOSTS, when set in the launcher's environment, is forwarded into the container.

Runtime Selection

The launcher automatically detects and uses the best available runtime:

  1. npm/npx (preferred) - if Node.js is installed
  2. Docker (fallback) - if Docker is installed and running

You can force a specific runtime:

# Force Docker mode
debug-mcp-server --docker

# Force npm mode  
debug-mcp-server --npm

Other Options

# Show what command would be executed
debug-mcp-server --dry-run

# Enable verbose output
debug-mcp-server --verbose

# Show version
debug-mcp-server --version

# Show help
debug-mcp-server --help

Requirements

For npm/npx mode:

  • Node.js 22+ installed
  • The launcher will automatically download the server package via npx

For Docker mode:

  • Docker installed and running
  • The launcher will automatically pull the image if needed
  • For stdio the launcher runs docker run -i --rm -v <cwd>:/workspace debugmcp/mcp-debugger:latest stdio; for http it also inserts -p 127.0.0.1:<port>:<port> (or <bind>:<port>:<port> with --bind) before the image, forwards MCP_HTTP_ALLOWED_HOSTS with -e when it is set, and appends --port <port> after the mode (the port defaults to 3001). Any unrecognised flags follow after that. The current working directory is mounted at /workspace, so files under it are debuggable inside the container - launch the tool from your project root.

For Python debugging:

  • debugpy is automatically installed with this package

Transport Modes

  • stdio: Standard input/output communication (default)
  • http: Streamable HTTP transport (recommended for remote/HTTP-based use)
    • Default port: 3001; custom port via --port
    • The server only accepts loopback Host headers unless told otherwise; pass --allowed-host <name> (forwarded to the server) or export MCP_HTTP_ALLOWED_HOSTS

Troubleshooting

If you encounter issues:

  1. "No suitable runtime found"

  2. "Docker daemon is not running"

    • Start Docker Desktop
    • Or use npm mode: debug-mcp-server --npm
  3. "npx command not found"

    • Ensure Node.js is properly installed
    • npx typically comes with npm (Node.js package manager)

Development

This is a launcher package for the main debug-mcp-server project. For server development and contributions, see: https://github.com/debugmcp/mcp-debugger

License

MIT

Metadata

Release files for debug-mcp-server-launcher 0.27.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for debug-mcp-server-launcher 0.27.0b1
File Size Uploaded Provenance Actions
debug_mcp_server_launcher-0.27.0b1.tar.gz 15.2 kB With provenance Details for debug_mcp_server_launcher-0.27.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for debug-mcp-server-launcher 0.27.0b1
File Interpreter ABI Platform Actions
debug_mcp_server_launcher-0.27.0b1-py3-none-any.whl Python 3 none any Details for debug_mcp_server_launcher-0.27.0b1-py3-none-any.whl

Total release size: 28.8 kB

Release files / debug_mcp_server_launcher-0.27.0b1.tar.gz

Download URL debug_mcp_server_launcher-0.27.0b1.tar.gz
Size 15.2 kB
Tags Source
SHA-256 checksum
How to use checksums
17c866d10c43210a423bb95c34dafc22da78b4ec87c13fff37c159d234978af6
BLAKE2b-256 checksum
How to use checksums
efcd88d53deec8cc53d563400d751fa8250ad15ff4d4578877e755a04b3cd9f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Release files / debug_mcp_server_launcher-0.27.0b1-py3-none-any.whl

Download URL debug_mcp_server_launcher-0.27.0b1-py3-none-any.whl
Size 13.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b618cc7ce58bdb63d302a6d725d706e22b9bfccefa458aa0187c38c426ee4243
BLAKE2b-256 checksum
How to use checksums
d050ceb5f74de3c51ab85e8932f9dff91cdbb9e73505618d823d6388d2f4539f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

Security for debug-mcp-server-launcher 0.27.0b1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for debug_mcp_server_launcher-0.27.0b1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 27, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page