Supervisord MCP

by aether-platform

Not rated
GitHub

About

A tool for managing Supervisord processes, integrated with AI agents via the Model Context Protocol (MCP). It offers standardized process control, real-time monitoring, and robust operations.

Details

Author
aether-platform
Categories
Developer Tools, Infrastructure

Setup

Install Supervisord MCP in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/aether-platform/supervisord-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Streamlined Supervisord process management with AI agent integration through the Model Context Protocol (MCP).

Supervisord MCP provides coding agents with direct access to Supervisord process management through the Model Context Protocol. By offering standardized process control capabilities, it eliminates the complexity of shell command parsing and reduces token consumption for AI agents working in production and development environments.

sequenceDiagram participant Agent as AI Coding Agent participant MCP as Supervisord MCP Server participant Supervisord as Supervisord Daemon participant Process as Application Process Agent->>MCP: Request: start_process("webapp") MCP->>Supervisord: Start process via XML-RPC Supervisord->>Process: Launch application Process-->>Supervisord: Process started (PID: 1234) Supervisord-->>MCP: Process status: RUNNING MCP-->>Agent: {"status": "ok", "message": "Process started"} Agent->>MCP: Request: get_logs("webapp", lines=50) MCP->>Supervisord: Fetch stdout/stderr logs Supervisord-->>MCP: Log entries MCP-->>Agent: {"status": "ok", "logs": ["Application started..."]}

Supervisord MCP enables AI coding agents to work more efficiently with production process management, contributing to better deployment reliability and operational efficiency.

Supervisord MCP provides direct process control through the Model Context Protocol, eliminating the overhead of shell commands and reducing token consumption for AI agents managing production and development environments.

- AI Integration: Built-in MCP protocol support for coding agents
- Production Ready: Based on battle-tested Supervisord process manager
- Real-time Monitoring: Process status and log access
- Robust Operations: Reliable process lifecycle management

# Start a process (requires it to be configured in supervisord.conf) uv run supervisord-mcp start webapp # Check what's running uv run supervisord-mcp list-processes # View logs uv run supervisord-mcp logs webapp # Get system information uv run supervisord-mcp info
# Start/stop/restart processes uv run supervisord-mcp start api uv run supervisord-mcp stop api uv run supervisord-mcp restart api # Get detailed status uv run supervisord-mcp status api
# List all processes with status uv run supervisord-mcp list-processes # View real-time logs uv run supervisord-mcp logs api --lines 100 uv run supervisord-mcp logs api --stderr # System information uv run supervisord-mcp info

Supervisord MCP includes built-in MCP protocol support, allowing AI agents to manage your processes:

# Start MCP server for AI integration uv run supervisord-mcp mcp

Configure in your AI agent using therecommended stdio transport:

{ "mcpServers": { "supervisord-mcp": { "command": "uv", "args": ["run", "supervisord-mcp", "mcp"], "cwd": "/path/to/your/project" } } }
{ "mcpServers": { "supervisord-mcp": { "command": "uv", "args": ["run", "supervisord-mcp", "mcp"], "cwd": "/app" } } }

Note: This tool is designed for production and development environments using MCP's stdio transport method as specified in theMCP documentation. This approach provides secure, direct communication between AI agents and the process manager.

# Configure in supervisord.conf: [program:webapp] command=gunicorn app:application directory=/app numprocs=4 autostart=true autorestart=true # Then manage via Supervisord MCP: uv run supervisord-mcp start webapp uv run supervisord-mcp logs webapp
# Configure multiple services in supervisord.conf: [program:frontend] command=npm run dev directory=/app/frontend autostart=false [program:backend] command=python manage.py runserver directory=/app/backend autostart=false # Manage the stack: uv run supervisord-mcp start frontend uv run supervisord-mcp start backend uv run supervisord-mcp list-processes
# Multiple services configured in supervisord.conf uv run supervisord-mcp start auth-service uv run supervisord-mcp start user-service uv run supervisord-mcp start notification-service

- Production Focus: Supervisord is designed for production environments
- Stability: Battle-tested process supervisor with years of production use
- Configuration: Uses standard supervisord.conf for process definitions

Supervisord's XML-RPC API has constraints for dynamic AI agent process management:

- add_processis not supported via API (requires manual config file edit +reload)
- stdout/stderr logs require separate API calls
- No CPU/memory resource metrics available via API
- Starting an already-running process throwsALREADY_STARTEDerror (not idempotent)

