Skip to main content

Multi-port log aggregator with MCP integration for Claude Code

Project description

dev-booger

Multi-port log aggregator with MCP integration for Claude Code.

Run multiple dev servers and aggregate their logs in one terminal with color-coded output.

Installation

pip install dev-booger
# or
uv add dev-booger
# or (recommended for CLI tools)
pipx install dev-booger

Usage

Basic Usage

# Auto-discover and run servers on specified ports
booger 3000 8000 8501

# With explicit commands
booger -c "3000=npm run dev" -c "8000=uvicorn app:main --port 8000"

MCP Mode (for Claude Code)

# Run as MCP server
booger --mcp

Add to ~/.claude.json:

{
  "mcpServers": {
    "booger": {
      "type": "stdio",
      "command": "booger",
      "args": ["--mcp"]
    }
  }
}

Then use MCP tools in Claude Code:

  • get_logs(port=3000) - fetch logs from a port
  • search_logs("error") - search all logs
  • clear_logs() - clear log buffer

Auto-Discovery

Booger automatically discovers what commands to run by checking:

  1. booger.json - explicit port→command mapping
  2. docker-compose.yml - service port mappings
  3. Dockerfile - EXPOSE directives
  4. .env files - PORT variables
  5. package.json - npm scripts with port patterns
  6. pyproject.toml - Python framework detection
  7. Procfile - Heroku-style process definitions
  8. Makefile - dev/run targets

Framework Defaults

Framework Default Port
Next.js 3000
Vite 5173
FastAPI 8000
Flask 5000
Streamlit 8501

Configuration

Create a booger.json in your project:

{
  "ports": {
    "3000": "npm run dev",
    "8000": "uvicorn app:main --port 8000 --reload",
    "8501": "streamlit run app.py"
  }
}

Output

Booger - Multi-port log aggregator

  [3000] npm run dev (from: package.json, next)
  [8000] uvicorn app:main --port 8000 (from: booger.json)

Started port 3000
Started port 8000
Press Ctrl+C to stop all processes

[3000] - ready started server on 0.0.0.0:3000
[8000] INFO:     Application startup complete.
[8000] INFO:     127.0.0.1 - "GET /health" 200
[3000] - compiled successfully

License

MIT

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

dev_booger-0.2.0.tar.gz (90.2 kB view details)

Uploaded Source

Built Distribution

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

dev_booger-0.2.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file dev_booger-0.2.0.tar.gz.

File metadata

  • Download URL: dev_booger-0.2.0.tar.gz
  • Upload date:
  • Size: 90.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for dev_booger-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d09e206aacb3b86b336e0286893bca3d67f37ee8c06af47ffb23be21ed75f4dd
MD5 c5360c684b11c27629abfae06b8b9a68
BLAKE2b-256 3f1e090a947e8f2177acd7268261a46e75abb8915e3e87bdb980c9b4a021b9ca

See more details on using hashes here.

File details

Details for the file dev_booger-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: dev_booger-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for dev_booger-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24a4192bafd19f793b2335c360bb3aff3fa3573c1e1cdf813cbba18f3654f75f
MD5 59be046e364bea587f5b86743ae4dd40
BLAKE2b-256 5e0a1b95c1c2a2b0defcf970683fe36281f1fbf4f3762abff0c363dce5e9151d

See more details on using hashes here.

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