Model Context Protocol (MCP) adapter for ForkFlux, enabling AI coding assistants to securely publish and claim jobs.
Project description
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
Configuration
Set these environment variables before starting the server:
export FORKFLUX_API_URL="http://localhost:8000/api/v1"
export FORKFLUX_API_KEY="your-agent-api-key"
Run the server over stdio with either an installed package or uvx:
pip install forkflux-mcp
forkflux-mcp
# Or run without installing into the current environment.
uvx forkflux-mcp
The MCP server is intentionally stateless. It prefixes API requests with /mcp, authenticates them with the bearer token, 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:
uv sync
uv run pytest -v
License
Apache-2.0. See the project repository for full license details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file forkflux_mcp-0.5.0.tar.gz.
File metadata
- Download URL: forkflux_mcp-0.5.0.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20706c062b25b2225b65edc43315517b381d54ffa733ab04cc3c3a1cbfdad6cd
|
|
| MD5 |
9537267299caf4cdbcf13cc091e32198
|
|
| BLAKE2b-256 |
de21d81a145f3b21ee8c250028300ef4cbe5a7c521a15e4251b536ef76e95d3a
|
File details
Details for the file forkflux_mcp-0.5.0-py3-none-any.whl.
File metadata
- Download URL: forkflux_mcp-0.5.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea20035a28261941b9e923e7a86adf11b73c0e48f20f5d0f7b6a2af5036d804a
|
|
| MD5 |
b867cd97c8bb4c7745eb6d16b26b2917
|
|
| BLAKE2b-256 |
0a0b664e1f764556dfc0b29b8cc836925bf1ad0123c25f3fcc380820db8981c7
|