For use cases where AI agents need to dynamically add and monitor processes,Circus MCPoffers a more complete API. Supervisord MCP is best suited for integrating with existing Supervisord environments.

- Cross-platform: Works on any system with Python
- User-friendly: Simple commands and AI integration
- Flexible: Easy configuration and process management

- Python-native: Perfect for Python applications
- AI integration: MCP protocol support out of the box
- Production proven: Based on widely-used Supervisord

# Standard operations uv run supervisord-mcp start webapp uv run supervisord-mcp stop webapp uv run supervisord-mcp restart webapp # Get detailed status uv run supervisord-mcp status webapp
# View logs with options uv run supervisord-mcp logs webapp --lines 100 uv run supervisord-mcp logs webapp --stderr # Real-time log monitoring (use supervisorctl tail in another terminal)
# Reload configuration after changes uv run supervisord-mcp reload

- Python 3.10 or higher
- Supervisord installed and running
- Any operating system (Linux, macOS, Windows)

# From PyPI (recommended) uv add supervisord-mcp # With pip (alternative) pip install supervisord-mcp # From source git clone https://github.com/aether-platform/supervisord-mcp.git cd supervisord-mcp uv sync

- Create main configuration file/etc/supervisor/supervisord.conf:

[unix_http_server] file=/tmp/supervisor.sock [supervisord] logfile=/tmp/supervisord.log logfile_maxbytes=50MB logfile_backups=10 loglevel=info pidfile=/tmp/supervisord.pid nodaemon=false minfds=1024 minprocs=200 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface [supervisorctl] serverurl=unix:///tmp/supervisor.sock [inet_http_server] port=127.0.0.1:9001 [include] files = /etc/supervisor/conf.d/.conf

Important: Supervisord MCP requires the[inet_http_server]configuration block to be enabled with HTTP access. The tool connects to Supervisord via HTTP XML-RPC protocol and does not support Unix domain socket connections.

supervisord -c /etc/supervisor/supervisord.conf
uv run supervisord-mcp --help uv run supervisord-mcp info

Supervisord MCP works with standard Supervisord configuration. Add your programs to/etc/supervisor/conf.d/:

[program:webapp] command=gunicorn app:application --bind 0.0.0.0:8000 directory=/app numprocs=1 autostart=true autorestart=true startsecs=10 startretries=3 user=www-data redirect_stderr=true stdout_logfile=/var/log/webapp.log
# Use custom Supervisord server uv run supervisord-mcp --server-url http://localhost:9001/RPC2 list-processes

The following tools are available for AI agents:

- add_process: Add a new process (requires config reload)
- start_process: Start a process
- stop_process: Stop a process
- restart_process: Restart a process
- list_processes: List all processes
- get_process_status: Get detailed process status
- get_logs: Retrieve process logs (stdout/stderr)
- get_system_info: Get Supervisord system information
- reload_config: Reload Supervisord configuration

- Supervisord Documentation- Official Supervisord documentation
-
MCP Documentation- Model Context Protocol specification

- GitHub Issues:Report bugs or request features
- Discussions:
Join the community

# Process Management uv run supervisord-mcp start <name> uv run supervisord-mcp stop <name> uv run supervisord-mcp restart <name> uv run supervisord-mcp status <name> # Monitoring uv run supervisord-mcp list-processes uv run supervisord-mcp logs <name> [--lines N] [--stderr] uv run supervisord-mcp info # Configuration uv run supervisord-mcp reload # AI Integration uv run supervisord-mcp mcp

Reduce tokens, agents work faster.Every token an AI agent spends on process monitoring is a token not spent on solving the actual problem. Research shows that iterative debugging stages consume up to 59.4% of total tokens in agentic workflows (Tokenomics, 2026). By providing structured, concise responses through MCP, we cut the largest cost driver in AI-assisted debugging: unnecessary round trips and unstructured output parsing.

Tool Schema Overhead (Context Residency Cost)

When MCP tools are registered, their schema definitions persist in the conversation context throughout the session.

MCP vs Raw Linux Commands — "Quit Quickly" Investigation

Cost comparison when debugging a process that dies immediately after startup.

