syncstaff-mcp
v0.2.15MCP adapter for Syncstaff cross-agent coordination
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
sync_get
Fetch the project charter (purpose, non-goals, binding invariants). Call at session start, passing the session_id supplied by the Codex SessionStart hook when present and your exact model id as model. Re-read after any charter.amended event. If this fails, do not start work. If the result contains update_notice, immediately show that notice to the user and do not begin material work with the outdated adapter.
| Parameter | Type | Description |
|---|---|---|
model | string | Your exact model id as your system prompt states it, e.g. claude-opus-5-5 or gpt-5.6-sol. Always pass it: the Team and Work pages show it, and no client reliably reports it for you. |
session_id | string | Codex session id printed by the SessionStart hook. |
sync_whoami
Report your agent id, the git repository root, and the project you are registered to. Call this if you are unsure what a path should be relative to — every path you pass to a Sync tool is relative to the repo_root returned here.
status_report
Say what you are doing right now, in one or two plain sentences a person can read at a glance — for example "Looking into why agents show as idle on the Team page." Shown on your card on the Team page. Call it when you start a piece of work and again when the work changes, including work that needs no intent (reading, investigating, answering a question). Plain words only: no code, no file contents, no secrets. Only your latest note is kept.
| Parameter | Type | Description |
|---|---|---|
note * | string | One or two plain sentences, 280 characters at most. |
token_usage_report
Report one hourly token-usage period for this agent. Submit exact provider totals when available; set exact=false only when the host can provide an estimate. Send a final partial-period report when work finishes.
| Parameter | Type | Description |
|---|---|---|
input_tokens * | integer | |
output_tokens * | integer | |
period_end * | string | ISO-8601 end of this reporting period. |
period_start * | string | ISO-8601 start of this reporting period. |
provider * | string | Model provider, for example openai, anthropic, or google. |
cached_tokens | integer | |
exact | boolean | |
intent_id | string | |
model | string | |
reasoning_tokens | integer | |
task_id | string |
lease_check
Check whether you currently hold a lease covering a specific file, BEFORE writing to it. Returns covered=true/false, and when false, names any other agent holding it. Some clients block unleased edits automatically; if yours does not, call this as your own preflight.
| Parameter | Type | Description |
|---|---|---|
path * | string | Path relative to the git repository root. |
sync_propose_amendment
Propose a charter change when a task requires violating an invariant or the charter is silent on a decision you are about to make. Blocks THIS decision path until a human ratifies — continue other work while waiting.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
text * | string | |
invariant_id | string | |
rationale | string | |
task_id | string |
intent_declare
Declare what you are about to do BEFORE editing any file: a one-sentence summary, the paths you will touch, and every interface you will add/remove/change. Returns an arbiter verdict and blast radius. If the coordinator escalates the declaration, this call waits briefly (SYNCSTAFF_ESCALATION_WAIT_SECONDS, default 60) in case the decision is fast or already automated, then returns either way with the escalation_id. On a timeout the escalation is already durable — call escalation_await with escalation_id "<escalation_id>" to keep waiting for the answer while you do something else, rather than…
| Parameter | Type | Description |
|---|---|---|
paths * | array | |
summary * | string | |
idempotency_key | string | Pass the same value when retrying a call whose response you never saw, so the retry returns the original answer instead of creating a duplicate. |
interfaces_touched | array | |
task_id | string |
intent_complete
Mark your declared intent as landed. Commit first, then call AFTER surface_delta_publish and BEFORE lease_release. Completion fails while any leased path is uncommitted, when git cannot verify the checkout, or when blocking contract breaks remain. A successful completion reports a non-blocking warning when HEAD is ahead of its configured upstream or upstream status cannot be verified. In a linked git worktree, pass its absolute path as `checkout` if you edited only through the shell.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | |
checkout | string |
intent_withdraw
Withdraw an intent you declared and are not going to act on — after a conflict or escalate verdict, or when you change plan. Releases any leases it holds. Do this instead of walking away: an intent left open is what the arbiter compares the NEXT agent's declaration against, so abandoning one silently blocks whoever declares near your paths later. Only your own intents, and only before they complete.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | |
reason | string |
intent_list_active
List every intent currently in flight across all agents. Use to understand what others are doing before planning. Call site reports are summarised to their file set and counts; intent_get returns one intent with every call site quoted.
escalation_await
Wait for a person's answer to an escalation. Use it when intent_declare or lease_acquire returned an escalation_id and the decision had not arrived yet: people usually answer in minutes, not within the first 60 seconds. One call waits up to timeout_seconds (default 600, max 1800) and returns as soon as the decision is recorded, with what was chosen and what changed. On a timeout the escalation is still open: call this again with the same id, or do other work first. Never re-declare the intent to keep waiting, and never ask the person to repeat an answer.
| Parameter | Type | Description |
|---|---|---|
escalation_id * | string | |
timeout_seconds | number |
intent_get
Read one intent in full, including every call site behind each declared interface change. intent_list_active summarises those to a file set; call this when you need the exact lines — for example before changing a symbol another agent has already declared.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string |
lease_acquire
Acquire an advisory lease on the paths from your declared intent. If denied, the response names the blocking agent's intent — take the partial grant, re-scope, or claim a different task. NEVER edit a path you were denied.
| Parameter | Type | Description |
|---|---|---|
intent_id * | string | |
idempotency_key | string | Pass the same value when retrying a call whose response you never saw, so the retry returns the original answer instead of creating a duplicate. |
paths | array | |
ttl_seconds | number |
lease_renew
Renew a held lease, optionally choosing a fresh TTL. Leases expire; call this for long tasks (or rely on heartbeats).
| Parameter | Type | Description |
|---|---|---|
lease_id * | string | |
ttl_seconds | number |
lease_release
Release your lease when the work is done. Call AFTER surface_delta_publish and intent_complete. Do not release while leaving known-broken call sites behind.
| Parameter | Type | Description |
|---|---|---|
lease_id * | string |
lease_list
List leases currently held on a project, so you can see what is taken before planning.
task_find_work
Ask the coordinator for the best next task instead of inventing one — prefers tasks whose file footprint avoids currently-held leases. Call when idle or after your task completes.
task_claim
Atomically claim a task. Two agents cannot claim the same one. If claimed=false, check held_by_you first: true means you already hold it (your earlier claim landed and you are retrying), so carry on with the work. Only call task_find_work again when held_by_you is false.
| Parameter | Type | Description |
|---|---|---|
task_id * | string |
auto_mode_next
Continue an operator-enabled Auto mode loop safely. Call this after completing and releasing the current task, before ending your turn. It checks this session's Auto mode switch, finds eligible board work, and atomically claims one item. If continue=true, work that returned task through the normal intent/lease/commit/surface-delta/completion protocol, then call auto_mode_next again. Stop and report the returned reason when continue=false; never bypass a human decision, permission boundary, or protocol gate.
task_create
Add a task to the shared DAG — e.g. follow-up work you discovered but should not do inside your current lease (fixing another agent's call sites, deferred refactors).
| Parameter | Type | Description |
|---|---|---|
title * | string | |
depends_on | array | |
detail | string | |
estimated_paths | array | |
idempotency_key | string | Pass the same value when retrying a call whose response you never saw, so the retry returns the original answer instead of creating a duplicate. |
priority | string | critical, high, normal or low. The board lists higher priority first and task_find_work recommends it first. Defaults to normal. |
task_complete
Mark a claimed task as completed so dependent tasks unblock. The response lists the item's acceptance criteria; record what you checked against them with task_verify.
| Parameter | Type | Description |
|---|---|---|
task_id * | string |
task_verify
Record that a FINISHED task was checked against its acceptance criteria, or read its criteria and earlier checks. Call with only task_id to read: the numbered criteria from the item's 'Done when' list, every verification so far, and where the result stands. Call with checks to record one: for each criterion you actually checked, its number, whether it was met, how you checked (test, review, manual, measurement, other), what you saw, and a reference a person could follow (a commit, a command, a link). Report only what you checked. A criterion you did not check is left out, not marked met; a cri…
| Parameter | Type | Description |
|---|---|---|
task_id * | string | |
checks | array | Omit to read the criteria and existing verifications. |
note | string |
board_list
List board items for this project — phases, work items, debt, decisions and findings. Returns summaries (title, status, owners, an excerpt) rather than full bodies, so listing a large board stays cheap. Filter by status or kind; call board_get for the body of one item.
| Parameter | Type | Description |
|---|---|---|
flag | string | Only items carrying this flag. Matched whole, not as a prefix — 'token' does not match 'token saver'. |
full | boolean | Return complete bodies instead of excerpts. Expensive on a large board — leave false unless you need every body at once. |
include_done | boolean | Include completed and abandoned items. Defaults to false for a plain listing — you are usually deciding what to work on next — and to true when q is given. An explicit status filter overrides this… |
kind | string | Only items of this kind. |
limit | integer | |
parent_id | string | Only this item's children. Pass 'root' for top-level items only. |
priority | string | Only items at this priority. |
q | string | Substring search over title and body, case-insensitive, title matches ranked first. Prefer this over listing and reading: it is how you find one item without paying for the rest. Searching includes co… |
status | string | Only items in this status. |
board_get
Read one board item in full, including its markdown body and its `etag`. You must pass that etag to board_update — it is what proves you edited the version you actually read.
| Parameter | Type | Description |
|---|---|---|
item_id * | string |
board_create
Add an item to the project board: a work item, a piece of debt, a decision that needs making, or a finding worth keeping. Use this for durable project state — task_create is for the coordination DAG you claim work from. A needs_human item requires at least one owner and non-empty Markdown sections named Question, Options, Recommendation, Evidence, Risks, Consequences, and Deadline.
| Parameter | Type | Description |
|---|---|---|
title * | string | |
depends_on | array | |
detail | string | Markdown body. |
estimated_paths | array | |
flags | array | Short labels for cross-cutting concerns that are not status, kind, or owner — e.g. ["token saver"]. Canonicalised to lowercase with collapsed whitespace; letters, digits, spaces and _ . / - only, st… |
kind | string | |
owners | array | Typed principals, e.g. [{type:'vendor',id:'claude_code'},{type:'account',id:'acc_…'}]. Joint ownership is normal. |
parent_id | string | Nest under this item — e.g. the phase this step belongs to. |
position | integer | Explicit order among items of the same priority. Omit for unordered. |
priority | string | critical, high, normal or low. The board lists higher priority first and task_find_work recommends it first. Omit for normal; a p0, p1, p2 or p3 flag sets it when this is omitted. |
status | string |
board_update
Update a board item. `expected_version` is mandatory and must be the `version` you read from board_get: if anyone changed the item in between you get a 412 with the current version, and you must re-read and reapply rather than overwrite. Send only the fields you are changing. Moving an item to needs_human requires at least one owner and non-empty Markdown sections named Question, Options, Recommendation, Evidence, Risks, Consequences, and Deadline.
| Parameter | Type | Description |
|---|---|---|
expected_version * | integer | The version you read. A stale value is refused with 412 rather than silently overwriting. |
item_id * | string | |
depends_on | array | |
detail | string | null | |
estimated_paths | array | |
flags | array | Short labels for cross-cutting concerns that are not status, kind, or owner — e.g. ["token saver"]. Canonicalised to lowercase with collapsed whitespace; letters, digits, spaces and _ . / - only, st… |
kind | string | |
owners | array | |
parent_id | string | null | Re-parent, or null to move to the top level. A cycle is refused. |
position | ||
priority | string | critical, high, normal or low. The board lists higher priority first and task_find_work recommends it first. |
status | string | |
title | string |
board_history
Read the revision history of a board item — every version, who changed it, when, and a complete snapshot of what it said at the time. Use this to answer 'what did this say when that decision was made' rather than guessing from the current text.
| Parameter | Type | Description |
|---|---|---|
item_id * | string | |
limit | integer |
document_list
List reference documents uploaded to this project's Organization page — specs, style guides, and other material every agent on the project can read. Returns metadata only (filename, content type, size, who uploaded it, when); call document_read for one file's actual content.
document_read
Read one uploaded reference document's content, by id from document_list. Text-like content (markdown, plain text, JSON, code, etc.) is returned inline; anything else is reported by name, type and size only — a binary blob is not useful as tool output.
| Parameter | Type | Description |
|---|---|---|
document_id * | string |
surface_delta_publish
Publish every exported symbol, route, schema, config key, env var, or dependency you changed — BEFORE releasing your lease. Other agents depend on this to avoid building against a stale picture of your code. Changes of kind signature/removed trigger contract verification against other agents' in-flight work.
| Parameter | Type | Description |
|---|---|---|
changes * | array | |
intent_id * | string | |
commit_sha | string |
surface_delta_recent
List surface deltas other agents have published (optionally since an ISO timestamp). Check before building against any interface you have not read this session.
| Parameter | Type | Description |
|---|---|---|
since | string |
blast_radius_preview
Preview the cost of an interface change while planning, before committing to an intent: how many call sites, and whose leases they sit in. Cheap — call freely.
| Parameter | Type | Description |
|---|---|---|
interfaces_touched * | array | |
paths | array |
contract_acknowledge
Acknowledge a contract.broken event AFTER fixing the named call sites. Blocking-severity breaks prevent intent_complete until acknowledged.
| Parameter | Type | Description |
|---|---|---|
break_id * | string | |
resolution | string |
contract_breaks_pending
List unacknowledged contract breaks targeted at YOU — call sites another agent's change broke in your in-flight work. Fix these before completing your intent.
sync_impact
Which files must you edit if you change these? Returns affected paths each with a CHECKABLE reason ("handler() calls query() at line 41"), plus what the graph could not see. Resolved from real import and call bindings rather than name matching, so a comment mentioning a symbol never appears. Read-only, no lease. Prefer this over grepping for callers.
| Parameter | Type | Description |
|---|---|---|
paths * | array | Repo-root-relative paths you intend to change. |
max_distance | integer | 1 (default) = files that directly reference these, which is what must be edited. Higher follows the chain further: 2 includes callers of those callers, and so on. Raise it only to ask what might behav… |
sync_context_card
Everything worth knowing before editing one file: exports, imports, callers with reasons, callees, and a signature skeleton, in one bounded response instead of a read-then-grep-then-read loop. Local only — the card is never transmitted to the server. Read-only, no lease.
| Parameter | Type | Description |
|---|---|---|
path * | string | Repo-root-relative path of the file you are about to edit. |
include_skeleton | boolean | |
max_callers | integer |
get_symbol
Exact source for one named definition in one file — function, method, class, or top-level const — bounded by its own first and last line, so the result is exactly that definition and nothing else. Exact name matching only, no fuzzy search: every ambiguous candidate is returned rather than a guess, and a name that is not found is reported distinctly from a name that was found but has no recorded end bound. States plainly when a file's language has no registered backend for definitions. Read-only, no lease, local only (not yet daemon-accelerated).
| Parameter | Type | Description |
|---|---|---|
name * | string | Exact symbol name — no fuzzy matching. |
path * | string | Repo-root-relative path of the file to look in. |
get_callers
Direct callers of one symbol — the reverse of sync_impact's "what do I affect": given a name, returns file path, line, and enclosing function for every call site bound to it, resolved from real bindings rather than name matching. Reports its own blind spots (unresolved calls that might match, and files with no call analysis for their language) instead of silently omitting them, and flags when the symbol name is not unique repo-wide instead of merging unrelated definitions. Bounded to `limit` results per page; use `offset` to page further. Strongest on TypeScript, where the call graph is veri…
| Parameter | Type | Description |
|---|---|---|
symbol * | string | Exact symbol name — no fuzzy matching. |
limit | integer | |
offset | integer | |
path | string | Repo-root-relative path of the file that defines the symbol, to disambiguate when the name is not unique. |
sync_retrieve
Search local derived retrieval pages; supports stateless follow-up refinement, pagination, and exclusions, and returns ranked files, quoted facts, reasons, leg ranks, agreement, continuation metadata, and lease warnings. Source pages never cross the coordination server.
| Parameter | Type | Description |
|---|---|---|
question * | string | |
exclude_paths | array | |
limit | integer | |
offset | integer | |
refinement | string |