| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A local-first, agent-agnostic Model Context Protocol (MCP) server for workspace indexing, retrieval, planning, and review workflows, with a setup path that works well for Codex and other OpenAI-powered agents.
New here? Start with the beginner quick start below.
If you want client-specific setup help, see docs/MCP_CLIENT_SETUP.md.
If you are on Windows, see docs/WINDOWS_DEPLOYMENT_GUIDE.md.
Historical docs live in docs/archive/INDEX.md if you need the old planning and migration notes.
If you want to see what this project demonstrates for OpenAI-style agent workflows, start here:
Fastest demo path:
npm install
npm run build
codex mcp add context-engine -- node dist/index.jsThen in Codex, confirm the tools are visible and try:
use semantic_search to find authentication logic
If you just want to get Context Engine running locally, follow these steps:
npm installnpm run buildnpm run verifynode dist/index.jsBy default, Context Engine now resolves the workspace like this:
On first run, if the index is missing or stale, startup can kick off background indexing automatically. The server still starts first, but the first query may be slower until indexing finishes.
The server speaks MCP over stdio, so most clients can launch it with the same command.
Use this mental model:
Codex CLI
codex mcp add context-engine -- node dist/index.jsWindows example
codex mcp add context-engine -- node "D:\GitProjects\context-engine\dist\index.js"Claude Code, Claude Desktop, Cursor, Antigravity
See docs/MCP_CLIENT_SETUP.md for copy-paste config examples for each client.
Ready-to-use sample config files live in examples/mcp-clients/. Optional skill packages for AI workflows live in examples/skills/.
Paste this into the agent if you want it to do the setup for you:
Set up Context Engine MCP for this workspace.
- Run npm install and npm run build.
- Register the MCP server once with node dist/index.js.
- Confirm the client launches the MCP server from the repo I am working in.
- If the client launches from the wrong folder, add --workspace <absolute-path-to-workspace> as an override.
- Confirm the server appears in the client and that tool_manifest() or an equivalent tool list works.
- Run one quick retrieval test, for example semantic_search, to confirm the connection is working.
- If startup says the workspace is unindexed or stale, let the background indexing finish or run index_workspace manually.
If the client is Codex CLI, use:
codex mcp add context-engine -- node dist/index.js
When the server starts without --workspace, it tries to be repo-aware:
If startup auto-index is enabled, missing or stale workspaces start background indexing automatically.
Operator override:
This implementation follows a clean 5-layer architecture:
┌────────────────────────────┐
│ Coding Agents (Clients) │ Layer 4: Codex, Claude, Cursor, etc.
│ Codex | Claude | Cursor │
└────────────▲───────────────┘
│ MCP (tools)
┌────────────┴───────────────┐
│ MCP Interface Layer │ Layer 3: server.ts, tools/
│ (standardized tool API) │
└────────────▲───────────────┘
│ internal API
┌────────────┴───────────────┐
│ Context Service Layer │ Layer 2: serviceClient.ts
│ (query orchestration) │
└────────────▲───────────────┘
│ domain calls
┌────────────┴───────────────┐
│ Retrieval + Review Engine │ Layer 1: local-native runtime
│ (indexing, retrieval) │
└────────────▲───────────────┘
│ storage/state
┌────────────┴───────────────┐
│ Local State / Artifacts │ Layer 5: workspace state + evidence
│ (index, cache, receipts) │
└────────────────────────────┘
The server exposes tools across these areas:
Use tool_manifest() in the MCP server to inspect the current tool inventory directly.
npm install
npm run build
npm run verify
node dist/index.jsOptional validation commands:
npm run ci:check:no-legacy-provider
npm run ci:check:legacy-capability-parity
npm run ci:check:legacy-capability-parity:strict| Back | FazBrowse Home | New Git URL |