Context Bridge

io.github.prateekg7由 GitHub 帳號 prateekg7 發布v0.1.3更新於 Nov 3, 2026

Context portability MCP server for compressing, formatting, and resuming AI conversation handoffs.

已驗證STDIO僅桌面知識與記憶AI 與機器學習

概覽

AI 產生的概覽

本機 MCP 伺服器,把進行中的 AI 對話壓縮成結構化脈絡區塊,並重新排版,讓另一個助理能接手繼續。

可以做什麼
  • 把原始對話紀錄壓縮成結構化脈絡區塊,保留目標、已確認決策、目前狀態、未結事項與下一步
  • 依目標平台(Claude、ChatGPT、Gemini)排版壓縮後的脈絡區塊
  • 以脈絡區塊產生可直接投放到目標平台的落地包,方便另一個助理接手
  • 每次呼叫可選擇推理通道:OpenAI、OpenAI chat、Google、Groq、自訂或託管
適用情境
適合在不同 AI 助理之間切換,或開新對話時希望把目標、決策與未結事項帶過去,不必重新敘述。也適合在交接前把冗長對話壓縮整理。
執行需求
以 stdio 方式在本機執行,通常透過 npx 啟動 npm 套件,需要 Node.js。壓縮需要模型供應商:OpenAI、Google 或 Groq 的 API 金鑰、自訂端點,或託管端點網址。金鑰透過 OPENAI_API_KEY、CONTEXTBRIDGE_HOSTED_API_KEY 等環境變數或單次呼叫參數提供。需要能連線到所選供應商。
安裝前請注意
完整對話紀錄會傳送給你設定的模型供應商,請勿貼上金鑰或敏感資料。API 金鑰可透過環境變數或單次呼叫的 apiKey 參數傳入,避免寫進共用設定。使用付費供應商通道會在你自己的帳號產生費用。README 的安裝範例提到 GROQ_API_KEY,但清單並未宣告該變數。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Context Bridge,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ContextBridge

[npm version] [MCP Registry]

ContextBridge is a context portability tool for AI conversations. This package publishes the MCP server surface: it compresses an in-progress conversation into a structured context block that preserves the user's goal, confirmed decisions, current state, open threads, artifacts, constraints, recent pivots, and suggested next step, then formats that handoff so another AI can continue without forcing the user to restate everything.

The published npm artifact is the stdio MCP server for Claude Desktop, agent runtimes, and other MCP-compatible hosts. The browser extension runtime is developed in the same repository, but it is not part of this MCP Registry publishing flow.

Published Links

Install In Claude Desktop

Add this to your Claude Desktop MCP config (~/Library/Application Support/Claude/claude_desktop_config.json):

json
{  "mcpServers": {    "contextbridge": {      "command": "npx",      "args": ["-y", "@contextbridge_ai/mcp"],      "env": {        "GROQ_API_KEY": "your_groq_api_key_here"      }    }  }}

Or with OpenAI:

json
{  "mcpServers": {    "contextbridge": {      "command": "npx",      "args": ["-y", "@contextbridge_ai/mcp"],      "env": {        "OPENAI_API_KEY": "your_openai_api_key_here",        "OPENAI_MODEL": "gpt-4.1-mini"      }    }  }}

For a hosted no-key lane instead of BYOK:

json
{  "mcpServers": {    "contextbridge": {      "command": "npx",      "args": ["-y", "@contextbridge_ai/mcp"],      "env": {        "CONTEXTBRIDGE_HOSTED_URL": "https://your-hosted-endpoint.example/v1",        "CONTEXTBRIDGE_HOSTED_MODEL": "mistralai/Mistral-7B-Instruct-v0.2"      }    }  }}

Available MCP Tools

compress_context

Compresses a raw transcript into a structured context block.

Parameters:

  • transcript (string, required): the raw conversation transcript to compress.
  • provider ("openai" | "openai-chat" | "google" | "groq" | "custom" | "hosted", optional): provider override.
  • model (string, optional): model override for the selected lane.
  • apiKey (string, optional): BYOK API key override.
  • baseUrl (string, optional): API base URL override.
  • hostedApiKey (string, optional): optional auth key for the hosted lane.

format_for_target

Formats a compressed context block for a destination platform.

Parameters:

  • context_block (object, required): a validated ContextBridge compressed context block.
  • target ("claude" | "chatgpt" | "gemini", required): destination AI platform.

resume_context

Builds a destination-ready landing package from a compressed context block.

Parameters:

  • context_block (object, required): a validated ContextBridge compressed context block.
  • target ("claude" | "chatgpt" | "gemini", required): destination AI platform.

BYOK Setup

ContextBridge auto-selects the OpenAI Responses lane when a BYOK key is present.

Environment variables:

bash
OPENAI_API_KEY=your_openai_api_key_hereOPENAI_MODEL=gpt-4.1-miniOPENAI_BASE_URL=https://api.openai.com/v1

Additional supported provider overrides:

bash
GOOGLE_API_KEY=your_google_api_key_hereGOOGLE_MODEL=gemini-2.5-proGOOGLE_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai
GROQ_API_KEY=your_groq_api_key_hereGROQ_MODEL=llama-3.3-70b-versatileGROQ_BASE_URL=https://api.groq.com/openai/v1
CONTEXTBRIDGE_API_KEY=your_custom_api_key_hereCONTEXTBRIDGE_MODEL=your_custom_model_hereCONTEXTBRIDGE_BASE_URL=https://your-endpoint.example/v1CONTEXTBRIDGE_PROVIDER=custom

Hosted Lane Setup

The hosted lane is the no-key path for end users who do not bring their own provider credentials.

Environment variables:

bash
CONTEXTBRIDGE_HOSTED_URL=https://your-hosted-endpoint.example/v1CONTEXTBRIDGE_HOSTED_MODEL=mistralai/Mistral-7B-Instruct-v0.2CONTEXTBRIDGE_HOSTED_API_KEY=

Selection priority:

  1. Explicit apiKey option passed into compression uses the OpenAI Responses BYOK lane.
  2. OPENAI_API_KEY uses the OpenAI Responses BYOK lane.
  3. CONTEXTBRIDGE_HOSTED_URL uses the hosted lane.

Contributing

Contributions are welcome. The highest-leverage areas are extraction quality evaluation, browser collector resilience, destination formatting quality, hosted-lane infrastructure, and real-world handoff testing across platforms.

License

MIT. See LICENSE.

來源:README.md,提交 3303d21

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分