
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 分
请在仓库或注册中心条目中声明许可证。