Skip to main content

fcop-mcp — MCP adapter for FCoP

mcp-name: io.github.joinwell52-AI/fcop

fcop-mcp exposes the official FCoP Python Core to Codex, Cursor, Claude Desktop, and other MCP clients. It is an optional adapter over the same protocol—not a second protocol implementation.

Current stable surface

FCoP 4.0 is Stable, Implemented and Released. Package version 4.0.3 provides:

  • 49 tools
  • 12 resources
  • 4 resource templates
  • Python 3.10–3.13 support
  • Version-routed behavior for existing v3 and v4 workspaces

The original 46-tool surface remains available. The 4.0.1 Branch workflow adds:

Tool Purpose
create_branch Create a Branch TASK under a Root TASK for parallel work
inspect_family Read the Root/Branch family, REPORT heads, readiness, and canonical family digest
merge_branches Commit an explicit convergence decision through Core's atomic merge operation

Install

Install Core and the MCP adapter together in a dedicated virtual environment:

python -m pip install --upgrade \
  "fcop>=4.0.3,<4.1.0" \
  "fcop-mcp>=4.0.3,<4.1.0"

Verify both distributions:

python -c "from importlib.metadata import version; print('fcop', version('fcop')); print('fcop-mcp', version('fcop-mcp'))"
python -c "from fcop_mcp.server import mcp; print('fcop-mcp ready')"

fcop and fcop-mcp are released in lockstep within the same minor line. Do not mix incompatible minor versions.

CLI — Local Setup, Inspect & Diagnose

CLI = Setup + Observe + Diagnose; MCP = Work.

Command Purpose
fcop init Initialize an FCoP workspace
fcop status View workspace status
fcop inspect Inspect TASK / REPORT / ISSUE / REVIEW
fcop validate Validate protocol structure
fcop tools Inspect the installed MCP Tool Catalog
fcop doctor Diagnose installation, environment and compatibility
fcop version Show installed versions
fcop spec Show specification / rule identity
fcop migrate Explicitly migrate a legacy workspace; inspect the plan before apply

Install & Verify

In an activated Python 3.10+ environment:

python -m pip install fcop

fcop version
fcop doctor
fcop init --root ./my-project
fcop status --root ./my-project
fcop validate --root ./my-project

For the optional MCP Tool Catalog:

python -m pip install fcop-mcp

fcop tools
fcop tools merge_branches --json

Once installed, the CLI can initialize, inspect, validate and diagnose locally and offline. doctor does not access the network or modify Host configuration. Package installation itself may need a package index; offline installation requires locally available packages. The CLI does not perform create_task, approval, Branch, merge or authorization work operations; use MCP or the Python API for those. Installing fcop does not create Host instruction files. Normal v4 workspace state belongs in <project>/fcop/, never in project-root AGENTS.md, CLAUDE.md or Cursor rules. Existing atomic initialization staging and failed-initialization evidence are preserved; customer files are never cleaned up automatically. migrate is a separate explicit legacy operation, not an automatic package-upgrade step. tools requires the optional MCP package and never starts a server or installs it automatically.

CLI reference · 中文 CLI 参考.

Configure an MCP client

CLI = Setup + Observe + Diagnose; MCP = Work. Inspect this adapter's authoritative Tool Catalog without starting a server:

pip install fcop-mcp==4.0.3
fcop version
fcop doctor
fcop tools
fcop tools merge_branches --json

The public fcop_mcp.catalog.get_tool_catalog(name=None) query returns fresh, sorted name/disposition rows from disposition.TOOLS. It imports no MCP runtime, does not start a server and does not duplicate handler signatures. Unknown names raise KeyError. CLI Catalog, registry and real tools/list have equal sets; 4.0.3 does not add, remove or change any MCP work tool.

See the CLI reference.

A fixed virtual environment gives predictable startup and avoids importing a different editable fcop package from another project.

{
  "mcpServers": {
    "fcop": {
      "command": "/absolute/path/to/venv/bin/python",
      "args": ["-m", "fcop_mcp"],
      "env": {
        "FCOP_PROJECT_DIR": "/absolute/path/to/repository"
      }
    }
  }
}

On Windows, command is the virtual environment's Scripts\\python.exe. Restart the MCP host after changing its configuration.

Installation only installs the packages. It does not initialize a workspace, migrate existing files, deploy rules, publish anything, or modify another application.

Parallel Branch workflow

create_branch → agents write REPORTs → inspect_family → merge_branches

A PM, coordinating agent, or authorized human supplies the convergence decision. FCoP does not invent that decision. Core validates the exact REPORT heads and family digest, uses a family-scoped cross-process lock, and records one durable REVIEW. An exact retry is idempotent; a conflict fails without partial writes.

Core owns validation, persistence, locking, and recovery. The MCP adapter validates the tool request and forwards it to the public Core API.

See the Branch merge contract and example or the Chinese version.

Authority and safety

Profile and evaluator authority must be adopted by the trusted application when the server starts. A role name, TASK field, Profile document, or tool argument does not grant authority by itself.

FCoP uses a local stdio transport by default. Relay support is an explicit optional extra and is never activated merely because a WebSocket dependency or environment variable is present.

Package boundary

Package Responsibility
fcop Protocol Core, filesystem model, validation, atomic persistence, and recovery
fcop-mcp MCP tools and resources that call the Core API

You need fcop-mcp when an MCP client must operate FCoP through tools. Python applications using Project directly only need fcop.

中文简介

FCoP 4.0 已正式稳定发布,当前包版本为 4.0.3。 fcop-mcp 是 FCoP Core 的 MCP 适配层,当前提供 49 个 Tools、12 个 Resources 和 4 个 Templates。4.0.1 新增 create_branchinspect_familymerge_branches,让 MCP Host 能创建并发 Branch、 检查 REPORT 家族并提交原子合并。合并判断由 PM、Agent 或人类给出,Core 负责校验、落盘、幂等和崩溃恢复。

Documentation

License

MIT — LICENSE

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fcop_mcp-4.0.3.tar.gz (107.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fcop_mcp-4.0.3-py3-none-any.whl (116.6 kB view details)

Uploaded Python 3

File details

Details for the file fcop_mcp-4.0.3.tar.gz.

File metadata

  • Download URL: fcop_mcp-4.0.3.tar.gz
  • Upload date:
  • Size: 107.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for fcop_mcp-4.0.3.tar.gz
Algorithm Hash digest
SHA256 8f2dea3e5b7d4a47099cae9b2d6cfd859dadad17bc400e59dd88dcbdd400aced
MD5 8127bf5a3ab6980f2faea6b9696df1c0
BLAKE2b-256 a4d7988d20bc8b3ef7b3401243b05215879f8d00dff403a2dcfeb069bc0eb346

See more details on using hashes here.

File details

Details for the file fcop_mcp-4.0.3-py3-none-any.whl.

File metadata

  • Download URL: fcop_mcp-4.0.3-py3-none-any.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.9

File hashes

Hashes for fcop_mcp-4.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6264ec0fb08ac8aa46780c0dc165e13e07571da2524480fdedcebe23e4d38897
MD5 0edb71885372421e0684b471d86ecb9f
BLAKE2b-256 42c832284825d836a4fbe22fb6a48d0e38bff98b24495f561f63664b5c5abcb2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

4.0.3 This release

2 files

4.0.2

2 files

4.0.1

2 files

4.0.0

2 files

3.2.5

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

1 file

3.2.1

1 file

3.2.0

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.6.0

2 files

1.5.1

2 files

1.5.0

2 files

1.4.0

2 files

1.3.1

2 files

1.3.0

2 files

1.2.1

2 files

1.2.0

1 file

1.1.1

1 file

1.1.0

2 files

1.0.1

1 file

1.0.0

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.5

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page