Turn a local project folder into a governed MCP workspace for AI coding agents.
FolderForge is a local-first MCP server and CLI. Point it at a project and an MCP client can inspect files, search code, run governed commands, use Git and build tools, and optionally connect browser, database, plugin, workflow, and Godot capabilities. Path restrictions, risk policy, approvals, secret redaction, rate limits, and audit logging remain enforced on the server side.
Requirements: Node.js 22 or 24 and an MCP client that supports stdio.
Check the published CLI:
npx -y @musashishao/folderforge --version
npx -y @musashishao/folderforge --helpInitialize an explicit safe profile, inspect it, and generate client config:
npx -y @musashishao/folderforge init --project . --profile develop
npx -y @musashishao/folderforge doctor --project .
npx -y @musashishao/folderforge connect cursor --project . --writeProfiles are explicit: observe is read-only, develop uses bounded mutations
and exact approvals, and trusted-automation requires the operator to accept a
broader local automation boundary. Ordinary server startup never creates or
overwrites configuration.
Your MCP client then starts FolderForge over stdio. To run the server manually:
npx -y @musashishao/folderforge --project . --stdioFor a private workstation or local project, provision an OpenAI tunnel and runtime API key once, then run:
export CONTROL_PLANE_API_KEY='sk-...'
folderforge connect chatgpt --openai-tunnel \
--oauth \
--tunnel-id tunnel_0123456789abcdef0123456789abcdef \
--project /absolute/path/to/projectWith --oauth, FolderForge reuses its Auth0/DCR lifecycle, starts a loopback-only OAuth resource server behind a separate per-run tunnel guard, verifies local discovery and the OAuth challenge, and supervises both processes until Ctrl+C. Omit --oauth to retain legacy static-token mode. After the first successful OAuth run, the same project normally needs only:
export CONTROL_PLANE_API_KEY='sk-...'
folderforge connect chatgpt --openai-tunnelThe API-key value is never persisted or placed in process argv. See OpenAI Secure MCP Tunnel.
Replace the project path with an absolute path:
{
"mcpServers": {
"folderforge": {
"command": "npx",
"args": [
"-y",
"@musashishao/folderforge",
"--project",
"/absolute/path/to/project",
"--stdio"
]
}
}
}Add this to ~/.codex/config.toml:
[mcp_servers.folderforge]
command = "npx"
args = [
"-y",
"@musashishao/folderforge",
"--project",
"/absolute/path/to/project",
"--stdio",
]Create an MCP server using command npx and these arguments:
-y
@musashishao/folderforge
--project
/absolute/path/to/project
--stdio
Use an absolute project path because desktop clients may start servers from an unexpected working directory.
npm install -g @musashishao/folderforge
folderforge --version
folderforge doctor
folderforge --project /absolute/path/to/project --stdioA global install is convenient when several MCP clients share the same Node
installation. npx is the simpler default because it does not require a global
binary.
Browser downloads are deliberately excluded from package installation. Set up the package-compatible Chromium runtime explicitly:
folderforge setup browser --dry-run --json
folderforge setup browser
folderforge doctorOn supported Linux hosts that also need operating-system dependencies:
folderforge setup browser --with-depsFolderForge resolves the Playwright runtime from its installed dependency tree;
the built-in adapter does not launch a mutable npx package. If Playwright or
Chromium is unavailable, FolderForge keeps non-browser tools usable and does not
advertise unusable browser_* wrappers. See
Playwright setup and diagnostics.
- Workspace: activate one or more project roots and inspect health.
- Files and code: governed reads, writes, searches, diffs, code context, and transactional patches.
- Commands and builds: shell, managed processes, tests, builds, formatting, coverage, and package-manager operations.
- Git: status, diff, history, branches, commits, fetch/pull/push under policy.
- MCP composition: namespace or facade child MCP servers and local plugins, with optional digest-pinned Docker/Podman isolation.
- Workflows: persistent role-scoped plans with checkpoints and bounded evidence.
- Mission Control: local active-call/session/task/process/isolation view with persistent write freeze and governed containment actions.
- Durable verification: owner-bound typecheck/lint/test/build reports with explicit passed, failed, skipped, and unavailable evidence across restart.
- Artifacts and UI quality: content-addressed evidence, screenshot baselines, pixel comparison, bounded accessibility/contrast audit, device/network emulation, and governed composed UI flows.
- Distributed workers: TLS-gated remote worker API/CLI with short-lived identity, encrypted jobs, leases/fencing, artifact transfer, no-replay blocking, and signed completion evidence.
- Verified marketplace: Ed25519 publishers, immutable signed entries, SBOM/provenance binding, quarantine scans, moderation, and disabled installation.
- Optional integrations: Playwright browser tools, databases, OAuth/ChatGPT, and a shipped Godot 4 addon.
The exact CLI and tool reference lives in the documentation index rather than this landing page. Operational guides:
- Browser emulation and flows
- Distributed workers
- Verified marketplace
- Benchmark operations
- Beta evidence and graduation
FolderForge treats the agent as capable but not fully trusted.
- Paths must remain inside configured workspace roots and pass denied-glob, symlink/junction, and protected-directory checks.
- Commands and tools are classified by risk and evaluated under
readonly,safe,dev, ordangerpolicy. - High-risk and critical actions may require a separate administrator approval. Agent MCP clients cannot approve their own requests or elevate policy.
- Arguments, output, approvals, diagnostics, and audit records use bounded secret redaction.
- HTTP defaults to loopback. Non-loopback use requires explicit authentication.
--policy danger does not by itself bypass critical approvals. The
--dangerously-allow-critical escape hatch is for isolated development only.
Read Security and the technical security model
before exposing FolderForge beyond a trusted local machine.
Stdio is the recommended local MCP transport. HTTP is useful for a fixed trusted client or an OAuth deployment.
Generate a strong token and start a loopback endpoint:
TOKEN="$(openssl rand -hex 32)"
folderforge --project . --http --auth token --require-auth \
--host 127.0.0.1 --port 7331 --token "$TOKEN"Call it with a bearer token:
curl -sS -X POST http://127.0.0.1:7331/mcp \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"example","version":"1.0.0"}}}'Static credentials never act as OAuth credentials. OAuth mode never falls back
to X-API-Key. For ChatGPT/Auth0 and external authorization-server setup, use:
Clients with a tool-count limit can select a preset:
folderforge --project . --stdio --tools-preset vibe
folderforge --project . --stdio --tools-preset vibe-lite
folderforge --project . --stdio --tools-preset readonly
folderforge --project . --stdio --tools-preset fullYou can also enable groups or individual tools. Run folderforge --help and see
Tools reference. Tool counts are intentionally not hard-coded
here because integrations and generated surfaces can change.
The npm package includes addons/folderforge_bridge, the Godot 4 runtime bridge
used by FolderForge's live-game tools. Copy that directory into a Godot project,
enable the plugin, and follow the Godot guide. The bridge
binds to loopback by default and does not replace FolderForge policy or approval
checks.
git clone https://github.com/roronoazoroshao369/FolderForge.git
cd FolderForge
npm ci --ignore-scripts
npm run build
npm test
node dist/main.js --versionDuring development:
npm run dev -- --project . --stdioRun the complete local release gate:
npm run release:checkA local pass is not proof that another operating system passed. Platform claims must come from CI or direct evidence for the exact revision.
Start at docs/README.md.
- Getting started and compatibility
- Tools and adapters
- Security
- Architecture
- Migration
- Release process
- Contributing
- Support
FolderForge supports Node.js 22 and 24. The required CI matrix covers Ubuntu, macOS, and Windows. See Compatibility for the current contract and evidence rules.
Issues and pull requests are welcome. Read CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SUPPORT.md first. Security vulnerabilities must follow SECURITY.md, not a public issue.
Apache-2.0. See LICENSE.