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.1.0.tar.gz (13.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.1.0-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: contextforge_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 13.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.1.0.tar.gz
Algorithm Hash digest
SHA256 62a487fa843ca572fd608cdcdd8f7aacd3f032af3b6b71ce88bb19da427fa1e5
MD5 2d22b0ca67ac0f1bac7cf90058d0939a
BLAKE2b-256 61f08e25b964f9db61ed861b2b27f31717461c6047607791c3e23cc71d7f84aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextforge_mcp-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for contextforge_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 51834b6da576dd38a39a565ad2a0e4e038c5d00d267e95d4e994b66323e373fc
MD5 2fc8e56440117a6976e6881fb96e948c
BLAKE2b-256 1197c0b9f1cf22eb562252faab2f91573c9ce944138b427c9c25f5623f2308ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextforge_mcp-0.1.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