ChatGPT-compatible MCP control plane
local-shell-mcp¶
Give your AI assistant a controlled shell, a real workspace, Git, browser automation, file sharing, and remote-worker access without leaving the chat.
Real coding environment¶
Run tests, inspect repositories, patch files, operate Git, and keep an audit trail from one MCP endpoint.
Runtime and client layers¶
Choose a runtime such as Docker, VS Code extension, binary, Python, or stdio, then connect ChatGPT or another MCP client separately.
Remote machine control¶
Attach NAT, firewall, or HPC machines through outbound worker connections without opening SSH ports.
What it provides¶
local-shell-mcp exposes a controlled local or container workspace to ChatGPT and other MCP clients. It provides shell, persistent shell, filesystem, search, patch, Git, Playwright, audit, todo, tokenized file-link, and remote-worker tools through a ChatGPT-compatible MCP server with OAuth support.
Use it when the AI needs to inspect a repository, run tests, edit files, operate Git, collect browser evidence, produce downloadable artifacts, or control a remote machine that can only connect outbound to the control server.
Architecture¶
Runtime layer: Docker / VS Code extension / binary / Python / stdio
Exposure layer: localhost / HTTPS proxy / tunnel / stdio pipe
Client layer: ChatGPT / generic MCP client / editor helper
Controlled workspace: /workspace or configured workspace root
Optional remote workers: outbound machine connections
The intended isolation boundary is the container or VM running the service.
Start by scenario¶
| Scenario | Start here | Why |
|---|---|---|
| First public ChatGPT deployment | Quickstart | Docker Compose path with OAuth and /mcp setup |
| Choosing the runtime layer | Runtime choices | Explains Docker, VS Code, binary, Python, and stdio as separate runtime options |
| Adding ChatGPT as a client | ChatGPT connector | Endpoint, OAuth, first safe prompt, tool discovery |
| Running from VS Code | VS Code extension runtime | Editor-launched runtime and host-safety notes |
| Learning how to operate the toolset | Usage patterns | Prompt templates and tool-choice guidance |
| Understanding every tool | Tools reference | Detailed purpose, inputs, returns, combinations, and notes for every tool |
| Connecting an HPC, NPU/GPU, or server node | Remote workers | Outbound worker join flow and remote tool usage |
| Sharing generated files | File links | Tokenized download URLs with TTL and revocation |
| Hardening a deployment | Security | Isolation, OAuth, workspace scope, and audit logs |
Main tool families¶
| Family | Examples | Use for |
|---|---|---|
| Shell and Python | run_shell_tool, run_python_tool, shell_start |
Builds, tests, scripts, long-running processes |
| Files and search | tree_view, grep_search, read_file, apply_patch |
Repository inspection and precise edits |
| Git | run_shell_tool, run_shell_tool, run_shell_tool, run_shell_tool |
Reviewable source-control workflows |
| Browser | browser_capture_tool, browser_get_text_tool, playwright_run_script_tool |
UI checks, screenshots, rendered docs, page text |
| File links | create_file_link, revoke_file_link |
Downloading generated artifacts from chat |
| Remote workers | remote_invite, run_shell_tool, transfer_path |
Machines behind NAT, firewalls, or cluster login flows |
Typical workflows¶
Coding with ChatGPT¶
- Start a runtime such as Docker Compose, VS Code extension, binary, or Python in a dedicated workspace.
- Expose the HTTP runtime if ChatGPT needs network access.
- Add the public
/mcpendpoint to ChatGPT. - Ask ChatGPT to inspect the repository and run read-only checks first.
- Let it patch files, run tests, review diffs, commit, and push when approved.
- Review the audit log when the task involves file links or remote systems.
Remote HPC or accelerator host¶
- Create a one-time remote worker invite.
- Paste the generated command on the remote host.
- Use normal tools with
machine; run Git throughrun_shell_tooland transfer paths withtransfer_path. - Revoke the worker after the task.
Artifact generation¶
- Let the AI generate a file under
/workspace. - Create a tokenized file link with TTL/download limits.
- Share the link in chat.
- Revoke it when done.
Language¶
This site is built with the native MkDocs i18n plugin. Use the language selector in the header to switch between English and translated pages. Pages without a translated version fall back to English.