
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 分