redeploy_rules
Re-deploy bundled FCoP protocol rules to Cursor, AGENTS.md, and CLAUDE.md locations after upgrading fcop-mcp package. Ensures all agent hosts use the same rules.
Instructions
ADMIN-only. Re-deploy bundled FCoP protocol rules to the project.
Writes the wheel-bundled :file:fcop-rules.mdc /
:file:fcop-protocol.mdc to four locations so any agent host
the project runs under sees the same rules:
.. code-block:: text
<root>/.cursor/rules/fcop-rules.mdc # Cursor IDE
<root>/.cursor/rules/fcop-protocol.mdc # Cursor IDE
<root>/AGENTS.md # Codex / Cursor / Devin / generic
<root>/CLAUDE.md # Claude Code CLIRun this after pip install -U fcop-mcp (or -U fcop)
to refresh on-disk copies to the newly packaged versions.
fcop_report() shows when this is needed via the version
drift warning.
Per ADR-0006, agents must NOT invoke this tool themselves — only ADMIN does, explicitly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | When ``True`` (default) overwrite existing copies. ``False`` skips files that already exist (no-op for an up-to-date project). | |
| archive | No | When ``True`` (default) and ``force=True``, the existing copy is moved to :file:`.fcop/migrations/<timestamp>/rules/<rel>` before being overwritten so ADMIN can diff or roll back. ``False`` skips archiving (destructive — only safe when the project has no local edits). | |
| lang | No | Output language, ``zh`` or ``en``. | zh |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |