Outflow Mcp

io.github.laurells由 GitHub 帳號 laurells 發布v0.1.1更新於 Oct 28, 2026

MCP server exposing an Outflow workspace's live architecture graph as context for AI coding agents

已驗證STDIO僅桌面開發者工具資料與分析

概覽

AI 產生的概覽

把 Outflow 工作區的即時架構圖作為上下文提供給 AI 程式開發助理,可查詢相依性、影響範圍與架構健康狀況。

可以做什麼
  • 尋找節點,並依類型、健康度或棄用狀態列出節點
  • 查看檔案之間的相依關係、變更影響範圍(爆炸半徑)與連線路徑
  • 檢查整體架構健康等級,找出循環相依、上帝節點、死程式碼等架構異味
  • 依縮放層級取得完整架構圖,並回顧上一次編碼工作階段
  • 路徑支援部分比對,比對不唯一時回傳候選清單而非自行猜測
適用情境
當助理在由 Outflow 追蹤的專案中修改程式碼,需要知道某個檔案相依於什麼、變更會破壞什麼,或最近一批修改是否引入循環相依時使用。
執行需求
以 npm 套件形式透過 stdio 在本機執行。需要一個執行中的 Outflow 執行個體(OUTFLOW_BASE_URL,預設 中的 API 金鑰,以及 OUTFLOW_WORKSPACE_ID 中的目標工作區 ID。僅支援桌面版 MCP 用戶端。
安裝前請注意
需要工作區 API 金鑰,該金鑰僅在建立時顯示一次,應保存在用戶端設定中而非外流。伺服器透過 HTTP 從你的 Outflow 執行個體讀取架構資料,請只指向可信任的執行個體。依 README 說明,這些工具皆為唯讀查詢。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

outflow-mcp

An MCP (Model Context Protocol) server that exposes a live Outflow architecture graph as context for AI coding agents — Claude Code, Claude Desktop, or any other MCP-compatible client. Lets an agent ask "what does this file depend on", "what breaks if I change this", or "did my last batch of edits introduce a circular dependency" against your workspace's real, currently-live graph.

It's a thin client over Outflow's existing /api/v1 REST API and the workspace graph routes — no graph logic is duplicated here.

This package is developed inside the main Outflow monorepo but published from a standalone public mirror: https://github.com/laurells/outflow-mcp — that's the repo MCP registries/crawlers point at, and where npm publish runs from. Changes here get synced there before each release.

Setup

  1. Create an API key for the workspace you want to expose. In Outflow, go to workspace settings → API Keys → create one. The raw key (ofk_...) is shown once — copy it.
  2. Find your workspace ID — it's in the workspace URL (.../workspace/<id>/...) or workspace settings.
  3. Build the server:
    bash
    cd packages/mcp-servernpm installnpm run build
  4. Add it to your MCP client config. For Claude Code, add to your MCP settings (claude mcp add or the equivalent config file):
    json
    {  "mcpServers": {    "outflow": {      "command": "node",      "args": ["/absolute/path/to/outflow/packages/mcp-server/dist/index.js"],      "env": {        "OUTFLOW_BASE_URL": "https://your-outflow-domain.com",        "OUTFLOW_API_KEY": "ofk_...",        "OUTFLOW_WORKSPACE_ID": "your-workspace-id"      }    }  }}
    For local development, OUTFLOW_BASE_URL defaults to http://localhost:3000 if omitted.

Tools

ToolUse it to ask
find_nodeIs this file tracked? What's its ID?
list_nodesWhat's deprecated / low health / a given type?
get_dependenciesWhat does this file rely on?
get_impactWhat breaks if I change this file? (blast radius)
find_pathHow are these two files connected?
get_architecture_healthWhat's the overall health grade and at-risk nodes?
find_architecture_smellsAny circular deps, god nodes, or dead code right now?
get_architecture_graphGive me the whole graph at a zoom level.
get_last_session_recapWhat happened in my last coding session?

All tools that take a path accept a partial match (e.g. "ApiClient" will match src/ApiClient.ts) — you never need to know Outflow's internal file::/method:: ID format. An ambiguous partial match returns an error listing the candidates instead of guessing.

Notes

  • This package is standalone — it is never bundled into server/ or web/, and has no build-time dependency on them. It only talks to a running Outflow instance over HTTP using an API key, so it works equally well pointed at localhost or a deployed instance.
  • get_dependencies/get_impact and find_architecture_smells/find_path call workspace graph routes that (as of this package's introduction) were extended to accept Authorization: Bearer ofk_... alongside the existing cookie-session auth — see server/src/graph/pathRouter.ts and smellsRouter.ts.

來源:README.md,提交 af7fb2d

工具

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

版本歷史

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

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。