
Forkflux Mcp
io.github.forkflux由 GitHub 账号 forkflux 发布v0.6.0更新于 Oct 24, 2026
Self-hosted multi-agent collaboration and audit layer for AI-assisted engineering teams
概览
自托管的 MCP 服务器,让 AI 助手在隔离的 AI 代理之间发布、领取、跟踪并审计结构化交接任务。
- 可以做什么
- 发布带上下文、约束、产物、优先级、目标角色和依赖关系的交接任务,并可后续修改其上下文或约束。按生命周期状态、目标角色和调用代理的角色筛选共享任务列表,并读取任务完整记录。原子化领取指定任务,或为某角色领取优先级最高的可用任务。记录阻塞、进行中、已完成、失败或已取消等生命周期状态变更。驳回已完成的工作并生成关联的重试任务,以及获取用于重试的聚焦重开上下文。
- 适用场景
- 适用于多个 AI 代理分布在不同机器或工作区、需要交换结构化工作,而不想复制粘贴日志、共享本地文件或把人工任务跟踪工具当作协调层的场景。适合希望每次交接及其生命周期都有可审计记录的工程团队。
- 运行要求
- 需要 Python 3.12+ 以及正在运行的 ForkFlux API 端点。以 stdio 方式运行时,需通过环境变量 FORKFLUX_API_KEY 提供调用代理的 ForkFlux API 密钥。FORKFLUX_API_URL 用于设置 API 地址,默认指向本机地址。HTTP 模式还需共享服务凭据和每个客户端的 bearer 令牌。
安装
在 SourceWeft 中
- 打开 控制台中的 Forkflux Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
ForkFlux MCP Server
Model Context Protocol (MCP) server for ForkFlux, the self-hosted multi-agent collaboration and audit layer for AI-assisted engineering teams.
ForkFlux MCP connects MCP-compatible assistants such as Cursor, Claude Code, and Codex to a self-hosted ForkFlux API instance. It gives engineering teams a shared, auditable workflow for delegating work between isolated AI agents, tracking its lifecycle, and retaining the context behind each handoff.
Use this package when AI agents work across separate machines or workspaces and need to exchange structured work without copy-pasting logs, sharing local files, or relying on human task trackers as an ad-hoc coordination layer.
What it provides
forkflux_create_job— publish a structured handoff job with context, constraints, artifacts, priority, target role, dependencies, and optional follow-on routing rules.forkflux_list_jobs— list shared jobs, with filters for lifecycle status, target role, and the calling agent's roles.forkflux_job_details— retrieve the complete record for a job, including its context, constraints, and artifacts.forkflux_claim_job— atomically claim a published job and receive its full context payload.forkflux_claim_next_job— atomically claim the highest-priority available job for a target role.forkflux_change_job_status— record lifecycle transitions for claimed work:blocked,in_progress,completed,failed, orcancelled.forkflux_update_job— revise a published job's context payload and/or constraints when the handoff needs correction or clarification.forkflux_reject_job— reject completed work and create a linked retry job containing the rejection reason.forkflux_get_reopen_context— retrieve focused retry context for a reopened job without loading the original full context payload.
Requirements
- Python 3.12+
- A running ForkFlux API endpoint
- A ForkFlux API key for the agent using this MCP server when running over stdio
Configuration
Set these environment variables before starting the server:
Run the server over stdio with either an installed package or uvx:
Run as an HTTP service
The package also exposes a Streamable HTTP ASGI application for assistants that connect to a shared, long-running MCP service:
The MCP endpoint is available at http://localhost:8080/mcp. HTTP clients must send their own agent token in the Authorization: Bearer <AGENT_API_TOKEN> header. The MCP service forwards that header to the API for agent-authenticated tool calls.
For HTTP mode, configure the API service with the matching shared key:
SHARED_API_KEY and FORKFLUX_SHARED_API_KEY are the same private service credential viewed from the API and MCP services. It is used for MCP requests that have no incoming client header, such as startup role discovery; it is not an agent token and should not replace FORKFLUX_API_KEY in a client configuration.
The repository's Docker Compose example shows the API, MCP HTTP service, and PostgreSQL running together.
The MCP server is intentionally stateless. It prefixes API requests with /mcp, authenticates them with either the calling agent's bearer token or the shared service credential when no client header is available, and returns structured success or error results. The API remains the source of truth for agents, roles, jobs, dependencies, routing rules, artifacts, and lifecycle events.
For a client configuration example, see the MCP integration guide. For local development:
License
Apache-2.0. See the project repository for full license details.
来源:packages/mcp/README.md,提交 2fecc5b
工具
0版本历史
1- v0.6.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分