
Forkflux Mcp
io.github.forkfluxPublished by GitHub account forkfluxv0.6.0Updated Oct 24, 2026
Self-hosted multi-agent collaboration and audit layer for AI-assisted engineering teams
Overview
Self-hosted MCP server that lets an AI assistant publish, claim, track and audit structured handoff jobs between isolated AI agents.
- What you can do
- Publish handoff jobs with context, constraints, artifacts, priority, target role and dependencies, and revise their context or constraints later. List shared jobs filtered by lifecycle status, target role and the calling agent's roles, and read a job's full record. Atomically claim a specific job or the highest-priority available job for a role. Record lifecycle transitions such as blocked, in progress, completed, failed or cancelled. Reject completed work to create a linked retry job, and fetch focused reopen context for retries.
- When to use it
- Use it when several AI agents work across separate machines or workspaces and need to exchange structured work without copy-pasting logs, sharing local files, or using human task trackers as a coordination layer. It suits engineering teams that want an auditable record of each handoff and its lifecycle.
- Requirements
- Python 3.12+ and a running ForkFlux API endpoint. A ForkFlux API key for the calling agent, supplied through the FORKFLUX_API_KEY environment variable when running over stdio. FORKFLUX_API_URL sets the API address and defaults to a localhost URL. HTTP mode additionally uses a shared service credential and per-client bearer tokens.
Installation
In SourceWeft
- Open Forkflux Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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.
Source: packages/mcp/README.md at commit 2fecc5b
Tools
0Version history
1- v0.6.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts