Kastor
Lets ChatGPT or MCP clients work with files on your machine, with tools for reading, editing, searching, git operations, and safety checks.
README
Kastor
Kastor lets ChatGPT, or another MCP client, work with files on your machine.
You choose the folders it can touch. The client can then read files, edit code, run checks, inspect git changes, and use a few Codex-like workflow tools.
Kastor is not another AI agent. It is the local tool server. The thinking still happens in ChatGPT or the MCP client you connect.
It is also not Codex itself. Codex is an agent experience with its own runtime. Kastor is the bridge that gives an MCP-capable client controlled access to your local files, shell checks, git state, and workflow helpers.

flowchart TD
Client["ChatGPT / MCP client"] --> Auth["Owner password approval"]
Auth --> Server["Kastor MCP server"]
Server --> Roots["Allowed project folders"]
Server --> Files["read / write / edit / apply_patch"]
Server --> Search["grep / glob / ls"]
Server --> Git["git status / diff / commit prep"]
Server --> Checks["run checks / self test"]
Server --> Plan["task plan / checkpoint / review / resume"]
Server --> Guard["rule check"]
Server --> Screen["optional Windows computer use"]
First Run
Requirements:
- Node.js
>=20.12 <27 - npm
- Git
- Bash. On Windows, Git Bash is enough.
- A public HTTPS tunnel if ChatGPT needs to reach this PC
Install from the current GitHub release:
npm install -g https://github.com/mno-d/kastor/releases/download/v1.0.10/mnod-kastor-1.0.10.tgz
kastor setup-guide
kastor init
kastor doctor
kastor doctor --json
kastor serve
From a clone:
npm install
npm run build
node dist/cli.js setup-guide
node dist/cli.js init
node dist/cli.js doctor
node dist/cli.js doctor --json
node dist/cli.js serve
Windows users can run:
.\scripts\bootstrap-windows.ps1 -RunInit
macOS and Linux users can run:
bash ./scripts/bootstrap-unix.sh --init
The MCP endpoint you give to ChatGPT is:
https://your-domain.example.com/mcp
KASTOR_PUBLIC_BASE_URL should be the origin only:
https://your-domain.example.com
Permissions
Start small.
kastor init asks for one of these presets:
project: only the folder you run setup fromprojects: one or more project folderspower: broad access on a private machine
For public examples, use project or projects.
Do not share a setup that allows C:\, /, or your whole home folder. That is
fine for your own private machine if you know what you are doing. It is a bad
default for anyone else.
If you want full-PC access, make it a private-machine choice. Do not put that in a tutorial, template, screenshot, or shared config.
Config Files
Kastor writes local config here by default:
~/.kastor/config.json
~/.kastor/auth.json
Keep auth.json private. It contains the owner password used when a client asks
to connect.
Kastor still accepts old DEVSPACE_* environment variables for compatibility,
but new setups should use KASTOR_*.
Important values:
KASTOR_ALLOWED_ROOTS=/absolute/path/to/your/project
KASTOR_PUBLIC_BASE_URL=https://your-domain.example.com
KASTOR_OAUTH_OWNER_TOKEN=change-me-to-a-long-random-secret
Tunnel
ChatGPT cannot reach 127.0.0.1 on your PC. You need a public HTTPS URL that
forwards to Kastor.
Common choices:
- ngrok
- Cloudflare Tunnel
- Tailscale Funnel
- your own reverse proxy
Point the tunnel to:
http://127.0.0.1:7676
Then run:
KASTOR_PUBLIC_BASE_URL=https://your-domain.example.com node dist/cli.js serve
See docs/tunnels.md for examples.
If this is your first time connecting ChatGPT Web, use docs/chatgpt-web-e2e.md and test with a small folder before opening a real project.
Main Tools
open_workspace: open an allowed project folderread,write,edit,apply_patch: inspect and change filesgrep,glob,ls,size_top: find code and filesgit_status,git_diff,git_stage,git_commit,git_publish: inspect and prepare git workrun_checks,self_test: run verificationtask_plan: save objectives, checkpoints, reviews, resume packets, and summariesrule_check: check risky steps before doing themcomputer_use: optional Windows UI control
Safety
Treat an approved MCP client like a developer sitting at your PC.
- Allow only folders you are willing to expose.
- Review diffs before committing.
- Do not commit
.env,~/.kastor/auth.json, tunnel URLs, or logs. - Keep
KASTOR_ALLOWED_HOSTSspecific. Do not use*outside debugging. - Use a tunnel URL you control.
Before Sharing
Run:
npm run typecheck
npm test
npm run build
npm audit --audit-level=high
kastor public-check
kastor doctor --json
npm pack --dry-run
Check for private data:
git status --short
git grep -n "sk-\\|xoxb\\|ghp_\\|GHp"
Also inspect:
.env~/.kastor/auth.json- logs under
~/.kastor - tunnel URL files
Those files should stay local and untracked.
npm Name
The plain kastor package name has an old unpublished record on npm, so do not
count on it for public publishing.
Use a scoped package name such as:
@mnod/kastor
The command can still be kastor; the npm package name and CLI command do not
have to match.
More Docs
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。