
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
概覽
把 Outflow 工作區的即時架構圖作為上下文提供給 AI 程式開發助理,可查詢相依性、影響範圍與架構健康狀況。
- 可以做什麼
- 尋找節點,並依類型、健康度或棄用狀態列出節點
- 查看檔案之間的相依關係、變更影響範圍(爆炸半徑)與連線路徑
- 檢查整體架構健康等級,找出循環相依、上帝節點、死程式碼等架構異味
- 依縮放層級取得完整架構圖,並回顧上一次編碼工作階段
- 路徑支援部分比對,比對不唯一時回傳候選清單而非自行猜測
- 適用情境
- 當助理在由 Outflow 追蹤的專案中修改程式碼,需要知道某個檔案相依於什麼、變更會破壞什麼,或最近一批修改是否引入循環相依時使用。
- 執行需求
- 以 npm 套件形式透過 stdio 在本機執行。需要一個執行中的 Outflow 執行個體(OUTFLOW_BASE_URL,預設 中的 API 金鑰,以及 OUTFLOW_WORKSPACE_ID 中的目標工作區 ID。僅支援桌面版 MCP 用戶端。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Outflow Mcp,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
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 publishruns from. Changes here get synced there before each release.
Setup
- 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. - Find your workspace ID — it's in the workspace URL
(
.../workspace/<id>/...) or workspace settings. - Build the server:
- Add it to your MCP client config. For Claude Code, add to your MCP
settings (
claude mcp addor the equivalent config file): For local development,OUTFLOW_BASE_URLdefaults tohttp://localhost:3000if omitted.
Tools
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/orweb/, 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_impactandfind_architecture_smells/find_pathcall workspace graph routes that (as of this package's introduction) were extended to acceptAuthorization: Bearer ofk_...alongside the existing cookie-session auth — seeserver/src/graph/pathRouter.tsandsmellsRouter.ts.
來源:README.md,提交 af7fb2d
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。