原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Sidecar

作者:lsequeiraa版本 0.3.2i★ –i在你的电脑上运行
注册名称io.github.lsequeiraa/mcp-sidecar

安装

概览

作者提供的说明(英文原文)

Cross-platform MCP server for managing long-lived background processes from any MCP client

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SIDECAR_MAX_PROCESSES, SIDECAR_BUFFER_SIZE, SIDECAR_KILL_TIMEOUT, SIDECAR_CLEANUP_AFTER, SIDECAR_MAX_OUTPUT_SIZE, SIDECAR_ALLOWED_EXECUTABLES, SIDECAR_BLOCKED_PATTERNS, SIDECAR_AUDIT_LOG

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "sidecar": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-sidecar"
      ],
      "env": {
        "SIDECAR_MAX_PROCESSES": "your-value",
        "SIDECAR_BUFFER_SIZE": "your-value",
        "SIDECAR_KILL_TIMEOUT": "your-value",
        "SIDECAR_CLEANUP_AFTER": "your-value",
        "SIDECAR_MAX_OUTPUT_SIZE": "your-value",
        "SIDECAR_ALLOWED_EXECUTABLES": "your-value",
        "SIDECAR_BLOCKED_PATTERNS": "your-value",
        "SIDECAR_AUDIT_LOG": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add sidecar --env SIDECAR_MAX_PROCESSES=your-value --env SIDECAR_BUFFER_SIZE=your-value --env SIDECAR_KILL_TIMEOUT=your-value --env SIDECAR_CLEANUP_AFTER=your-value --env SIDECAR_MAX_OUTPUT_SIZE=your-value --env SIDECAR_ALLOWED_EXECUTABLES=your-value --env SIDECAR_BLOCKED_PATTERNS=your-value --env SIDECAR_AUDIT_LOG=your-value -- npx -y mcp-sidecar

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "sidecar": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-sidecar"
      ],
      "env": {
        "SIDECAR_MAX_PROCESSES": "your-value",
        "SIDECAR_BUFFER_SIZE": "your-value",
        "SIDECAR_KILL_TIMEOUT": "your-value",
        "SIDECAR_CLEANUP_AFTER": "your-value",
        "SIDECAR_MAX_OUTPUT_SIZE": "your-value",
        "SIDECAR_ALLOWED_EXECUTABLES": "your-value",
        "SIDECAR_BLOCKED_PATTERNS": "your-value",
        "SIDECAR_AUDIT_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "sidecar": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-sidecar"
      ],
      "env": {
        "SIDECAR_MAX_PROCESSES": "your-value",
        "SIDECAR_BUFFER_SIZE": "your-value",
        "SIDECAR_KILL_TIMEOUT": "your-value",
        "SIDECAR_CLEANUP_AFTER": "your-value",
        "SIDECAR_MAX_OUTPUT_SIZE": "your-value",
        "SIDECAR_ALLOWED_EXECUTABLES": "your-value",
        "SIDECAR_BLOCKED_PATTERNS": "your-value",
        "SIDECAR_AUDIT_LOG": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SIDECAR_MAX_PROCESSES env
    Maximum number of concurrent managed processes (default: 10)
  • SIDECAR_BUFFER_SIZE env
    Output buffer size per stream in bytes (default: 1048576)
  • SIDECAR_KILL_TIMEOUT env
    Milliseconds to wait between graceful and forced termination (default: 5000)
  • SIDECAR_CLEANUP_AFTER env
    Seconds before exited processes are auto-removed. 0 disables cleanup (default: 1800)
  • SIDECAR_MAX_OUTPUT_SIZE env
    Global cap on bytes returned by the output tool. 0 means unlimited (default: 0)
  • SIDECAR_ALLOWED_EXECUTABLES env
    Comma-separated allowlist of executable names. When set, enables security mode with direct exec (no shell). Unset means security disabled.
  • SIDECAR_BLOCKED_PATTERNS env
    Comma-separated regex patterns to reject in commands. Only applies when security is enabled.
  • SIDECAR_AUDIT_LOG env
    Audit log destination. 'true' writes to cwd, 'temp' writes to OS temp dir, or a directory path. Unset disables audit logging.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 lsequeiraa 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32568 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32568 个服务器的 11% 更新
  • 基础检查结果等于或优于此分类中其他 32568 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Sidecar 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.3.2)于5个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, FlyDocs

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

FlyDocs

作者:flydocs.ai

Spec-driven development workflow: your agent works issues, sessions and the status lifecycle.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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 maxBytes and global SIDECAR_MAX_OUTPUT_SIZE to 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:

# Interactive -- detects installed agents and lets you pick

npx add-mcp mcp-sidecar

Install to a specific agent

npx add-mcp mcp-sidecar -a claude-code npx add-mcp mcp-sidecar -a cursor npx add-mcp mcp-sidecar -a vscode

Install to all detected agents

npx add-mcp mcp-sidecar --all

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:

claude mcp add sidecar -- npx -y mcp-sidecar

opencode (~/.config/opencode/opencode.json):

