- Start the stack with
docker compose up -d - Open the UI on
http://localhost:3000 - Complete setup with
SETUP_BOOTSTRAP_TOKEN - Confirm the MCP endpoint is reachable at
http://localhost:4000/mcp - For remote servers: generate an MCP API key from the UI (Settings → API Keys)
codex mcp add context-forge --url http://localhost:4000/mcpAdd to ~/.codex/config.toml or project-level Codex config:
[[mcp_servers]]
name = "context-forge"
transport = "http"
url = "http://localhost:4000/mcp"For remote servers, include the X-API-Key header with your forge_ API key:
codex mcp add context-forge --url https://your-server.example.com/mcp \
--header "X-API-Key: forge_YOUR_API_KEY"Or in ~/.codex/config.toml:
[[mcp_servers]]
name = "context-forge"
transport = "http"
url = "https://your-server.example.com/mcp"
[mcp_servers.headers]
X-API-Key = "forge_YOUR_API_KEY"Codex reads AGENTS.md from the project root.
cp templates/AGENTS.md /path/to/your/project/AGENTS.md- The UI/API is protected by admin auth after setup
- For remote servers, always use an MCP API key (
X-API-Keyheader) - API keys can be managed from the UI under Settings → API Keys
- Alternatively, prefer a VPN, SSH tunnel, or private network for MCP access