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 分

    请在仓库或注册中心条目中声明许可证。