npm whats-running-mcpstdioMITupdated 1mo ago
Ground truth for agent fleets. An MCP server that tells your AI agent what is actually running on the machine β live agent sessions, listening TCP ports, loaded daemons, system load β read straight from the OS (ps / lsof / launchctl / df), never from docs, transcripts, or memory files.
What can you do with What's Running?
whats-running-mcp
Ground truth for agent fleets. An MCP server that tells your AI agent what is actually running on the machine β live agent sessions, listening TCP ports, loaded daemons, system load β read straight from the OS (ps / lsof / launchctl / df), never from docs, transcripts, or memory files.
Why
If you run more than one coding-agent session (Claude Code, Codex, Aiderβ¦), you've seen this failure mode: an agent "health-checks" a server that died weeks ago, or confidently reports a daemon as live because an old transcript said so. Model memory is a cache with no invalidation. The OS is the source of truth.
This server started as a shell script (whats-running) I wrote after my own fleet of Claude Code sessions kept reporting stale state as live. Wrapping it in MCP means every session grounds itself the same way, automatically.
Tools
| Tool | What it answers |
|---|---|
whats_running |
Full snapshot in one call β use at session start |
agent_sessions |
Which agent processes are live? Terminal-attached vs detached/orphan, with pid, uptime, and working directory |
listening_ports |
Is service X actually up? Every TCP LISTEN socket with owning process |
daemons |
What persistent services are loaded? launchctl (macOS, non-Apple) or systemd user services (Linux), with optional label filter |
system_stats |
Load average, uptime, root-disk free space |
Install
Claude Desktop (one-click, no terminal): download the latest whats-running-mcp-<version>.dxt from Releases and open it with Claude Desktop (double-click, or Settings β Extensions β Install Extensionβ¦). The server and its dependencies ship inside the bundle β no npm, no Node install.
Register with Claude Code (available in every session):
claude mcp add --scope user whats-running -- npx -y whats-running-mcp
Or in any MCP client config:
{
"mcpServers": {
"whats-running": {
"command": "npx",
"args": ["-y", "whats-running-mcp"]
}
}
}
git clone https://github.com/stcmain/whats-running-mcp.git
cd whats-running-mcp
npm install && npm run build
# then point your client at node /path/to/whats-running-mcp/dist/index.js
Published as whats-running-mcp on npm and as
io.github.stcmain/whats-running-mcp in the MCP Registry.
Configuration
| Env var | Default | Purpose |
|---|---|---|
WR_AGENT_PATTERNS |
claude,codex,aider,cursor-agent,copilot,goose |
Comma-separated substrings that mark a process as an "agent" in agent_sessions |
Design notes
- Read-only by construction. Every command is a fixed binary with fixed flags via
execFileβ no shell, and nothing derived from model input is ever executed. The only model-controlled inputs are a boolean and a substring filter applied in-process. - Local information disclosure is the point. The model sees process names, pids, working directories, and ports of your own machine. Don't attach this server to an untrusted client.
- Best-effort, never blocking. Commands time out at 10s and degrade to empty results rather than erroring the whole snapshot.
Platform: macOS first (my daily driver), Linux best-effort (systemd --user in place of launchctl).
Related free tools
Same idea β read-only, MIT, no telemetry β pointed at different blind spots:
- whats-loaded-mcp β what is consuming your agent's context before a session starts: skill descriptions ranked by token cost, skills installed more than once,
CLAUDE.md/AGENTS.mdsizes including what their imports pull in.npx -y whats-loaded-mcp - whats-inherited-mcp β what a checkout tells your agent to do before you run it: instruction files, commands wired to auto-run, declared MCP servers, shipped skills. Repo strings come back labelled as data, not instructions.
npx -y whats-inherited-mcp - whats-allowed-mcp β what your agent can do without asking you: every settings file that contributes permission rules, which one wins, what runs unattended, and the rules your client accepts and then ignores.
npx -y whats-allowed-mcp
Who makes this
Built by Shift The Culture β we run a one-person company on AI agents and ship the tooling we needed ourselves. This server is free and MIT-licensed, no strings.
This server is the free, standalone piece of a larger multi-agent setup. The rest of that tooling is paid:
- Agent Fleet Ops Kit ($29) β the other failure modes of running three or four agents on one box: two sessions editing the same checkout, a dev server nobody owns (so the agent tests a different app than it edits), and MCP servers leaked from crashed sessions that hold ports and RAM for weeks. Prefer PayPal? Same kit on Payhip.
- Agent Reliability Kit ($29) β a Stop hook and two CLIs that block a turn when an agent claims "done" against a repo, URL, or build that was never actually checked. Prefer PayPal? Same kit on Payhip.
The server above stays free and MIT either way β it has no upsell in it, no telemetry, and no dependency on the paid kits.
Sponsors
This server is MIT and stays MIT. There is no pro edition, no telemetry, and nothing held back from the free build. Sponsorship is how the maintenance gets paid for without any of that changing.
No sponsors yet β the first slot is open. Company sponsors get their name or logo in this section, in the two sibling servers, and on the sponsor page. Tiers, exactly what the placement is, and what it explicitly does not buy: https://shifttheculture.media/sponsor
Individuals: https://paypal.me/ShiftTheCultureLLC β any amount, no perks, no tier.
License
MIT Β© Zachary Pampu
Install
Add What's Running to your client. Pick the one you use.
claude mcp add whats-running-mcp -- npx -y whats-running-mcpcodex mcp add whats-running-mcp -- npx -y whats-running-mcpamp mcp add whats-running-mcp -- npx -y whats-running-mcp{
"mcpServers": {
"whats-running-mcp": {
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"whats-running-mcp": {
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"whats-running-mcp","command":"npx","args":["-y","whats-running-mcp"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"whats-running-mcp": {
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"whats-running-mcp": {
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"whats-running-mcp": {
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"whats-running-mcp": {
"type": "local",
"command": "npx",
"args": [
"-y",
"whats-running-mcp"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"whats-running-mcp": {
"command": {
"path": "npx",
"args": [
"-y",
"whats-running-mcp"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y whats-running-mcpRun `goose configure`, choose **Add Extension β Command-line Extension**, and paste this command.
4 tools
What's Running exposes 4 tools to a connected agent.
- whats_running
- Full snapshot in one call β use at session start
- agent_sessions
- Which agent processes are live? Terminal-attached vs detached/orphan, with pid, uptime, and working directory
- listening_ports
- Is service X actually up? Every TCP LISTEN socket with owning process
- system_stats
- Load average, uptime, root-disk free space
Score
81 / 100
Excellent
- Documentation25/25
- Maintenance25/25
- Trust13/20
- Capability6/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 23 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 4 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint β no local install
Version history
| Versions | Published |
|---|---|
| 0.1.6Latest | Aug 1, 2026 |
| 0.1.4 | Aug 1, 2026 |
| 0.1.3 | Aug 1, 2026 |
| 0.1.2 | Aug 1, 2026 |
| 0.1.0 | Aug 1, 2026 |