ContextBridge

ContextBridge

context-bridge-mcp•bytijuthomas5

A local-first code retrieval layer that indexes a codebase and exposes MCP tools, letting AI coding agents fetch ranked files, symbols, and dependency chains.

License: Apache License, Version 2.0•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes MCP tools for codebase retrieval, including hybrid context search, location lookup, module summaries, and feature pack retrieval.
  • •Returns a compact, ranked result with owner file, related files, key symbols, and a dependency summary instead of raw source.
  • •Runs as an MCP server over SSE by default, and also supports stdio transport for clients without SSE.
  • •Can optionally pass results through a local AI stage that validates and re-ranks before reaching the cloud AI.

BEST FOR

  • •AI coding agents that need to find the relevant files and symbols for a task without pasting large amounts of source into context.
  • •Answering general questions about how an existing feature or workflow is implemented in a codebase.
  • •Multiple AI clients sharing one running retrieval server rather than each spawning its own process.

ABOUT CONTEXT-BRIDGE-MCP

ContextBridge is cataloged as an MCP server attributed to tijuthomas5. A local-first code retrieval layer that indexes a codebase and exposes MCP tools, letting AI coding agents fetch ranked files, symbols, and dependency chains. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License, Version 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for ContextBridge are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does ContextBridge index raw source code?

No. It indexes Graphify output and behavior docs rather than raw source; you generate Graphify for your project, point the discovery settings at those folders, and re-run setup after each Graphify update.

Does ContextBridge choose the fix or determine root cause?

No. It is described as a codebase routing and retrieval tool, not a reasoning engine: it finds files, symbols, and connections but does not prove causality or choose the fix.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d8349f270e14 · 采集于 2026-11-13 13:24:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

ContextBridge

Why ContextBridge?

Without CB, an AI coding agent either guesses which files are relevant, or you paste entire source files into the chat — burning thousands of input tokens on code that isn't needed.

With CB, the AI calls a single MCP tool and gets back a compact, ranked result: the owner file, related files, key symbols, and a dependency summary — typically a few hundred tokens instead of tens of thousands of lines of raw source.

This isn't limited to bug investigations — the same tool answers general questions about how an existing feature or workflow is implemented.

Without CBWith CB
Paste 10–50 raw files into contextCB returns the 3–5 files that actually matter
AI guesses which code is relevantResult is grounded in your real codebase structure
High token cost, noisy contextLow token cost, focused context
Hallucinated file paths and method namesExact file paths, symbols, and line hints

The optional local AI analysis stage further compresses the result before it reaches your cloud AI — so you pay even less.

Scope note: ContextBridge is a codebase routing and retrieval tool, not a reasoning engine — it finds the right files, symbols, and connections, but does not prove causality or choose the fix for you. See Intended Scope for the full boundary.


💡 New here? Don't want to read everything? Ask your AI assistant (Claude, ChatGPT, Gemini, etc.) to read the docs/ folder and guide you through setup for your OS and project.

A local-first code retrieval layer for AI coding agents. ContextBridge indexes your codebase (via Graphify output), then exposes MCP tools that any AI client (Claude Code, Codex, Cursor, Antigravity, …) can call to get ranked files, symbols, and dependency chains — optionally validated and re-ranked by a local LLM before the answer reaches your cloud AI.

Your prompt ─► ContextBridge (keyword + vector retrieval)
            ─► Local AI (optional: validates, re-ranks, fills gaps)
            ─► Your AI agent (implements, grounded in real files)

The engine is generic. All project-specific ranking lives in a swappable profile plugin, so the same tool works for any codebase.


Architecture

How your code flows through ContextBridge to your AI agent:

ContextBridge architecture and data flow


Dashboard

ContextBridge ships with a local dashboard for monitoring retrieval quality, index health, and config — no cloud dependency.

ContextBridge dashboard overview
Overview — retrieval quality, token savings, and search-mode breakdown

ContextBridge dashboard settings
Settings — tune pipeline mode, RAG weights, and model config live

Token savings breakdown modal
Token savings — per-query breakdown of what CB delivered vs. full-file cost


📖 Before you start — read the docs. The docs/ folder contains everything you need for full setup, configuration, pipeline, and profile creation. Start with docs/0. README.md for a guided index of all documentation.


Quick start

:: 1. Install deps + build the index + scaffold config files
context_bridge\setup\windows\setup_context_bridge.bat

