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

Uploaded Python 3

File details

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

File metadata

  • Download URL: dev_booger-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 c7d1214acb4b3eac6c31c782ed9d2d233e7e5e3f9e2adb58e7663ba4b37cdb8b
MD5 ce13a697ebfe57a17bbf1abdea7182f1
BLAKE2b-256 9aa468a28555ab02e7982ef43087611f794259eb51683752015117059ffec91d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for dev_booger-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cd22a6fb92993e4f597df8f2df50c9cedb5b557fdf40adec8662ecdcefcf0df9
MD5 2eabd64a41a09390f653496f31ea5f54
BLAKE2b-256 f47b5fc7515f7589f67f1dd5ff087acb32622f376b0b7bbc3e0c7615a4e4a15b

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