
Local Commander
io.github.netbka由 GitHub 帳號 netbka 發布v0.1.4更新於 Nov 6, 2026
Files, Git, allowlisted dev commands, processes and localhost inside folders you choose.
發布方自己的服務:Local Commander
概覽
本機 MCP 伺服器,讓 AI 助理在你指定的資料夾內存取檔案、Git、白名單開發指令、程序與 localhost。
- 可以做什麼
- 在允許的根目錄內讀取、列出與全文搜尋檔案,並建立或取代檔案
- 檢視 Git 狀態、差異與最近提交,或一次取得含指令碼與程序的專案快照
- 以獨立參數執行一個或多個白名單可執行檔,不經過 shell 字串
- 啟動、列出、讀取輸出與終止長時間執行的開發程序,並檢視排程狀態
- 對白名單內的本地主機送出受限的 HTTP 請求
- 適用情境
- 適合讓助理直接處理本機真實儲存庫或開發環境:執行測試與建置、審閱差異、啟動開發伺服器並查看日誌,同時不必給它一個不受限制的終端機。
- 執行需求
- 以 stdio 方式在本機執行。npx 或原始碼安裝需要 Node.js 20+;Claude Desktop 可用 .mcpb 套件(不需 Node.js);也可使用 Docker 映像。必須提供至少一個允許的資料夾,透過資料夾參數或 LCMCP_ROOTS 變數指定。選用的 HTTP 模式需要 LCMCP_TOKEN 或 OAuth 設定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Local Commander,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Local Commander
Your AI, on your computer.
Let Claude, Cursor, Codex or your own agent work with the files, Git and dev tools on your machine.
You choose the folders. No account, no cloud, no telemetry.
[npm] [Docker] [MCP Registry] [License: MIT] [M8ven Score]
Get started · What people use it for · Why Local Commander · Questions · Technical reference
The problem
Your AI can write the code, but it can't see your project. You copy files into the chat, paste test output back, and run every command yourself. Giving it a raw terminal solves that, but then it can touch everything.
Local Commander sits in between. Your AI gets real tools for real work on your machine, inside the folders you pick, with commands you allow. You keep working in the chat you already have open.
What people use it for
Try asking:
"Run the tests in my-app and tell me what fails."
"Start the dev server and check that port 3000 answers."
"Show me what changed in the repo since yesterday."
Why Local Commander
🔒 You choose the access. Your AI sees only the folders you pick. Secret files such as .env and private keys are blocked by default.
🧰 Real tools, not a raw shell. Commands run from an allowlist (Git, Node, npm, Python and similar) with separate arguments. There is no free-form shell string to inject into.
⚡ Parallel work without collisions. Independent commands run side by side. Long-running processes such as dev servers keep running while your AI checks their output.
🏠 Stays on your machine. The server runs locally and talks only to the AI client that started it. No account, no telemetry, and the audit log is off unless you turn it on.
🔌 Works with the AI you already have. Claude Desktop, Claude Code, Cursor, Codex, ChatGPT over a tunnel, or anything that speaks MCP.
Get started
Pick the way that fits you. Each takes a couple of minutes.
Before you install
What can my AI touch?
Only the folders you choose, and only through Local Commander's tools: reading and editing files, Git inspection, allowlisted commands, dev processes and requests to localhost. You can change the command list in the config file.
Is it a sandbox?
No. File tools are limited to your folders, but an allowed program such as node or python runs with your account's permissions and can read what you can read. For hard isolation, use the Docker image, a separate low-privilege account or a VM.
Does my data go anywhere?
No. The server runs on your computer and talks only to the AI client that started it. There is no telemetry. What your AI client sends to its own provider is between you and that provider.
Can I remove it?
Yes. npx -y local-commander-mcp-agent setup --remove takes it out of Claude Desktop and Cursor and keeps a backup of the previous config. In Claude Desktop you can also disable or remove the extension.
What about several computers or a team?
This open-source edition runs one computer at a time. The hosted service at localcmd.app connects ChatGPT, Claude or your own agent to all your computers at once, runs tasks on several machines in parallel and shows which computer ran what. It is a separate product and is not needed for this one.
Technical reference
- Tools
- Install options: setup · npx · Docker · Node.js · HTTP and ChatGPT
- Security model
- Configuration
- Development
Tools
Install options
One-command setup
Requirements: Node.js 20+.
This adds a local-commander entry to the Claude Desktop and/or Cursor MCP configuration, keeping a timestamped backup of the previous file. Repeat --root for more folders, use --client claude-desktop or --client cursor for one client, --dry-run to preview, and setup --remove to take the entry out again. Restart the client afterwards.
npx
Requirements: Node.js 20+. Folders the server may access follow --stdio:
On Windows some clients need "command": "cmd" with "args": ["/c", "npx", "-y", ...]; setup writes that form for you.
LCMCP_ROOTS still works instead of folder arguments. In stdio mode local state is kept in ~/.local-commander-mcp-agent unless LCMCP_OAUTH_STATE_PATH is set.
On Windows use ; between several roots and paths such as C:\\Users\\you\\source\\repos. The package includes the small Windows file-read helper, so nothing is compiled at install time.
Docker
The container is the sandbox: the server only sees the folders you mount under /workspace. The image is published as ghcr.io/netbka/local-commander-mcp-agent (tags latest and each version). To build it yourself: docker build -t local-commander-mcp-agent .
MCP client configuration (Claude Desktop, Cursor, Claude Code, Codex and others):
On Windows use a path such as C:\\Users\\you\\source\\repos:/workspace/repos. The image contains Node.js 22, Git and Python 3. Add tools by extending the image.
HTTP instead of stdio:
The image defaults to --stdio; any other argument after the image name (here --http) replaces it and starts the HTTP server. The endpoint is http://127.0.0.1:17321/mcp with Authorization: Bearer <token>. Publish the port on 127.0.0.1 only.
Node.js
Requirements: Node.js 20+.
In stdio mode stdout carries only MCP messages and logs go to stderr. HTTP authentication settings do not apply, because only the client that started the process can talk to it.
On Windows the build also compiles a small file-read helper (release/personal/OwnerBridge.exe) with the .NET Framework compiler that ships with Windows. Other platforms use the Node reader.
HTTP and ChatGPT
When the client starts authorization, a one-time approval code is printed in the local terminal. Bearer mode (LCMCP_AUTH_MODE=bearer, LCMCP_TOKEN=...) is available for local clients.
Security model
- Direct file operations are constrained to the configured roots; existing paths are resolved with
realpath, so symlinks cannot escape a root. - Common secret files (
.env, private keys, credential files) are blocked by default. command_runtakes an executable and an argument array, never a shell string. Executables are allowlisted and resolved from absolutePATHdirectories only.- Command time and output are capped; HTTP is limited to localhost and redirects are not followed.
- Child processes are not OS-sandboxed outside Docker: an allowed interpreter can read anything the account can read. For hard containment use the Docker image, a separate low-privilege account or a VM.
Configuration
The config file can also set the command allowlist (shell.allowedCommands), size limits and localhost hosts; see local-commander.config.example.json.
Development
MIT licensed · Report an issue · Hosted multi-computer service: localcmd.app
來源:README.md,提交 6c34a80
工具
0版本歷史
3- v0.1.4最新Oct 30, 2026
- v0.1.3Oct 22, 2026
- v0.1.1Oct 17, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分