{

"mcp": { "sidecar": { "type": "local", "command": ["npx", "-y", "mcp-sidecar"], "enabled": true } } }

Generic (mcp.json):

{

"mcpServers": { "sidecar": { "command": "npx", "args": ["-y", "mcp-sidecar"] } } }

From Source
go install github.com/lsequeiraa/mcp-sidecar@latest

Pre-built binaries are also available on GitHub Releases for windows/amd64, linux/amd64, darwin/arm64, and darwin/amd64.

Tools

ToolDescriptionParametersReturns
startSpawn a background processcommand, name?, cwd?, env?{ id, name, pid }
stopTerminate a process (graceful, then force)id{ id, exitCode, uptime }
listList all managed processes--[{ id, name, pid, state, uptime }]
outputGet buffered stdout/stderrid, tail?, maxBytes?{ stdout, stderr, uptime }
sendWrite to a process's stdinid, input{ ok }
statusGet detailed state of one processid{ id, name, pid, state, exitCode, uptime, outputSize }

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
StateMeaning
runningProcess is alive
exitedProcess terminated normally
failedProcess terminated with non-zero exit code
killedProcess was stopped via the stop tool
Example workflow

A typical session where an agent starts an API server, waits for it to be ready, tests it, and tears it down:

1. start  { command: "dotnet run --project MyApi", name: "api" }

→ { id: "sc-a1b2c3", name: "api", pid: 12345 }

  1. output { id: "sc-a1b2c3", tail: 5 } → { stdout: "Now listening on: http://localhost:5000", stderr: "", uptime: "3s" }
  1. (agent runs curl http://localhost:5000/health using its own shell)
  1. output { id: "sc-a1b2c3", tail: 20 } → { stdout: "...request logs...", stderr: "", uptime: "15s" }
  1. stop { id: "sc-a1b2c3" } → { id: "sc-a1b2c3", exitCode: -1, uptime: "18s" }

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):

VariableDefaultDescription
SIDECAR_MAX_PROCESSES10Maximum concurrent processes
SIDECAR_BUFFER_SIZE1048576 (1MB)Output buffer size per process in bytes
SIDECAR_KILL_TIMEOUT5000Milliseconds to wait between SIGTERM and SIGKILL
SIDECAR_CLEANUP_AFTER1800 (30 min)Seconds before exited processes are auto-removed. 0 = disabled
SIDECAR_MAX_OUTPUT_SIZE0 (unlimited)Global cap on bytes returned by the output tool. 0 = no limit
SIDECAR_ALLOWED_EXECUTABLES--Comma-separated allowlist of executables (enables secure mode)
SIDECAR_BLOCKED_PATTERNS--Comma-separated regex patterns to reject commands
SIDECAR_AUDIT_LOG--Audit log directory, or true (cwd) / temp (OS temp dir)

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:

Shell mode (default)Secure mode
ExecutionVia sh -c / cmd /CDirect exec (no shell)
AllowlistNoneOnly listed executables can run
MetacharactersAllowed (shell interprets them)Rejected (`\, &, ;, >, <, $, , (, ))
Blocked patternsNoneRegex patterns matched against full command
Audit loggingNoneOptional JSONL log of all start/stop/blocked events

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):

{

"mcpServers": { "sidecar": { "command": "npx", "args": ["-y", "mcp-sidecar"], "env": { "SIDECAR_ALLOWED_EXECUTABLES": "dotnet,npm,node,git,python", "SIDECAR_BLOCKED_PATTERNS": "rm\\s+-rf,--force,--no-verify", "SIDECAR_AUDIT_LOG": "./logs" } } } }

Claude Code:

claude mcp add sidecar \

-e SIDECAR_ALLOWED_EXECUTABLES=dotnet,npm,node,git,python \ -e SIDECAR_BLOCKED_PATTERNS="rm\\s+-rf,--force,--no-verify" \ -e SIDECAR_AUDIT_LOG=true \ -- npx -y mcp-sidecar

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:

ValueLog file location
true./sidecar-audit.jsonl (current working directory)
temp /sidecar-audit.jsonl
./logs./logs/sidecar-audit.jsonl (directory auto-created)

Each line is a JSON object with one of three event types:

{"ts":"2025-03-12T10:00:00Z","event":"start","id":"abc123","command":"dotnet run","cwd":"/app"}

{"ts":"2025-03-12T10:00:05Z","event":"stop","id":"abc123","exit_code":0,"duration":"5s"} {"ts":"2025-03-12T10:00:06Z","event":"blocked","command":"rm -rf /","reason":"executable \"rm\" is not in allowed list"}

Executable matching

The allowlist supports three matching modes:

Allowlist entryMatches
dotnetdotnet anywhere (basename match)
./build.shOnly ./build.sh (exact match)
/usr/bin/python3Only /usr/bin/python3, or any python3 resolved via PATH

Distribution

ChannelUsage
npmnpx -y mcp-sidecar (platform binary via @mcp-sidecar/* optional packages)
GitHub ReleasesPre-built binaries attached to each release
MCP Registryio.github.lsequeiraa/mcp-sidecar

License

MIT

问 PopNx