:: 2. Point the config at YOUR source folders
::    edit config.hybrid.json  ->  settings.discovery.*  (replace your_backend / your_frontend)

:: 3. Re-run setup to index your code
context_bridge\setup\windows\setup_context_bridge.bat

:: 4. Start the server + dashboard (pick Hybrid / Semantic / Keyword)
context_bridge\setup\windows\1.  start_Context_Bridge.bat

Mac/Linux: use context_bridge/setup/mac/ or context_bridge/setup/linux/ equivalents.

Setup is rerunnable and safe: it creates config/start files from the *.example templates only if missing (never overwrites your edits), and rebuilds the index each run. Run setup_context_bridge.bat --force to reset configs back to the templates.

The MCP server runs SSE by default at http://127.0.0.1:8755/sse — point your AI client there. Stdio transport is also supported (set CONTEXT_BRIDGE_TRANSPORT=stdio before starting) for clients that don't support SSE; SSE is recommended since it lets multiple AI clients share one running server instead of each spawning its own process. Dashboard: http://127.0.0.1:8795. Live stats can lag up to ~15 seconds behind the latest activity, and history lists (recent events, missed files, failed queries) show the most recent 1000 entries rather than the full lifetime log — both are intentional performance tradeoffs, not data loss.


Retrieval modes

Chosen at startup (the start script picks the matching config file):

ModeConfigWhat it does
Hybridconfig.hybrid.jsonKeyword-first + guarded vector assist (recommended)
Semanticconfig.semantic.jsonVector-only (needs sentence-transformers)
Keywordconfig.jsonPure keyword, no vectors

MCP tools

ToolUse
search_context_hybrid()Primary — broad file + context discovery (runs analysis automatically)
find_code_locations()Exact owner file / symbol / line for a method or class
get_module_summary()Overview of a module/service
get_graphify_pack()All files in a feature pack
record_outcome()Log whether a result helped
health_check(), get_usage_summary(), search_context(), find_related_files()Utility

Which tools appear is controlled by config — if a tool is registered, it is safe to call.


Writing your own profile

The generic engine asks a profile for project-specific ranking at every step. With no profile (project_profile: "default") you get pure generic scoring.

  1. Copy rules/projects/example_profile.py → rules/projects/<yourapp>_profile.py
  2. Implement the hooks you need (every hook is optional — skipped hooks fall back to no-op)
  3. Activate it: set CONTEXT_BRIDGE_PROFILE=<yourapp> in your start script, or project_profile: "<yourapp>" in your config

Profile hooks (all optional)

HookPurpose
expand_query_tokens(query, tokens)Add extra search tokens
module_intent_tokens()Map module name → vocabulary
pinned_owner_files(query_tokens)Force specific files to the top
adjust_document_score(...)Boost/penalize a candidate document
adjust_owner_score(...)Boost/penalize an owner file by name
adjust_primary_owner_score(...)Nudge the single primary owner
adjust_scoped_score(...)Prefer files under the dominant module/pack
extra_owner_file_patterns()Extra high-priority filename patterns
infer_module_from_path(path)Path → module name (fusion scoping)
low_signal_terms()Module/domain words to treat as low-signal
noise_files()Filenames to de-prioritize (ui/support/root)
gap_queries()Trigger words → clean re-search query
analysis_prompt_override()Full system prompt for the local AI
pack_files_for_intents(...)Map intents → Graphify pack files (advanced)

See docs/ for extended guides on setup, pipeline, profile creation, and debug commands.


Indexing

ContextBridge indexes Graphify output (graph.json, GRAPH_REPORT.md, source-files.txt, scope-summary.md, manifest.json) plus /behavior/ docs — not raw source. Generate Graphify for your project, point settings.discovery.* at those folders, and run setup. Re-run setup after each Graphify update to refresh the index.


Local AI (optional)

Configure a local model under pipeline.analysis_stage (provider ollama by default, or anthropic/openai/openrouter). When enabled, it validates and re-ranks CB results, decomposes multi-topic prompts, and triggers gap re-searches — then passes a compact, grounded result to your cloud AI. Swap models by changing model only; the prompts are model-agnostic.


License

Copyright 2026 Tiju Thomas

Licensed under the Apache License, Version 2.0.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for ContextBridge from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/context-bridge-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools