FerryCat
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENT_NAME | Yes | The name identifying the agent host that mounts the FerryCat MCP server (e.g. "antigravity", "workbuddy"). Configured per host in the host's MCP settings. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| dispatch_contractA | Dispatch a task or code review contract to another local AI agent host via the shared SQLite WAL mesh. PurposeRegisters a new contract in SUBMITTED status with full-file SHA-256 fingerprint snapshots of all target files, establishing an immutable baseline for cross-host verification and emitting active pointer overlap warnings. Usage Guidelines
Behavior & Side Effects
Return ValueReturns { contract_id, status: 'SUBMITTED', created_at, write_mode?, files, patch_sha256?, patch_bytes?, overlapping_contracts?, warning? }. |
| poll_next_taskA | Atomically claim the oldest pending SUBMITTED contract assigned to this agent and verify local file fingerprints. PurposeRetrieves and claims next available contract work for the current agent, transitioning it from SUBMITTED to CLAIMED. Usage Guidelines
Return Value
|
| fulfill_contractA | Submit execution or review deliverables for a CLAIMED contract under Dual-Track TOCTOU verification (ADR-0004 / ADR-0006 / ADR-0007) and Ajv JSON Schema validation. PurposeDelivers task outputs, enforces track-specific workspace integrity and cryptographic SHA-256 auditing, validates structured payloads, and transitions the contract to terminal COMPLETED. Track-Specific Fulfillment Rules
Return ValueReturns { ok, contract_id, status: 'COMPLETED' | 'RETRY_NEEDED' | 'POINTER_STALE' | 'VALIDATION_FAILED' | 'TIMED_OUT', retry_count, max_retries, toctou_strike?, max_toctou_strikes?, dirty_files?, validation_errors?, no_op?, proposed_patch_sha256?, proposed_patch_bytes?, remediation?, message }. |
| inspect_mesh_stateA | Strictly read-only query of contracts, execution progress, outputs, proposal patches, diagnostic counters, and failure causes. PurposeProvides comprehensive observability into the multi-agent mesh state without acquiring database write locks or mutating rows. Behavior & Side Effects
Return ValueReturns { total_returned, contracts: Array<{ contract_id, requester_agent, target_agent, task_type, write_mode, title, status, is_logically_expired, created_at, claimed_at, completed_at, proposal_applied_at, retry_count, extend_count, release_count, toctou_strike, result_summary, structured_output, artifacts_pointers, proposed_patch_sha256, proposed_patch_bytes, proposed_patch?, error_reason, salvaged_result, verified_sha256 }> }. |
| release_contractA | Hand a CLAIMED contract back to the queue tail as SUBMITTED with a fresh queue window. Behavior & Side Effects
Return ValueReturns { ok, contract_id, status: 'SUBMITTED' | 'CLAIMED' | 'TIMED_OUT', release_count, max_releases, remediation?, message }. |
| extend_ttlA | Heartbeat renewal for long-running execution: restarts the active execution window of a CLAIMED contract. Behavior & Side Effects
Return ValueReturns { ok, contract_id, status: 'CLAIMED' | 'TIMED_OUT', claimed_at?, expires_at?, extend_count, max_extends, remediation?, message }. |
| fail_contractA | Explicitly mark a CLAIMED contract as terminal FAILED with a mandatory failure reason. Behavior & Side Effects
Return ValueReturns { ok, contract_id, status: 'FAILED' | 'TIMED_OUT', remediation?, message }. |
| verify_contractA | Read-only pre-flight and post-completion consistency check (ADR-0004 / ADR-0006 / ADR-0007): audits on-disk pointer files against the contract's SHA-256 baseline or committed post-mutation snapshot. Behavior & Side Effects
Return ValueReturns { ok: true, valid, fulfillable, contract_id, status, target_agent, toctou_strike, max_toctou_strikes, dirty_files, remediation?, message }. |
| apply_contract_patchA | Verify the cryptographic dispatch baseline SHA-256 lock and atomically apply a COMPLETED contract's proposed_patch to workspace_root via git apply (ADR-0007). PurposeCompletes the zero-write proposal loop (write_mode="proposal") by allowing the requester host to dry-run or atomically land a worker's unified diff only when the local baseline has not drifted. Strict Preconditions & Safety Gates
Return ValueReturns { ok, contract_id, status: 'APPLIED' | 'DRY_RUN_OK' | 'ALREADY_APPLIED' | 'PROPOSAL_CONFLICT' | 'PRECONDITION_FAILED', dry_run, proposed_patch_sha256?, proposal_applied_at?, touched_files?, verified_sha256?, drifted_files?, git_check_error?, remediation?, message }. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool owns a distinct lifecycle step (dispatch, poll/claim, fulfill, release, extend, fail, verify, inspect, apply patch), and the descriptions explicitly add 'when NOT to use, use tool X instead' cross-references, which sharply separates the read-only pairs (inspect_mesh_state vs verify_contract) and the queue-management pairs (release_contract vs fail_contract).
All nine names are snake_case verb-first constructions (dispatch_contract, fulfill_contract, apply_contract_patch, verify_contract, etc.), with the noun consistently identifying the subject (contract/task/ttl/mesh_state). The only variation is poll_next_task, which is still clearly verb-first and readable.
Nine tools map cleanly onto one contract's full lifecycle plus two read-only observability operations — no padding and nothing feels missing from the set. The count sits comfortably in the well-scoped 3-15 range.
The surface covers dispatch → claim → fulfill/verify → apply/discard → terminal outcomes with retry, TTL, and failure paths well. The one gap is that a SUBMITTED (unclaimed) contract has no cancel/withdraw operation, so a requester who dispatched in error must wait for it to time out.