Skip to main content

MCP orchestrator: codebase-memory-mcp + headroom + Spec Kit

Project description

contextforge-mcp

MCP orchestrator combining codebase-memory-mcp + headroom + Spec Kit into a single pipeline.

Agent (Claude Code / Cursor / Codex)
  │
  ▼
contextforge-mcp  ←── single MCP server
  │
  ├── codebase-memory-mcp  (knowledge graph: 99% fewer retrieval tokens)
  ├── headroom             (compression: 60–95% fewer prompt tokens)
  └── Spec Kit             (SDD workflow: spec → plan → tasks → implement)

Install

# Prerequisites
npm install -g codebase-memory-mcp
pip install "headroom-ai[all]"
pip install spec-kit

# Install contextforge-mcp
pip install contextforge-mcp

Setup

# Health check
contextforge-mcp doctor

# Configure Claude Code (writes .mcp.json)
contextforge-mcp install --target claude

# Configure Spec Kit extension
contextforge-mcp install --target speckit

# Both at once
contextforge-mcp install --target all

Usage in Claude Code

# 1. Index the codebase (once per session)
cbm_index_repository(repo_path=".")

# 2. Query the graph (instead of grep/read)
cbm_search_graph(name_pattern=".*Payment.*")
cbm_trace_path(function_name="processPayment")
cbm_get_architecture()

# 3. Check token savings
cf_stats()

Spec Kit workflow

/speckit.constitution
/speckit.specify
/speckit.cf-analyze      ← analyze codebase before planning
/speckit.plan
/speckit.tasks
/speckit.cf-index        ← index before implementing
/speckit.cf-implement    ← graph-aware implementation
/speckit.cf-stats        ← token savings report

Tools (23 total)

Prefix Count Description
cbm_* 14 codebase-memory-mcp graph tools
cf_* 9 ContextForge meta + Spec Kit tools

Environment variables

Variable Default Description
CBM_BINARY_PATH auto Path to codebase-memory-mcp binary
CF_MODEL claude-sonnet-4-6 Model hint for headroom
CF_LOG_LEVEL WARNING Log level

Credits

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

contextforge_mcp-0.2.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contextforge_mcp-0.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file contextforge_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: contextforge_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for contextforge_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21755b4ba70c2a744150fd479f8667897a10b08f030cd1f2aba90f40806fcd04
MD5 2b55a8857c1a5b508919699c7a3de681
BLAKE2b-256 a9a2feb56840d6c861c9b691f2c0ac3e4167d37072da922b25aa08227f50f7f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextforge_mcp-0.2.0.tar.gz:

Publisher: publish.yml on capatinore/contextforge-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file contextforge_mcp-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for contextforge_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14a34cc2ad4718454f047812cb5ccfb76aa147f8e1c2ce85324a8b1749686a66
MD5 98c67ef108164f0e474f0aac706cec32
BLAKE2b-256 efaa92cd8476c88515c0c2a9f2c9987409ffffffa99c2db7b1e06f3125d23df7

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextforge_mcp-0.2.0-py3-none-any.whl:

Publisher: publish.yml on capatinore/contextforge-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page