supervisorctl status # Step 1: Check all processes supervisorctl status webapp # Step 2: Check target → FATAL supervisorctl tail webapp stderr # Step 3: stderr logs (unbounded output risk) cat /var/log/supervisor/webapp-stderr.log | tail -50 # Step 4: Read log file directly supervisorctl start webapp # Step 5: Attempt restart sleep 2 && supervisorctl status webapp # Step 6: Check after restart supervisorctl tail webapp stderr | tail -20 # Step 7: Check logs again ps aux | grep webapp # Step 8: Verify process existence journalctl -u supervisor --no-pager -n 30 # Step 9: systemd logs cat /etc/supervisor/conf.d/webapp.conf # Step 10: Check configuration lsof -i :8080 # Step 11: Check port conflicts free -m # Step 12: Check resource exhaustion

- Each Bash invocation has~60-90 tokens of fixed overhead
- supervisorctl tailhas no line limit —token explosion risk
- Unstructured text output leads to LLMparsing errors
- Reasoning tokensare consumed between each step (~150-250 tokens/step)
- "Quit Quickly" scenarios typically require2-3 loopsof this sequence

list_processes # Spot FATAL immediately get_process_status("webapp") # Detailed status get_logs("webapp", lines=20, stderr=true) # Error logs (bounded to 20 lines) restart_process("webapp") # Restart get_process_status("webapp") # Verify after restart

Cumulative cost when repeated investigation is needed (common with "Quit Quickly" issues):

Raw command costs grow exponentially with retries (exploratory commands pile up), while MCP costs scale linearly.

Break-even point: Accounting for schema residency cost (~1,100 tokens), MCP becomes cost-equivalent at3-4 tool callsand cheaper beyond that.

Research underpinning this token cost analysis:

- Tokenomics: Quantifying Where Tokens Are Used in Agentic SE— First empirical analysis of token consumption in agentic workflows. Iterative stages consume 59.4% of tokens
-
Help or Hurdle? Rethinking MCP-Augmented LLMs— MCPGAUGE: first MCP evaluation framework with 4 dimensions including overhead
-
MCP Tool Descriptions Are Smelly!— Large-scale study of 856 tools / 103 MCP servers. Tool description quality directly impacts agent efficiency
-
MCPAgentBench— 841 tasks, 20,000+ MCP tools benchmark. Defines Token Efficiency (TEFS) as evaluation metric
-
AgentDiet: Trajectory Reduction— Reduces input tokens by 39.9-59.7%
-
Token-Budget-Aware LLM Reasoning— 67% output token reduction, 59% cost reduction
-
Token Efficiency with Structured Output— Function calling is the most token-efficient output format (Microsoft)

AetherPlatform- Building the future of cloud-native development tools

- GitHub:@aether-platform
- Project Website:
AetherPlatform
- Contact:
aether-platform@re-x.info

We develop tools that enhance developer productivity through AI integration and modern cloud-native technologies. Supervisord MCP is part of our broader ecosystem of development tools designed to streamline the software development lifecycle.

- AetherSaaS: SaaS platform management console
- AetherCoding: AI-enhanced development environments
- AetherOperation: Operations and terminal management tools
- Circus MCP: Alternative process management with Circus

We extend our heartfelt gratitude to theSupervisorddevelopment team for creating such a robust and reliable process management foundation. Their excellent work made this project possible. Supervisord MCP builds upon their solid architecture to bring modern AI agent integration to process management.

- Supervisord- The underlying process manager
-
Model Context Protocol- AI agent communication standard
-
AetherPlatform- Cloud-native development tools
-
Circus MCP- Alternative process management solution

Supervisord MCP: Production-ready process management, AI-powered automation.*

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Enable AI Agents to fix build failures from CircleCI.

Access and interact with Harness platform data, including pipelines, repositories, logs, and artifact registries.

Scout's official MCP pipes error, trace and metric data from production to your AI agent

Stateful health monitoring, diagnostics, and web attestation for AI agents. 11 MCP tools. Free Founder's Beta

MCP server for Celery Flower — monitor workers, manage tasks and queues from any AI assistant

Breaking Change Alerts for Humans and AI Agents.

Paid remote MCP for CLI tool MCP, structured receipts, usage logs, and audit-ready evidence for agent and CI workflows.

Remote MCP server that gives your AI agent a dead-man's-switch: it calls create_heartbeat, pings on schedule, and emails you the instant an agent or cron loop stops checking in.

A secure MCP server for eBPF, designed for AI integration, kernel introspection, and automation.

MCP server for the Enoch control plane: dispatch gates, evidence sync, provenance, and quality gates for long-running autonomous AI work.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.