
MCP Sidecar
io.github.lsequeiraaPublished by GitHub account lsequeiraav0.3.2Updated Oct 24, 2026
Cross-platform MCP server for managing long-lived background processes from any MCP client
Overview
A local MCP server that lets an AI assistant start, inspect, feed and stop long-lived background processes such as dev servers, watchers and test databases.
- What you can do
- Start background processes with a command, optional name, working directory and environment, and get back an ID and PID. List all managed processes and check one process's detailed state, exit code and uptime. Read buffered stdout and stderr, with tail and byte limits and truncation reporting. Write input to a running process's stdin. Stop a process gracefully and then forcibly, with a configurable kill timeout. Exited processes are auto-removed after a configurable TTL.
- When to use it
- Useful when an assistant needs a process to stay alive across several tool calls, for example starting an API server and then probing it, running a build in watch mode while editing, or starting a database, seeding it and running tests before tearing it down. Short-lived commands are better left to the agent's own shell.
- Requirements
- Runs as a local process over stdio, installed via npx or a prebuilt binary; the README says it is a single Go binary with no runtime dependencies. All configuration is optional environment variables: SIDECAR_MAX_PROCESSES, SIDECAR_BUFFER_SIZE, SIDECAR_KILL_TIMEOUT, SIDECAR_CLEANUP_AFTER, SIDECAR_MAX_OUTPUT_SIZE, SIDECAR_ALLOWED_EXECUTABLES, SIDECAR_BLOCKED_PATTERNS and SIDECAR_AUDIT_LOG. No authentication is declared.
Installation
In SourceWeft
- Open MCP Sidecar in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-sidecar
A lightweight, cross-platform MCP server for managing background processes. Built in Go for single-binary distribution with zero runtime dependencies.
Why?
AI coding agents (Claude Code, Gemini CLI, Cursor, etc.) lack the ability to run long-lived processes while continuing to interact with them. Common workflows affected:
- Start an API server, wait for it to be ready, then run HTTP requests against it
- Run a build in watch mode while editing code
- Start a database, seed it, run tests, tear it down
mcp-sidecar solves this by exposing process lifecycle management as MCP tools over stdio transport.
Features
- Cross-platform -- Windows, Linux, macOS from a single codebase
- Zero dependencies -- Single Go binary, no runtime required
- Minimal surface -- 6 tools, no unnecessary complexity
- Reliable cleanup -- All child processes are terminated when the server exits; exited processes are auto-removed after a configurable TTL
- Output control -- Per-request
maxBytesand globalSIDECAR_MAX_OUTPUT_SIZEto cap output returned to the LLM - Command security -- Optional executable allowlist, blocked patterns, and audit logging
Installation
Quick Setup (any agent)
The fastest way to install mcp-sidecar into any supported coding agent:
Supported agents: Claude Code, Codex, Cursor, VS Code, Gemini CLI, OpenCode, Zed, Goose, Cline, and more. See add-mcp for the full list.
Manual Configuration
Claude Code:
opencode (~/.config/opencode/opencode.json):
Generic (mcp.json):
From Source
Pre-built binaries are also available on GitHub Releases for windows/amd64, linux/amd64, darwin/arm64, and darwin/amd64.
Tools
The uptime field reflects actual runtime: for running processes it's the time since start; for exited processes it's the time the process was alive (not the time since start).
The output tool's maxBytes parameter caps the total bytes of stdout+stderr combined. When both tail and maxBytes are provided, tail selects lines first, then maxBytes caps the byte size of the result. When the output exceeds the limit, the most recent content is kept and stderr is prioritized. Truncation preserves line boundaries. When output is truncated, the response includes "truncated": true and "totalBytes" indicating the original size.
Process States
Example workflow
A typical session where an agent starts an API server, waits for it to be ready, tests it, and tears it down:
The agent uses its native shell for short-lived commands (curl, build tools, etc.) and mcp-sidecar for processes that need to stay alive across multiple tool calls.
Configuration
All configuration is via environment variables (all optional):
Auto-cleanup note: When SIDECAR_CLEANUP_AFTER is enabled (the default), exited processes are removed from the manager after the TTL expires. Once removed, calls to output, status, or stop for that process ID will return "not found". Retrieve any output you need within the TTL window (30 minutes by default).
Security
When SIDECAR_ALLOWED_EXECUTABLES is set, mcp-sidecar switches from shell mode to secure mode:
Metacharacters inside quotes are allowed -- grep "error|warning" file.txt works because the | is inside double quotes and won't be interpreted by a shell.
Backslash (\) is intentionally not treated as a metacharacter so Windows paths like C:\Users\me\app.exe work without escaping.
Configuration examples
Claude Desktop / Cursor (mcp.json):
Claude Code:
Audit log format
The audit log is always written to a file named sidecar-audit.jsonl inside the configured directory. The SIDECAR_AUDIT_LOG variable controls where:
Each line is a JSON object with one of three event types:
Executable matching
The allowlist supports three matching modes:
Distribution
License
MIT
Source: README.md at commit 10776ba
Tools
0Version history
1- v0.3.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts