Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Codex Free

БесплатноНе проверен

An MCP server that bridges ChatGPT Web Pro to local tools, enabling file read/write, shell command execution, git operations, and search within a specified proj

GitHubEmbed

Описание

An MCP server that bridges ChatGPT Web Pro to local tools, enabling file read/write, shell command execution, git operations, and search within a specified project directory.

README

Codex Free (but you still have to buy ChatGPT Plus)

A local MCP bridge server that lets ChatGPT Web Pro call tools on your machine: read/write files, run shell commands, git operations, search. Built with Bun + TypeScript, using @modelcontextprotocol/sdk over Streamable HTTP.

ChatGPT talks to a public tunnel URL, which forwards to this server running on your machine, which operates on a project directory you choose.

Architecture

flowchart LR
    ChatGPT["ChatGPT Web Pro"]
    Tunnel["Public Tunnel\n(ngrok / cloudflared)"]
    Server["Codex Free\nMCP Bridge\n:3000"]
    Tools["Tool Registry"]

    FS["read_file\nwrite_file\nlist_directory\ntree"]
    Search["glob\ngrep"]
    Shell["run_command"]
    Git["git_status\ngit_push\ngit_commit\ngit_log"]
    WorkDir[("Project\nDirectory")]

    ChatGPT -- "HTTPS" --> Tunnel
    Tunnel -- "HTTP\n/mcp" --> Server
    Server -- "Streamable HTTP\n(MCP Protocol)" --> Tools

    Tools --> FS
    Tools --> Search
    Tools --> Shell
    Tools --> Git

    FS --> WorkDir
    Search --> WorkDir
    Shell --> WorkDir
    Git --> WorkDir

Quick start

bun install
bun run main.ts --work-dir /path/to/your/project

Server starts on http://localhost:3000. MCP endpoint is /mcp.

CLI flags

Flag Required Default Description
--work-dir Yes - Project directory the tools operate on
--port No 3000 Server port
--api-key No - Bearer token for auth
--config No ./codex.config.json Config file path

Tools

Tool Description
read_file Read a file's contents, with optional line offset/limit
write_file Write content to a file, creating parent directories if needed
run_command Execute a command in the work directory (allowlist-restricted)
git_status Show git status, parsed into changed files with status codes
git_push Push commits to a remote
git_commit Create a commit, optionally staging all tracked changes
git_log Show recent commit history
glob Find files matching a glob pattern
grep Search file contents by regex, with optional context lines
list_directory List files and directories with name, type, and size
tree Print directory tree as ASCII art

All paths are resolved relative to --work-dir.

Config file

codex.config.json in the project root, or pass a custom path with --config:

{
  "allowedCommands": ["bun", "npm", "npx", "node", "git", "python", "pip", "cargo", "make"],
  "port": 3000,
  "tree": {
    "defaultDepth": 3,
    "ignore": ["node_modules", ".git", "dist", ".next", "__pycache__", ".venv", "venv"]
  },
  "command": {
    "defaultTimeout": 30000,
    "maxTimeout": 120000
  }
}

CLI flags override values from the config file.

Connecting to ChatGPT

  1. In ChatGPT, go to Settings > Security and login and enable Developer mode.
  2. Start the server: bun run main.ts --work-dir /path/to/your/project
  3. Expose it with a tunnel (ngrok, Cloudflare Tunnel, etc.):
    ngrok http 3000
    
  4. In ChatGPT, go to Plugins > + New Plugin.
  5. Set the Server URL to the tunnel URL with /mcp appended, e.g. https://<your-tunnel>/mcp.
  6. Set Authentication to "No Auth".
  7. After creating the plugin, go to Permissions and set it to Allow all actions so ChatGPT can call tools without asking for confirmation each time.

ChatGPT Plugins only support OAuth, No Auth, and Mixed. The --api-key option is for non-ChatGPT clients or tunnel-level auth. When using ChatGPT, secure access through your tunnel provider instead (e.g. ngrok IP restrictions, Cloudflare Access).

Security

  • Path traversal prevention: every filesystem tool resolves paths through a guard that rejects anything outside --work-dir.
  • Command allowlist: run_command only runs binaries listed in allowedCommands; everything else is rejected.
  • Optional bearer token auth: set --api-key to require an Authorization: Bearer <key> header on all requests (except /health). Useful for non-ChatGPT clients. ChatGPT Plugins do not support simple bearer token auth.

This server has no sandboxing beyond the above. Anyone with access to the tunnel URL can read, write, and execute commands in your work directory. Don't expose it without tunnel-level access control, and don't point it at directories you don't trust ChatGPT with.

Dev commands

bun run dev        # watch mode
bun test           # tests
bunx tsc --noEmit  # type check

License

MIT - see LICENSE.

from github.com/hypnguyen1209/codex-free

Установка Codex Free

У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.

▸ github.com/hypnguyen1209/codex-free

FAQ

Codex Free MCP бесплатный?

Да, Codex Free MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Codex Free?

Нет, Codex Free работает без API-ключей и переменных окружения.

Codex Free — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Codex Free в Claude Desktop, Claude Code или Cursor?

Открой Codex Free на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Compare Codex Free with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории development