Starmux
This server exposes read-only file, search, process/session inspection, configuration, usage, and health diagnostics capabilities.
Read local files or URLs, including text, images, PDFs, Excel, and DOCX content with pagination.
Read multiple files at once.
List directory contents recursively with depth control and overflow protection.
Search files by name or search inside file contents, with background search sessions, pagination, stop, and list operations.
Get file or directory metadata such as size, timestamps, permissions, type, line counts, and Excel sheet info.
Read output from running processes and list active terminal sessions and system processes.
View server configuration, usage statistics, recent tool-call history, and Starmux bridge/upstream health mode.
Provides built-in Git tooling via the daemon's coding mode, letting AI clients run Git workflows against a project directory on the host alongside filesystem edits and terminal sessions.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Starmux list the files in /home/ubuntu/projects and show recent errors"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Starmux — All-in-One Self-Hosted MCP Server & Gateway
Built-in file, terminal & Git tools—plus a unified gateway to connect, run, and manage all your cross-platform MCP services in one place.
All-in-One MCP Server · 100% Self-Hosted & Zero Telemetry · Multi-MCP Gateway & Middleware · Streamable HTTP · MIT
Why Starmux? · All-in-One vs. DIY Stacks · Quick Start · Advanced Usage · Use Cases & FAQ · macOS App · Documentation
Why Starmux?
Cloud AI assistants (like ChatGPT Web, Claude, or Doubao) are isolated in the browser, and many desktop coding agents (like Codex, WorkBuddy, Cursor, Claude Code, Antigravity, DSH-Harness, Kimi Code, Minimax Code, or ZCode) lack native apps for headless Linux servers or ARM64 edge boards.
Meanwhile, deploying and managing MCP tools across machines normally requires manually assembling 4 separate open-source tools: a local host-tool server (DesktopCommanderMCP or filesystem-mcp), a stdio-to-HTTP bridge (supergateway or mcp-proxy), an authentication/aggregation gateway (MCPHub, ContextForge, or Caddy), and a process supervisor.
Starmux (Star topology + Multiplexer) is an out-of-the-box, 100% self-hosted All-in-One MCP Server & Gateway—with zero third-party cloud relays—that replaces that entire fragmented chain with a single 'starmux up' daemon:
Turnkey File, Diff Edit, Terminal & Git Tools (Zero Extra Setup): Built-in Desktop Commander engine (25+ host tools) lets AI read/write files, run ripgrep searches, apply surgical diff edits, control interactive shells, manage background processes, and run Git out of the box—no external MCP servers or reverse proxies required.
100% Self-Hosted, Privacy-First & Zero Telemetry: Your traffic never routes through a third-party cloud relay, and Starmux's bundled Desktop Commander engine is surgically stripped of all upstream telemetry, phone-home analytics, cloud-relay hooks, and prompt surveys at build time.
Operate Headless Linux, NVIDIA Jetson (
ARM64), macOS & Windows Remotely: Desktop AI tools like Codex or WorkBuddy have no native Linux or ARM64 app. Run Starmux on your Linux server, NVIDIA Jetson Orin, or workstation, and code on it remotely from your Mac/Windows laptop or browser.Unified Multi-MCP Gateway,
stdio-to-HTTP Bridge & Middleware: Built-instdio-to-Streamable HTTPmultiplexer that connects, runs, and manages multiple localstdioor remote HTTP MCP servers (starmux server addor Web Dashboard) behind a single/mcpendpoint—complete with argument defaults, tool aliases, conditional routing, field redaction, read caching, and custom ESM plugins.Safe by Default & Turnkey Management: Starts in Global Read-Only mode (
--read) by default; switch to Coding mode (--code) in one command, expose directly on LAN/Tailscale (--allow-lan), lock down access with per-client Bearer API keys or OAuth 2.0 + PKCE, and manage everything via the local Web Dashboard or native macOS Menu Bar App.
Related MCP server: AKIMCP
All-in-One vs. Fragmented DIY Stacks
Instead of wiring together separate tool servers, transport bridges, and auth proxies—or deploying heavy gateways that still lack built-in host tools—Starmux provides one unified, privacy-pure runtime:
Capability | Starmux (All-in-One Server & Gateway) | DIY Stack ( | Pure MCP Gateways ( | SSH MCP Bridges ( | Vendor-Hosted Relays (Hosted Remote Desktop Commander) |
Built-in File, Diff Edit, Terminal & Process Tools | ✅ Built-in (25+ tools) | ⚠️ Requires separate tool server | ❌ None (must wire external servers) | ✅ Via OpenSSH / SFTP | ✅ Built-in |
Native | ✅ Built-in (no Caddy needed) | ⚠️ Requires transport adapter | ✅ Built-in | ❌ Local | ✅ Hosted cloud endpoint |
100% Self-Hosted & Zero Telemetry (Privacy-Pure) | ✅ Zero telemetry & no relay | ⚠️ Upstream DC has telemetry | ✅ Self-hosted | ✅ Self-hosted | ❌ Routes via vendor cloud |
Unified Multi-MCP Management ( | ✅ CLI + Local Web Dashboard | ⚠️ Adapter-dependent | ✅ Built-in | ❌ No | ❌ No |
Programmable Middleware & Tool Allowlists | ✅ Built-in + ESM plugins | ❌ None | ⚠️ Partial | ❌ No | ❌ No |
Headless Linux | ✅ Single command ( | ⚠️ Manual multi-process setup | ⚠️ Often requires Docker / DB | ✅ Via SSH target | ⚠️ Depends on host agent |
Global Read-Only vs. Coding Mode Switch | ✅ 1-command ( | ❌ No unified read-only gate | ❌ No host-tool read/code mode | ❌ Relies on OS SSH user | ⚠️ Vendor-defined |
Per-Client Revocable API Keys & OAuth 2.0 | ✅ Built-in + Local Web Dashboard | ❌ Requires external auth proxy | ✅ Built-in | ❌ SSH keys only | ✅ Vendor OAuth |
Quick Start
1. Install
Requires Node.js 22.12+ on macOS, Linux (x64 / ARM64 / NVIDIA Jetson), or Windows.
npm install -g starmux(Upgrading? Run starmux down before installing the new version—see the Upgrade Guide.)
2. Start in your project directory
cd /path/to/your/project
# Option 1: Read-only mode on this computer (default — safely inspect files, folders & code)
starmux up
# or, Option 2: Coding mode on this computer (enable file edits, interactive terminal, processes & Git)
starmux up --code
# or, Option 3: Direct LAN / Tailscale access across computers (no Caddy or tunnel required)
starmux up --code --allow-lanStarmux runs in the background on port 18893 with Authentication: None by default for immediate connection:
● Starmux is running (instance: default)
Instance <instance UUID>
Listen http://127.0.0.1:18893/mcp (this computer only)
Project /path/to/your/project
Mode Read-only (global · OS account) (run 'starmux up --code' to enable edits & shell)
Auth None (no token required)(Switch permissions anytime with starmux up --code / starmux up --read, or return from LAN mode to loopback-only with starmux up --local.)
Choose your network scenario at a glance:
Because SSH, tunnels (tunnel-client / cloudflared), and Caddy all forward traffic to 127.0.0.1:18893 locally on the host, only direct LAN / Tailscale connections across machines require --allow-lan:
Scenario | When to Use | Starmux Command | Extra Forwarding Tool (if any) | What to Enter in AI Client |
1. Same Computer ( | AI client and Starmux run on the same machine |
| ❌ None | URL: |
2. Direct LAN / Tailscale / WireGuard | Connecting across two machines on the same Wi-Fi/LAN or virtual LAN (e.g., Mac/PC $\rightarrow$ Linux or Jetson) |
| ❌ None | URL: |
3. Over SSH Port Forwarding | Connecting across machines via SSH without exposing |
| On client laptop: | URL: |
4A. Cloud AI via Tunnel (No Domain / NAT) | Connecting ChatGPT Web / Codex or cloud AI behind NAT without a public IP or domain |
| • OpenAI Tunnel: | • OpenAI Tunnel ("Tunnel" tab): Select |
4B. Cloud AI via Public Domain HTTPS | Connecting cloud browser AI (ChatGPT Web, Claude, Doubao) with your own public IP & domain |
|
| Server URL: |
3. Connect your AI client
With default settings (Auth: None), connect your AI client using any of the 3 options below.
Note: Default URL is http://127.0.0.1:18893/mcp. If connecting across machines (--allow-lan, SSH, HTTPS, or Tunnel), replace 127.0.0.1:18893 with the Client URL from your scenario above.
Option 1 — Ask your AI coding agent to add it for you (Zero manual config)
Send this prompt in Claude Code, Antigravity, Codex, Cursor, WorkBuddy, DSH-Harness, Kimi Code, Minimax Code, or ZCode:
Create this MCP Server connector:
"starmux": {
"type": "streamable-http",
"url": "http://127.0.0.1:18893/mcp"
}or, Option 2 — AI clients with a Form UI (e.g., ChatGPT Web, Claude, Doubao)
MCP Client Field | Value to Fill In |
Connection / Transport | • Server URL ( |
Authentication |
|
or, Option 3 — Manually paste into mcp.json
{
"mcpServers": {
"starmux": {
"type": "streamable-http",
"url": "http://127.0.0.1:18893/mcp"
}
}
}Everyday CLI Commands
starmux status # Check health, LAN/Tailscale endpoints, active permission mode, and tool activity
starmux dashboard # Open the local Web Management Console (instances, MCP servers, auth & logs)
starmux up . # Switch active project folder context to current directory
starmux up --allow-lan # Enable direct LAN / Tailscale access (0.0.0.0) without reverse proxies
starmux up --local # Restore loopback-only access (127.0.0.1)
starmux auth # View auth mode, create/revoke per-client API keys, and inspect OAuth sessions
starmux verify # Run an end-to-end local MCP handshake, tool discovery, and read probe
starmux doctor # Run environment, port lease, and configuration diagnostics
starmux logs -f # Stream live MCP gateway and tool invocation logs
starmux down # Stop the gateway (alias: stop)Advanced Usage: Manage MCP Servers, Auth & Multi-Instance
(Optional) Explore Starmux's multi-server gateway, programmable middleware, security, and multi-instance capabilities:
1. Unify & Manage Multiple MCP Servers (stdio & Remote HTTP) + Middleware
Connect extra MCP services to Starmux via the MCP servers page in starmux dashboard or with a single CLI command (Starmux automatically tests the connection, discovers tools, and extracts sensitive tokens/headers into a private secret store):
# 1. Add a local stdio MCP server command
starmux server add 'npx --yes @modelcontextprotocol/server-memory' --name memory
# 2. Add a remote Streamable HTTP / SSE MCP server URL
starmux server add 'https://your-server.example/mcp' --name remote
# 3. Import an existing mcp.json (auto-extracts secret env/headers & prepares packages)
starmux server import ./client-config.json --prepare
# 4. Sign in to an OAuth-protected upstream MCP server (if required)
starmux server auth remote loginConfigure built-in Middleware (argument defaults, tool aliases/hiding, conditional routing, field redaction, opt-in read caching) or load local ESM plugins (starmux/middleware).
👉 Detailed Guide: Gateway Services, Upstream OAuth & Programmable Middleware
2. Local Management Console (starmux dashboard)
Open the owner-local Web control center (bound strictly to 127.0.0.1 on its own port, with English/Chinese and light/dark themes) to visually manage instances, connected MCP servers, middleware, client credentials, and logs:
starmux dashboard # Start/reuse the local console and open it in your browser
starmux dashboard --no-open # Print a private local console login link
starmux dashboard stop # Stop the console service without stopping MCP instances3. Securing Remote Access: Per-Client Bearer API Keys & OAuth 2.0
When exposing Starmux beyond 127.0.0.1 or trusted private networks, lock down access with revocable credentials:
Per-Client Bearer API Keys (with instant revocation):
starmux auth key "My AI Client"Then add
"headers": { "Authorization": "Bearer smx_YOUR_GENERATED_API_KEY" }to your client'smcp.json.OAuth 2.0 + PKCE Browser Login (for ChatGPT Web): Acts as a standard OAuth 2.0 protected resource server with PKCE and session revocation (via self-hosted Keycloak). 👉 Detailed Guide: Security Model, Read-Only vs. Coding Boundaries & OAuth 2.0
4. Multiple Isolated Instances (-i)
Run separate remote MCP endpoints on one computer—each with its own port, project directory, Read-Only vs. Coding mode, credentials, and mounted MCP servers:
starmux up ~/work/repo-a -i work --code
starmux up ~/personal/blog -i blog --read
starmux ls # List all instances with status, mode, port, and project folder
starmux down -i work # Stop a specific instance👉 Detailed Guide: Multiple Instances & Hot-Reloading JSONC Configuration
Tested AI Client Matrix
AI Client | Recommended Setup | Status | Detailed Guide |
ChatGPT Web | Direct HTTPS or OpenAI Tunnel (+ OAuth 2.0) | ✅ Tested | |
Claude App / Code | Chat Prompt ( | ✅ Tested | |
WorkBuddy | Chat Prompt / Direct LAN ( | ✅ Tested | |
Codex CLI / App | Chat Prompt / Direct LAN ( | ✅ Tested | |
Antigravity | Chat Prompt / Local / Direct LAN ( | ✅ Tested | |
Cursor | Chat Prompt / Local / Direct LAN ( | ✅ Tested | |
DSH-Harness / Kimi / Minimax / ZCode | Chat Prompt / Local / Direct LAN ( | ✅ Tested | |
Doubao (豆包) | Direct HTTPS or Tunnel | ✅ Tested |
Common Use Cases & FAQ
1. All-in-One Turnkey Setup (Zero Manual Component Assembly)
How do I run a remote file, terminal, and Git MCP server with one command instead of wiring
DesktopCommanderMCP + supergateway + Caddy? Runstarmux up --code --allow-lan. Starmux bundles 25+ host tools (read_file,write_file,list_directory,start_search,edit_block, interactive PTY/Shell sessions viastart_process/interact_with_process/read_process_output, background process control vialist_processes/kill_process/force_terminate, PDF/Excel parsing, and Git workflows), a nativeStreamable HTTPserver, a LAN listener, and a process supervisor into a single daemon.How can I give ChatGPT Web, Claude, or Doubao local "Computer Use" (access to files and terminal tools on my computer)? Start
starmux upin your project directory and expose127.0.0.1:18893/mcpvia OpenAI Secure MCP Tunnel, Cloudflare Tunnel, or Direct HTTPS so cloud AI can inspect folders, edit code, or execute terminal workflows without manual file uploads.How do I switch an AI agent between safe Read-Only inspection and full Coding permissions on the fly? Starmux defaults to Global Read-Only mode (
starmux up --read), blocking file writes, shell commands, and Git mutations at the gateway level. Runstarmux up --codeto enable coding tools immediately without reconfiguring your AI client.
2. 100% Self-Hosted, Privacy-First & Zero Telemetry
Is there a privacy-first, zero-telemetry alternative to Desktop Commander MCP and its hosted Remote Desktop Commander service? Yes. Upstream
DesktopCommanderMCPincludes installation tracking, telemetry capture, cloud-relay modules, and prompt surveys. Starmux surgically strips all telemetry, phone-home calls, and cloud-relay code at build time (verified by automated zero-telemetry audit tests) and runs 100% self-hosted on your own machine.Does Starmux route my code, prompts, or terminal output through any third-party cloud server? Never. Starmux has zero vendor-hosted relays and zero external analytics. All MCP tool execution stays strictly between your AI client and your own network (
127.0.0.1, LAN/Tailscale, or your self-managed HTTPS/Tunnel ingress).
3. Cross-Platform Remote Coding (Codex, WorkBuddy & Cloud AI on Linux / NVIDIA Jetson)
How can Codex App, WorkBuddy, Cursor, or Claude Code on macOS/Windows write code and run commands on a headless Linux server, Raspberry Pi, or NVIDIA Jetson (
ARM64/aarch64)? Desktop AI apps like Codex App and WorkBuddy do not offer native Linux orARM64desktop clients (see also the WorkBuddy to Linux / Jetson Guide). Install Starmux on your target Ubuntu/Debian server, NVIDIA Jetson Orin / AGX, or ARM64 board, runstarmux up --code --allow-lan, and connect from your Mac/Windows AI client over HTTP—turning any headless Linux box into a local-feeling AI workspace.Can ChatGPT Web operate a remote Linux workstation or NVIDIA Jetson edge device directly? Yes. Run Starmux on the Linux
x64/ARM64or Jetson host and connect ChatGPT Web via an outbound tunnel or HTTPS so ChatGPT can inspect logs, edit code, compile projects, and manage services on the target device.
4. Multi-MCP Server Aggregation (stdio-to-HTTP Bridge) & Programmable Middleware
How do I expose local
stdioMCP servers overStreamable HTTPand aggregate multiple local/remote MCP servers behind one endpoint? Usestarmux server add,starmux server import ./mcp.json --prepare, or thestarmux dashboardWeb UI. Starmux acts as a built-instdio-to-Streamable HTTPbridge and multi-server multiplexer—supervising localstdioprocesses and remote HTTP/SSE upstreams, managing their outbound OAuth/API keys, and namespacing all tools (<serverId>__<toolName>) on one port without needingsupergatewayormcp-proxy(see the full Gateway Reference).How can I transform MCP tool arguments, hide or alias tools, redact sensitive output fields, or cache read-only MCP calls? Configure Starmux's built-in Middleware pipeline (
arguments,catalog,route,result,redact,cache) viastarmux middleware addor the Web Dashboard, or write custom local ESM plugins usingdefineMiddlewarefromstarmux/middleware.
5. NAT Traversal & Enterprise-Grade Authentication
How do I connect an AI client to a self-hosted MCP server behind NAT, CGNAT, or a home firewall? For your own desktop AI clients across networks, join both machines to Tailscale / WireGuard, run
starmux up --code --allow-lan, and connect directly via the host's Tailscale IP (http://100.x.y.z:18893/mcp). For cloud browser AI (like ChatGPT Web) that cannot join your virtual LAN, runstarmux up --code(listening on127.0.0.1:18893) and forward127.0.0.1:18893via OpenAI Secure MCP Tunnel (select Tunneltunnel_...in ChatGPT) or Cloudflare Tunnel /frp/ngrok(enter Server URLhttps://.../mcp).How can I secure a remote MCP endpoint with per-client revocable API keys or OAuth 2.0 + PKCE? Run
starmux auth key "Client Name"to issue independent Bearer tokens (smx_...) that can be audited or revoked anytime instarmux dashboard, or configure self-hosted Keycloak OAuth 2.0 + PKCE for browser-based AI connectors.
中文场景速览(开箱即用 · 100% 自托管零遥测 · 跨平台 ·
stdio转 HTTP 可编程多 MCP 网关):
All-in-One 极简开箱即用(本地 Computer Use): 无需手工拼装
DesktopCommanderMCP + supergateway + MCPHub + Caddy,仅需一条starmux up(或局域网/Tailscale 免反代直连starmux up --allow-lan),即可获得内置的 25+ 本地文件读写、ripgrep 代码搜索、Diff 块编辑、交互式 PTY 终端、后台进程管理与 Git 工具,以及原生Streamable HTTP(/mcp) 端点,轻松让网页版 ChatGPT、Claude、豆包 实现本地电脑操作(Computer Use)。100% 自托管、无遥测(Zero Telemetry)、重隐私(Desktop Commander 私有化纯净替代方案): 在构建期物理剥离了原版 Desktop Commander 的全部遥测上报、云端设备中转与调查弹窗代码,数据与执行 100% 留在你自己的机器与网络中,绝不经过第三方云端中转。
跨平台赋能无 Linux 客户端的 AI 编程工具: 让没有 Linux / ARM64 桌面客户端的 WorkBuddy、Codex App,以及 Cursor、Claude Code、Antigravity,跨设备远程在 无头 Linux 服务器 (
x64/ARM64/aarch64)、NVIDIA Jetson Orin、树莓派、macOS 与 Windows 上流畅写代码、跑终端。
stdio转Streamable HTTP桥接、多 MCP 服务统一管理与可编程中间件: 通过starmux dashboard本地可视化管理面板或starmux server add/import一站式接入、运行和聚合多个本地stdio与远程 HTTP/SSE MCP 服务,并支持参数默认值、工具别名/隐藏、条件路由、敏感字段脱敏、只读缓存及自定义 ESM 中间件插件。
Native macOS App
Prefer a visual desktop interface? The native SwiftUI menu bar App puts service health, Read-Only vs. Coding mode toggles, live MCP connection topology, and recent tool calls in one compact panel.
The App and CLI manage the same underlying instances. Quitting the App stops only instances started by the App; background instances started via CLI keep running.
Host Platform | Core & CLI ( | Native Menu Bar App |
macOS ( | ✅ Tested | 🧪 Development Build (App Build Guide) |
Linux ( | ✅ Tested | — |
Windows ( | ✅ Tested | — |
Documentation & Specialized Guides
Explore the Documentation Index by topic:
📦 Installation, Platforms & Network Forwarding — Supported hosts (
macOS,Linux,NVIDIA Jetson,Windows), everyday CLI commands, upgrades, source builds, and Caddy / Tunnel / SSH forwarding.🔌 Gateway Services, Upstream OAuth & Programmable Middleware — Adding/importing local
stdioand remote HTTP MCP servers (starmux server), outbound OAuth login, built-in transforms, read caching, and custom ESM middleware plugins.🔒 Security, Access Control & Authentication — Global Read-Only vs. Coding permissions, trust boundaries, per-client Bearer API keys (
starmux auth key), private local Web Console, and self-hosted Keycloak OAuth 2.0 + PKCE.🤖 AI Client Configuration Guides — End-to-end setup (including 1-step Prompt Auto-Setup) for ChatGPT Web, Claude App / Code, WorkBuddy, Antigravity, Codex, Cursor, DSH-Harness, Kimi Code, Minimax Code, ZCode, and Doubao (豆包).
⚙️ Multi-Instance & JSONC Configuration — Running multiple isolated instances (
-i NAME), hot-reloadingconfig.jsonc, mounting extra MCP servers, and managing secrets.
License
Starmux original code is MIT Licensed. Desktop Commander is bundled as a pinned dependency and retains its own license and notices. Starmux is an independent open-source project and is not endorsed by Desktop Commander or AI client vendors.
Available Tools
15 toolsget_configBRead-only
Get the complete server configuration as JSON. Config includes fields for:
- blockedCommands (array of blocked shell commands)
- defaultShell (shell to use for commands)
- allowedDirectories (paths the server can access)
- fileReadLineLimit (max lines for read_file, default 1000)
- fileWriteLineLimit (max lines per write_file call, default 50)
- telemetryEnabled (boolean for telemetry opt-in/out)
- currentClient (information about the currently connected MCP client)
- clientHistory (history of all clients that have connected)
- version (version of the DesktopCommander)
- systemInfo (operating system and environment details)
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: origin.
get_file_infoARead-only
Retrieve detailed metadata about a file or directory including:
- size
- creation time
- last modified time
- permissions
- type
- lineCount (for text files)
- lastLine (zero-indexed number of last line, for text files)
- appendPosition (line number for appending, for text files)
- sheets (for Excel files - array of {name, rowCount, colCount})
Only works within allowed directories.
Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: path (required).
get_more_search_resultsARead-only
Get more results from an active search with offset-based pagination.
Supports partial result reading with:
- 'offset' (start result index, default: 0)
* Positive: Start from result N (0-based indexing)
* Negative: Read last N results from end (tail behavior)
- 'length' (max results to read, default: 100)
* Used with positive offsets for range reading
* Ignored when offset is negative (reads all requested tail results)
Examples:
- offset: 0, length: 100 → First 100 results
- offset: 200, length: 50 → Results 200-249
- offset: -20 → Last 20 results
- offset: -5, length: 10 → Last 5 results (length ignored)
Returns only results in the specified range, along with search status.
Works like read_process_output - call this repeatedly to get progressive
results from a search started with start_search.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: sessionId (required), length, offset.
get_recent_tool_callsARead-only
Get recent local tool call history with arguments and outputs.
Returns a chronological list of recent calls loaded from the local history file.
Useful for:
- Onboarding new chats about work already done
- Recovering context after chat history loss
- Debugging tool call sequences
Note: Does not track its own calls or track_ui_event.
History is persisted locally in tool-history.jsonl, keeps up to the last 1000
calls in memory, and trims older on-disk history. Stored outputs over 4 KiB
are replaced with an omission marker.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: since, toolName, maxResults.
get_usage_statsARead-only
Get usage statistics for debugging and analysis.
Returns summary of tool usage, success/failure rates, and performance metrics.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: no named parameters.
health_checkBRead-only
Starmux bridge connection, upstream availability and active mode check. Read-only blocks writes and arbitrary execution; Coding uses upstream tools with OS account permissions.
Inputs: no named parameters.
list_directoryARead-only
Get a detailed listing of all files and directories in a specified path.
Returns a structured directory listing without starting a shell command.
Results distinguish between files and directories with [FILE] and [DIR] prefixes.
Supports recursive listing with the 'depth' parameter (default: 2):
- depth=1: Only direct contents of the directory
- depth=2: Contents plus one level of subdirectories
- depth=3+: Multiple levels deep
CONTEXT OVERFLOW PROTECTION:
- Top-level directory shows ALL items
- Nested directories are limited to 100 items maximum per directory
- When a nested directory has more than 100 items, you'll see a warning like:
[WARNING] node_modules: 500 items hidden (showing first 100 of 600 total)
- This prevents overwhelming the context with large directories like node_modules
Results show full relative paths from the root directory being listed.
Example output with depth=2:
[DIR] src
[FILE] src/index.ts
[DIR] src/tools
[FILE] src/tools/filesystem.ts
If a directory cannot be accessed, it will show [DENIED] instead.
If a path does not exist, it will show [NOT_FOUND] instead.
Only works within allowed directories.
Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: path (required), depth, origin.
list_processesARead-only
List all running processes.
Returns process information including PID, command name, CPU usage, and memory usage.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: no named parameters.
list_searchesARead-only
List all active searches.
Shows search IDs, search types, patterns, status, and runtime.
Similar to list_sessions for terminal processes. Useful for managing
multiple concurrent searches.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: no named parameters.
list_sessionsARead-only
List all active terminal sessions.
Shows session status including:
- PID: Process identifier
- Blocked: Whether session is waiting for input
- Runtime: How long the session has been running
DEBUGGING REPLs:
- "Blocked: true" often means REPL is waiting for input
- Use this to verify sessions are running before sending input
- Long runtime with blocked status may indicate stuck process
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: no named parameters.
read_fileARead-only
Read contents from files and URLs.
Read PDF files and extract content as markdown and images.
Suitable for reading authorized local files directly without starting a shell command.
Supports partial file reading with:
- 'offset' (start line, default: 0)
* Positive: Start from line N (0-based indexing)
* Negative: Read last N lines from end (tail behavior)
- 'length' (max lines to read, default: configurable via 'fileReadLineLimit' setting, initially 1000)
* Used with positive offsets for range reading
* Ignored when offset is negative (reads all requested tail lines)
Examples:
- offset: 0, length: 10 → First 10 lines
- offset: 100, length: 5 → Lines 100-104
- offset: -20 → Last 20 lines
- offset: -5, length: 10 → Last 5 lines (length ignored)
Performance optimizations:
- Large files with negative offsets use reverse reading for efficiency
- Large files with deep positive offsets use byte estimation
- Small files use fast readline streaming
When reading from the file system, only works within allowed directories.
Can fetch content from URLs when isUrl parameter is set to true
(URLs are always read in full regardless of offset/length).
FORMAT HANDLING (by extension):
- Text: Uses offset/length for line-based pagination
- Excel (.xlsx, .xls, .xlsm): Returns JSON 2D array
* sheet: "Sheet1" (name) or "0" (index as string, 0-based)
* range uses FROM:TO format (e.g., "A1:D100", "C1:C1", "B2:B50")
* offset/length work as row pagination (optional fallback)
- Images (PNG, JPEG, GIF, WebP): Base64 encoded viewable content
- PDF: Extracts text content as markdown with page structure
* offset/length work as page pagination (0-based)
* Includes embedded images when available
- DOCX (.docx): Two modes depending on parameters:
* DEFAULT (no offset/length): Returns a text-bearing outline — shows paragraphs with text,
tables with cell content, styles, image refs. Skips shapes/drawings/SVG noise.
Each element shows its body index [0], [1], etc.
* WITH offset/length: Returns raw pretty-printed XML with line pagination.
Use this to drill into specific sections or see the actual XML for editing.
* Raw DOCX XML output is compatible with edit_block's XML find/replace mode using
XML fragments copied from the read output.
* Raw XML mode requires a non-zero offset (offset=1 starts from line 1).
offset=0 returns the outline regardless of length.
* Bulk transformations can be performed programmatically against the DOCX archive
when the task requires changes across many XML text nodes.
Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: path (required), isUrl, range, sheet, +4 more.
read_multiple_filesARead-only
Read the contents of multiple files simultaneously.
Each file's content is returned with its path as a reference.
Handles text files normally and renders images as viewable content.
Recognized image types: PNG, JPEG, GIF, WebP.
Failed reads for individual files won't stop the entire operation.
Only works within allowed directories.
Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: paths (required).
read_process_outputARead-only
Read output from a running process with file-like pagination support.
Supports partial output reading with offset and length parameters (like read_file):
- 'offset' (start line, default: 0)
* offset=0: Read NEW output since last read (default, like old behavior)
* Positive: Read from absolute line position
* Negative: Read last N lines from end (tail behavior)
- 'length' (max lines to read, default: configurable via 'fileReadLineLimit' setting)
Examples:
- offset: 0, length: 100 → First 100 NEW lines since last read
- offset: 0 → All new lines (respects config limit)
- offset: 500, length: 50 → Lines 500-549 (absolute position)
- offset: -20 → Last 20 lines (tail)
- offset: -50, length: 10 → Start 50 from end, read 10 lines
OUTPUT PROTECTION:
- Uses same fileReadLineLimit as read_file (default: 1000 lines)
- Returns status like: [Reading 100 lines from line 0 (total: 5000 lines, 4900 remaining)]
- Prevents context overflow from verbose processes
SMART FEATURES:
- For offset=0, waits up to timeout_ms for new output to arrive
- Detects REPL prompts and process completion
- Shows process state (waiting for input, finished, etc.)
DETECTION STATES:
Process waiting for input (ready for interact_with_process)
Process finished execution
Timeout reached (may still be running)
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: pid (required), length, offset, timeout_ms, +1 more.
start_searchARead-only
Start a streaming search that can return results progressively.
SEARCH STRATEGY GUIDE:
Choose the right search type based on what the user is looking for:
USE searchType="files" WHEN:
- User asks for specific files: "find package.json", "locate config files"
- Pattern looks like a filename: "*.js", "README.md", "test-*.tsx"
- User wants to find files by name/extension: "all TypeScript files", "Python scripts"
- Looking for configuration/setup files: ".env", "dockerfile", "tsconfig.json"
USE searchType="content" WHEN:
- User asks about code/logic: "authentication logic", "error handling", "API calls"
- Looking for functions/variables: "getUserData function", "useState hook"
- Searching for text/comments: "TODO items", "FIXME comments", "documentation"
- Finding patterns in code: "console.log statements", "import statements"
- User describes functionality: "components that handle login", "files with database queries"
AMBIGUOUS SEARCHES:
Queries that could refer to either filenames or file contents can be covered with two
searches: one with searchType="files" and one with searchType="content".
Example: "find authentication stuff" can pair a filename search for "auth" with a
content search for "authentication".
SEARCH TYPES:
- searchType="files": Find files by name (pattern matches file names)
- searchType="content": Search inside files for text patterns
PATTERN MATCHING MODES:
- Default (literalSearch=false): Patterns are treated as regular expressions
- Literal (literalSearch=true): Patterns are treated as exact strings
literalSearch=true is useful for code patterns with special characters:
- Function calls with parentheses and quotes
- Array access with brackets
- Object methods with dots and parentheses
- File paths with backslashes
- Any pattern containing: . * + ? ^ $ { } [ ] | \ ( )
IMPORTANT PARAMETERS:
- pattern: What to search for (file names OR content text)
- literalSearch: Use exact string matching instead of regex (default: false)
- filePattern: Optional filter to limit search to specific file types (e.g., "*.js", "package.json")
- ignoreCase: Case-insensitive search (default: true). Works for both file names and content.
- earlyTermination: Stop search early when exact filename match is found (optional: defaults to true for file searches, false for content searches)
DECISION EXAMPLES:
- "find package.json" → searchType="files", pattern="package.json" (specific file)
- "find authentication components" → searchType="content", pattern="authentication" (looking for functionality)
- "locate all React components" → searchType="files", pattern="*.tsx" or "*.jsx" (file pattern)
- "find TODO comments" → searchType="content", pattern="TODO" (text in files)
- "show me login files" → AMBIGUOUS → run both: files with "login" AND content with "login"
- "find config" → AMBIGUOUS → run both: config files AND files containing config code
COMPREHENSIVE SEARCH EXAMPLES:
- Find package.json files: searchType="files", pattern="package.json"
- Find all JS files: searchType="files", pattern="*.js"
- Search for TODO in code: searchType="content", pattern="TODO", filePattern="*.js|*.ts"
- Search for exact code: searchType="content", pattern="toast.error('test')", literalSearch=true
- Ambiguous request "find auth stuff": Run two searches:
1. searchType="files", pattern="auth"
2. searchType="content", pattern="authentication"
Ambiguous requests can combine file-name and content searches for broader coverage.
This tool starts a background search process and returns immediately with a session ID.
Results are available through get_more_search_results, and stop_search can end the search early.
Perfect for large directories where you want to see results immediately and
have the option to cancel if the search takes too long or you find what you need.
Absolute paths are the most reliable because they do not depend on the current working directory. Paths are automatically normalized regardless of slash direction. Relative paths depend on the current working directory, and tilde paths (~/...) may not resolve in every context. Absolute paths are generally the most reliable.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: path (required), pattern (required), origin, ignoreCase, +8 more.
stop_searchA
Stop an active search.
Stops the background search process gracefully. Use this when you've found
what you need or if a search is taking too long. Similar to force_terminate
for terminal processes.
The search will still be available for reading final results until it's
automatically cleaned up after 5 minutes.
This command can be referenced as "DC: ..." or "use Desktop Commander to ..." in your instructions.Inputs: sessionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools have clearly distinct targets: file reading, directory listing, search lifecycle, process inspection, and config/telemetry each occupy their own niche. Minor overlap exists between list_directory and start_search(searchType="files"), and between list_sessions and list_processes, plus get_recent_tool_calls vs get_usage_stats, but descriptions make the boundaries workable.
Nearly every tool follows a clean verb_noun snake_case pattern (read_file, list_directory, start_search, get_more_search_results, stop_search, get_file_info). The only deviation is health_check, which is a widely recognized idiom and does not break readability.
15 tools is within the well-scoped range for a filesystem/terminal commander surface. The search family (start/get_more/stop/list) is grouped logically and each tool earns its place rather than bloating the surface.
The read/search side is thorough (files, multiple files, URLs, PDF/Excel/DOCX, metadata, paginated search lifecycle), but the write and execution side is entirely absent — no write_file, edit_block, create_directory, execute_command, start_process, interact_with_process, or kill_process. This leaves dead ends: you can list sessions and read process output but cannot start, interact with, or terminate a process, which is a notable gap for a terminal-oriented server (even if read-only mode is intentional).
Related MCP Connectors
Remote MCP server exposing your Node Command fleet (files, shell, processes, browser) to AI hosts.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceTurns any Linux server into an AI-agent-accessible machine over HTTPS, allowing MCP clients like ChatGPT, Claude, and Grok to securely control files, run shell commands, inspect system state, query SQLite, and work with git behind a bearer token.149 npm7MIT
- FlicenseNot gradedqualityAmaintenanceExposes a governed suite of 38 tools over a single OAuth-gated MCP endpoint, letting web-based AI clients such as Claude, ChatGPT, and Grok read and edit files, run whitelisted shell commands, search, query SQLite, use Git, automate browsers and DevTools, manage background tasks, reach localhost services, and control the clipboard, notifications, ports, and Postman. This turns remote AI chats into secure operators of a local machine without granting unrestricted shell access.-
- FlicenseNot gradedqualityAmaintenanceConnects web-based AI chat clients such as Claude, ChatGPT, and Grok to a local machine through a single OAuth-gated MCP endpoint so they can browse, read, write, and edit files, run whitelisted shell commands, search content, use Git, query SQLite, drive browsers and DevTools, and manage background tasks, ports, and clipboard. It also exposes localhost and LAN services via a protected HTTP client, letting remote or mobile clients debug and operate local projects without granting unrestricted shell access.-
- AlicenseNot gradedqualityAmaintenanceEnables web-based AI clients like Claude, ChatGPT, and Grok to securely operate a local machine through OAuth-gated MCP tools covering files, shell, Git, databases, browser automation, and background tasks.MIT