Local Coding Agent MCP server
Commit Oct 6, 2026Enables AI agents to read files, edit code, run commands, and inspect git repositories directly on your local machine via a secure tunnel.
Also known as LongNgn204/local-coding-agent
- Stars
- 58
- Tools
- —
- Downloads, 30 days
- —
- Latest version
- —
- Last commit
- Oct 6, 2026
- License
- AGPL-3.0
What is Local Coding Agent MCP?
Local Coding Agent enables AI agents to read files, edit code, run commands, and inspect git repositories directly on your local machine via a secure tunnel.
Summary generated from the project's README
About Local Coding Agent MCP server
Local Coding Agent transforms your computer into a dedicated MCP coding workspace for AI agents. It allows tools like Claude Code, Cursor, OpenAI Codex, and ChatGPT Web to interact directly with your local environment. Through a secure tunnel, these agents can read files, edit source code, execute commands, and inspect git repositories. This setup enables an AI to perform complex development tasks on your actual machine rather than in a restricted cloud environment.
Users can manage the server through a command line interface or a cross-platform Electron tray app for Windows and macOS. The system requires Node.js version 18 or higher and a separate tunnel client to facilitate remote connections. A local dashboard is available at a specific localhost address to monitor health metrics and manage setup processes. The server includes specialized commands like setup-wizard to validate dependencies and skills doctor to map common issues to specific tools.
What you can do with it
- 1Automated repository setupAn AI agent can clone, install, and configure the entire workspace for a new user.
- 2Local code manipulationDevelopers can permit an AI to directly modify files and run terminal commands on their machine.
- 3Session state managementYou can instruct an AI to save a structured checkpoint to prevent slow conversations in web interfaces.
- 4System health diagnosticsThe tool can verify if the local environment meets all necessary requirements for the agent to function.
Written from the project's README. Every use case is checked against a quote from it.
Configuration
AGENT_MODEAGENT_POLICYDASHBOARD_PORT
| Name | Description | |
|---|---|---|
| AGENT_MODE | — | |
| AGENT_POLICY | — | |
| DASHBOARD_PORT | — |
Automated checks
Ran Nov 15, 2026Full report →Not verified yet. A server needs a score of 80, no serious finding, and enough data for us to check. How checks work · What to fix for more points
- Source repository linked and reachablelongngn204/local-coding-agent is public and reachablegithub.com/longngn204/local-coding-agent ↗Pass
- Package names this repository as its sourceNot checked
- Build provenance (Sigstore attestation)Not checked
- Open source license (OSI)AGPL-3.0spdx.org/licenses/AGPL-3.0.html ↗Pass
- Commit or release in the last yearLast commit or release 2026-10-06github.com/longngn204/local-coding-agent ↗Pass
- OpenSSF ScorecardNot checked
- Package name not close to a popular packageNot checked
- No critical advisory in the package or its dependenciesNot checked
- No hidden instructions to the model0 tool descriptions and the README read; no override phrases, credential paths or hidden charactersPass
- Destructive tools are labelledNot checked
- Remote endpoint answers the MCP handshakeNot checked
README
View on GitHubCompatible with any MCP client. Not affiliated with Anthropic, OpenAI, GitHub, or Microsoft.
The Community Edition code is open source under AGPL. The project name and brand assets are governed separately by the Trademark Policy.
This tool can run commands on your computer. Read SECURITY.md before using it. It is not an OS sandbox; only connect workspaces you trust.
Latest C# Windows release: v5.0.2. Modern WinForms UI and corrected tunnel configuration. Requires Node.js, server source/dependencies, and your own tunnel client; .NET is bundled. See the release notes and Vietnamese app roadmap.
Latest cross-platform Electron release: v5.0.1. This maintenance release adds official Tray packages for Windows and macOS, bundles the tested MCP runtime, expands cross-platform CI, and hardens permissions and recovery. Local Codex Studio remains an internal experiment and is not publicly distributed.
What's New In v5.0.1
- Cross-platform Electron Tray: Windows x64, macOS Apple Silicon, and macOS Intel.
- Internal Local Codex Studio experiment for continued development; no public download is available yet.
- Bundled MCP runtime, predictable release assets, and Electron's built-in Node fallback for the packaged Tray.
- Permission-boundary, Windows power-path, dashboard resilience, and CI fixes.
- Chrome Companion and classic Windows tray remain available as compatibility assets. The proprietary tunnel client is never bundled.
Tiếng Việt: Bản v5.0.1 hoàn thiện đóng gói Tray cho Windows lẫn macOS,
mang theo MCP runtime đã kiểm thử, tăng độ ổn định của quyền truy cập, dashboard
và tunnel. Studio vẫn là thử nghiệm nội bộ, chưa phát hành công khai. Tunnel
client độc quyền vẫn do người dùng tự tải.
Existing customers can update safely with scripts\lca.cmd update on Windows
or bash scripts/lca update on macOS/Linux, then restart the tray app/server.
AI Agent Quick Setup
English
Use this when you want ChatGPT, Claude Code, Codex, Cursor, or another AI coding agent to clone, install, verify, update, or diagnose this repo for a customer.
node scripts\local-coding-agent.mjs prompt setup
node scripts\local-coding-agent.mjs prompt update
node scripts\local-coding-agent.mjs prompt diagnose
node scripts\local-coding-agent.mjs prompt compact
node scripts\local-coding-agent.mjs prompt resume
node scripts\local-coding-agent.mjs setup-wizard --workspace "C:\path\repo"
node scripts\local-coding-agent.mjs skills doctor
prompt setupprints a copy-paste prompt for a fresh customer install.prompt updateprints a safe update prompt that preserves config, tunnel client files, secrets, generated profiles, reports, andserver/data.prompt diagnoseprints a support prompt that collects redacted reports instead of pasting long logs into chat.prompt compacttells ChatGPT Web to save a small structured checkpoint when the conversation becomes long or slow.prompt resumetells a fresh ChatGPT Web chat to load that checkpoint, verify the workspace and Git state, and continue from the recorded next action.setup-wizardchecks Node/npm/git, repo layout, server dependencies, workspace, tunnel prerequisites, skill validation, and local health, then writessetup-wizard-report.txt.skills doctormaps common customer symptoms to the right shipped skill.
Open the dashboard at http://127.0.0.1:8790/ui to copy the same setup,
update, diagnose, compact, and resume prompts.
Tiếng Việt
Dùng phần này khi bạn muốn ChatGPT, Claude Code, Codex, Cursor hoặc một AI coding agent khác clone, cài đặt, kiểm tra, cập nhật hoặc chẩn đoán repo này cho khách.
node scripts\local-coding-agent.mjs prompt setup
node scripts\local-coding-agent.mjs prompt update
node scripts\local-coding-agent.mjs prompt diagnose
node scripts\local-coding-agent.mjs prompt compact
node scripts\local-coding-agent.mjs prompt resume
node scripts\local-coding-agent.mjs setup-wizard --workspace "C:\path\repo"
node scripts\local-coding-agent.mjs skills doctor
prompt setupin prompt copy-paste cho khách cài mới.prompt updatein prompt cập nhật an toàn, giữ nguyên config, tunnel-client, secret, profile sinh ra, report vàserver/data.prompt diagnosein prompt hỗ trợ/chẩn đoán, tạo report đã redact thay vì dán log dài vào chat.prompt compactbảo ChatGPT Web lưu checkpoint nhỏ, có cấu trúc khi cuộc trò chuyện bắt đầu dài hoặc chậm.prompt resumebảo chat ChatGPT Web mới tải checkpoint, kiểm tra workspace và trạng thái Git rồi tiếp tục từ hành động kế tiếp đã lưu.setup-wizardkiểm tra Node/npm/git, cấu trúc repo, dependency server, workspace, điều kiện tunnel, validate skill và health cục bộ, rồi ghisetup-wizard-report.txt.skills doctormap lỗi khách hay gặp sang skill phù hợp trong repo.
Mở dashboard tại http://127.0.0.1:8790/ui để copy cùng các prompt setup,
update, diagnose, compact và resume.
English
Install With Your AI Agent
The easiest path is to let a strong AI coding agent do the setup for you. Copy this prompt into Codex, Claude Code, Cursor, or another local coding agent:
Please install Local Coding Agent on my machine.
Repository:
https://github.com/LongNgn204/local-coding-agent
Goal:
Clone the repo, install it, configure a workspace, start the MCP server, and
verify the dashboard.
Rules:
- Do not install system dependencies without asking me first.
- Do not download, commit, or redistribute tunnel-client. I will provide it if needed.
- Do not commit secrets, API keys, tunnel IDs, local config, or generated profiles.
- Default to mode=safe and policy=balanced.
- Use the universal CLI first. Use the Windows tray app only if I ask for GUI.
- If anything fails, show the exact error and the next command to fix it.
Steps:
1. Clone https://github.com/LongNgn204/local-coding-agent if it is not already cloned.
2. Enter the repo directory and read AGENTS.md; follow it exactly.
3. Check Node.js version is >= 18 (node -v).
4. Install with:
- Windows: scripts\lca.cmd install
- macOS/Linux: bash scripts/lca install
5. Run setup with:
- Windows: scripts\lca.cmd setup
- macOS/Linux: bash scripts/lca setup
6. Ask me for the workspace folder the AI may access.
7. If I want ChatGPT Web tunnel access, ask me for tunnel-client path, tunnel ID,
organization ID if required, and Runtime API key.
8. Start with:
- Windows: scripts\lca.cmd start
- macOS/Linux: bash scripts/lca start
9. Verify:
- http://127.0.0.1:8787/healthz returns status ok
- http://127.0.0.1:8790/ui opens the dashboard
- Run the tool suite: from server/ run npm run test:agent
- status command works
10. Explain the results to me in plain language: what passed, what failed, and
the exact next command to fix anything that failed.
11. Report the MCP URL, dashboard URL, workspace path, mode, policy, and tunnel status.
More prompt variants are in docs/AI_AGENT_SETUP_PROMPT.md. For existing installs, use docs/CUSTOMER_UPDATE_PROMPT.md.
Setup Map
flowchart TD
A["Paste prompt into your AI coding agent"] --> B["Agent checks Node.js >= 18"]
B --> C["Agent clones LongNgn204/local-coding-agent"]
C --> D["Agent runs scripts/lca install"]
D --> E["Agent runs scripts/lca setup"]
E --> F["You provide workspace and optional tunnel details"]
F --> G["Agent runs scripts/lca start"]
G --> H["Agent verifies /healthz and /ui"]
H --> I["Connect ChatGPT or another MCP client"]
Manual Quickstart
Windows:
git clone https://github.com/LongNgn204/local-coding-agent.git
cd local-coding-agent
scripts\lca.cmd install
scripts\lca.cmd setup
scripts\lca.cmd start
macOS / Linux:
git clone https://github.com/LongNgn204/local-coding-agent.git
cd local-coding-agent
bash scripts/lca install
bash scripts/lca setup
bash scripts/lca start
Open:
http://127.0.0.1:8790/ui
Useful commands:
status show MCP URL, dashboard URL, process status
doctor check local setup and common missing requirements
update safely fetch/pull latest main, reinstall dependencies, validate skills
skills list or validate the shipped skill pack
open open the local dashboard
stop stop the server and tunnel started by the CLI
logs show launcher logs
url print the MCP URL
Cross-platform Tray App
The Electron tray app is a GUI supervisor for the same local server and tunnel on Windows and macOS. It stores secrets with Windows DPAPI or macOS Keychain.
Download the self-contained .exe from
Releases, or build
it yourself:
Direct v5.0.1 downloads:
Local Codex Studio is an internal experiment under active development and is not available as a public download yet.
cd tray-app
powershell -ExecutionPolicy Bypass -File build.ps1
For the native C# Windows interface, use C# v5.0.2. It bundles .NET only; keep the repository server and Node.js installed. Electron packages above remain the older cross-platform release, not this update.
Connect To ChatGPT Web
- Start the local server first and verify the dashboard.
- Put the OpenAI tunnel client in
tools/tunnel-client.exeon Windows ortools/tunnel-clienton macOS/Linux. - Create or choose a tunnel in ChatGPT/OpenAI.
- Provide the same Tunnel ID during
scripts/lca setup. - Use a Runtime API key for
CONTROL_PLANE_API_KEY. Do not use an Admin key. - If your organization requires it, provide the OpenAI Organization ID.
- Start the CLI or tray app and keep it running while ChatGPT uses the tools.
The local URL http://127.0.0.1:8787/mcp is for your machine. ChatGPT Web must
connect through the secure tunnel, not by pasting the local loopback URL.
Customer Network Diagnostics
If the customer says it works on mobile hotspot but fails on office/internal network, ask them to run Network Doctor on the failing network and send the redacted report.
Basic check:
node scripts\network-doctor.mjs
Tunnel smoke test:
$env:CONTROL_PLANE_API_KEY="sk-proj-..."
node scripts\network-doctor.mjs --tunnel-bin "tools\tunnel-client.exe" --tunnel-id "tunnel_..." --organization-id "org_..." --duration 30
Guide: docs/NETWORK_DOCTOR.md.
For a full, redacted support bundle a customer can send back to the developer:
node scripts\support-report.mjs
scripts\lca.cmd support
It prints a compact summary and writes a redacted support-report.txt
(versions, Node, ports 8787/8790, tunnel-client presence, health, recent
errors). It never requires the proprietary tunnel client and never writes keys
or tokens.
Stable Anti-Lag Workflow
v4.4.3 reduces ChatGPT Web lag by keeping default tool outputs smaller and steering AI agents toward targeted reads instead of dumping huge logs, diffs, base64, or icon inventories into the chat.
read_filedefault output is tighter, whilemax_charscan still be raised for a specific targeted read.run_commanddefault output is tighter, whilemax_output_chars,head_lines, andtail_linescan still be used for focused debugging.read_manyhas a smaller default batch cap so one call cannot flood a long ChatGPT thread.- Dashboard tips now surface
large_payloadsandcommand_heavyas signals to switch to line ranges, globs, and compact summaries. - Customer prompts now explicitly tell AI agents not to paste full logs, diffs, base64, image/icon inventories, or generated reports into chat.
For large tasks, start a fresh ChatGPT thread, use workspace_snapshot first,
read only the line ranges you need, and keep raw artifacts as local files or
support reports.
ChatGPT Web Compact & Resume
Local Coding Agent cannot read or replace ChatGPT Web's internal context window. Instead, v4.4.3 provides a safe MCP handoff that feels similar in use:
- In the long chat, call
context_status, thencompact_context. - The server stores a local structured checkpoint with the goal, decisions, constraints, completed work, open tasks, next action, Git state, and recent test evidence.
- Open a fresh chat and call
resume_contextfirst. - Verify
workspace_infoandgit_status, then continue the recorded action.
Generate the copy-paste prompts with:
node scripts\local-coding-agent.mjs prompt compact
node scripts\local-coding-agent.mjs prompt resume
Only MCP tool-traffic pressure is estimated; it is not ChatGPT's actual token
or context-window usage. Checkpoints stay under server/data/, which is ignored
by Git, and use best-effort credential redaction. Never submit secrets or full
source/log dumps to compact_context. See
docs/CHATGPT_WEB_COMPACT.md.
Features
| Area | What it does |
|---|---|
| Workspace | workspace_info, workspace_snapshot, workspace_doctor, repo_map |
| Files | list_files, read_file, read_many, write_file, replace_in_file, apply_patch |
| Search | search_text, find_files, repo_symbols, important_files |
| Commands | run_command, run_commands, proc_start, proc_output, quality_gate |
| Git | git_status, git_diff, review_diff, guarded git helper |
| Safety | policy_status, explain_risk, request_approval, request_approval_batch |
| Permissions | named multi-root profiles, per-path rights, deny rules, temporary grants |
| Browser preview | one paired/armed Chrome tab through bounded browser_* tools |
| Windows power | opt-in system_power_status, schedule_system_shutdown, cancel_system_shutdown |
| Dashboard | health score, latency, tool calls, approvals, file viewer, git diff |
| Workflow | context_status, compact_context, resume_context, notes, session reports, task state, decision log, skills |
Shipped skills can be checked with:
scripts\lca.cmd skills list
scripts\lca.cmd skills validate
Safety Defaults
Recommended defaults:
AGENT_MODE=safe
AGENT_POLICY=balanced
DASHBOARD_PORT=8790
Security notes:
- File tools are confined to configured workspace roots.
- Command execution is not an OS sandbox.
- Use
safemode for customers unless they explicitly acceptfull. - Use
balancedpolicy so risky actions require local approval. - Use
MCP_AUTH_TOKENwhen exposing the server through a tunnel. - Do not commit API keys, tunnel profiles, generated config, or logs with secrets.
- Use a VM/container for untrusted repositories.
Troubleshooting
| Problem | What to check |
|---|---|
node not found |
Install Node.js 18+ and reopen the terminal. |
server/node_modules is missing |
Run scripts\lca.cmd install or bash scripts/lca install. |
| Dashboard offline | Check http://127.0.0.1:8787/healthz, then run status or doctor. |
| Port conflict | Change --port or --dashboard-port; do not use 8788 for the dashboard. |
tunnel-client not found |
Put the user-supplied tunnel client in tools/ or set its path in setup. |
tunnel_active_organization_required |
Provide the OpenAI Organization ID that owns the tunnel. |
401 Unauthorized |
Use a Runtime API key, not an Admin key; check organization/project access. |
poll failed or forcibly closed |
Run Network Doctor; office firewall/proxy may block tunnel/WebSocket traffic. |
| Edits appear in the wrong repo | Run workspace_info and confirm the exact workspace path. |
Development
Server tests:
cd server
npm run test:agent
npm run test:pro
npm run test:security
npm run test:hardening
npm run eval
Tray app build:
cd tray-app
dotnet build LocalCodingAgentTray.csproj -c Release
License And Trademark
The Local Coding Agent Community Edition code is licensed under AGPL-3.0-or-later. Copyright © 2026 Long Nguyễn (@LongNgn204).
The code license does not grant permission to present a fork, service, or modified binary as an official Local Coding Agent release. See NOTICE.md, TRADEMARKS.md, and BRAND-GUIDELINES.md. The owner can use the trademark registration checklist to prepare a formal filing. Local Coding Agent is an independent project and is not an official product of OpenAI or any other MCP client vendor.
Tiếng Việt
Cài Đặt Bằng AI Agent Của Bạn
Cách dễ nhất là để một AI coding agent mạnh làm phần setup giúp bạn. Copy prompt này vào Codex, Claude Code, Cursor hoặc một local coding agent khác:
Hãy cài Local Coding Agent trên máy của tôi.
Repository:
https://github.com/LongNgn204/local-coding-agent
Mục tiêu:
Clone repo, cài dependency, cấu hình workspace, khởi động MCP server và kiểm tra
dashboard.
Quy tắc:
- Không tự cài dependency hệ thống nếu chưa hỏi tôi trước.
- Không tải, commit hoặc phân phối lại tunnel-client. Tôi sẽ tự cung cấp nếu cần.
- Không commit secret, API key, Tunnel ID, local config hoặc generated profile.
- Mặc định dùng mode=safe và policy=balanced.
- Ưu tiên dùng universal CLI. Chỉ dùng Windows tray app nếu tôi yêu cầu GUI.
- Nếu lỗi, hãy báo đúng lỗi và lệnh tiếp theo để sửa.
Các bước:
1. Clone https://github.com/LongNgn204/local-coding-agent nếu repo chưa tồn tại.
2. Đi vào thư mục repo và đọc AGENTS.md; làm theo đúng hướng dẫn.
3. Kiểm tra Node.js version >= 18 (node -v).
4. Cài đặt bằng:
- Windows: scripts\lca.cmd install
- macOS/Linux: bash scripts/lca install
5. Chạy setup bằng:
- Windows: scripts\lca.cmd setup
- macOS/Linux: bash scripts/lca setup
6. Hỏi tôi thư mục workspace mà AI được phép truy cập.
7. Nếu tôi muốn kết nối ChatGPT Web qua tunnel, hãy hỏi tunnel-client path,
Tunnel ID, Organization ID nếu cần, và Runtime API key.
8. Khởi động bằng:
- Windows: scripts\lca.cmd start
- macOS/Linux: bash scripts/lca start
9. Kiểm tra:
- http://127.0.0.1:8787/healthz trả về status ok
- http://127.0.0.1:8790/ui mở được dashboard
- Chạy bộ test tool: trong thư mục server/ chạy npm run test:agent
- lệnh status chạy được
10. Giải thích kết quả cho tôi bằng lời dễ hiểu: cái gì đạt, cái gì lỗi, và lệnh
tiếp theo chính xác để sửa phần lỗi.
11. Báo lại MCP URL, Dashboard URL, workspace path, mode, policy và trạng thái tunnel.
Các prompt khác nằm ở docs/AI_AGENT_SETUP_PROMPT.md. Nếu đã cài rồi và muốn update, dùng docs/CUSTOMER_UPDATE_PROMPT.md.
Sơ Đồ Setup
flowchart TD
A["Dán prompt vào AI coding agent"] --> B["Agent kiểm tra Node.js >= 18"]
B --> C["Agent clone LongNgn204/local-coding-agent"]
C --> D["Agent chạy scripts/lca install"]
D --> E["Agent chạy scripts/lca setup"]
E --> F["Bạn cung cấp workspace và tunnel nếu cần"]
F --> G["Agent chạy scripts/lca start"]
G --> H["Agent kiểm tra /healthz và /ui"]
H --> I["Kết nối ChatGPT hoặc MCP client khác"]
Bắt Đầu Nhanh Thủ Công
Windows:
git clone https://github.com/LongNgn204/local-coding-agent.git
cd local-coding-agent
scripts\lca.cmd install
scripts\lca.cmd setup
scripts\lca.cmd start
macOS / Linux:
git clone https://github.com/LongNgn204/local-coding-agent.git
cd local-coding-agent
bash scripts/lca install
bash scripts/lca setup
bash scripts/lca start
Mở:
http://127.0.0.1:8790/ui
Các lệnh hữu ích:
status xem MCP URL, Dashboard URL và trạng thái tiến trình
doctor kiểm tra setup local và các thiếu sót thường gặp
update fetch/pull main an toàn, cài lại dependency, validate skill
skills liệt kê hoặc validate skill pack đi kèm
open mở dashboard local
stop dừng server và tunnel do CLI khởi động
logs xem log launcher
url in MCP URL
Local Coding Agent MCP questions
What can the AI agent do with this server?
The AI agent can read files, edit code, run checks, inspect git, and view live health metrics from a local dashboard.
Is this tool safe to use?
The tool can run commands on your computer and is not an OS sandbox, so you should only connect workspaces you trust.
Does it support Windows, macOS, and Linux?
Yes, it supports Windows, macOS, and Linux platforms.