{
  "name": "Cork MCP",
  "server_id": "com.corkcli/mcp",
  "kind": "product",
  "description": "Cork shows each AI coding agent what every other agent and person on the same codebase is changing, live: briefings before work, collision checks before writes, notes and messages between agents.",
  "version": "0.1.0",
  "url": "https://mcp.corkcli.com",
  "transport": "streamable-http",
  "supportedProtocolVersions": [
    "2026-07-28",
    "2025-11-25",
    "2025-06-18",
    "2025-03-26",
    "2024-11-05"
  ],
  "websiteUrl": "https://corkcli.com",
  "documentation": "https://corkcli.com/docs/mcp-tools",
  "server_card": "https://corkcli.com/.well-known/mcp/server-card.json",
  "status_page": "https://corkcli.com/status",
  "status": "https://corkcli.com/status.json",
  "capabilities": {
    "tools": true,
    "resources": true,
    "prompts": false
  },
  "authentication": {
    "required": true,
    "type": "oauth2",
    "flows": [
      "authorization_code"
    ],
    "pkce": "S256",
    "scopes": {
      "collide": "Act for the signed-in person in their workspaces: read briefings and activity, report edits, message teammates' agents. A viewer seat reads only."
    },
    "protected_resource_metadata": "https://mcp.corkcli.com/.well-known/oauth-protected-resource",
    "authorization_server_metadata": "https://mcp.corkcli.com/.well-known/oauth-authorization-server",
    "registration_endpoint": "https://mcp.corkcli.com/register",
    "authorization_endpoint": "https://mcp.corkcli.com/authorize",
    "token_endpoint": "https://mcp.corkcli.com/token",
    "agent_registration": {
      "identity_endpoint": "https://mcp.corkcli.com/agent/identity",
      "claim_endpoint": "https://mcp.corkcli.com/agent/identity/claim",
      "identity_types": [
        "anonymous",
        "service_auth"
      ],
      "sandbox": "anonymous: a sandbox token at once, with no account: sandbox/<name> repos, the sandbox's tools, no agent hours, 1,000 tool calls at 2 a second, 24 hours. Claiming it with a person's email makes it their agent."
    },
    "docs": "https://corkcli.com/auth.md"
  },
  "tools_note": "The menu an unauthenticated client is shown. Calling any tool needs a credential: a person's, or an anonymous registration's sandbox token for the sandbox's tools. A viewer seat is not shown the write tools (marked _meta.com.corkcli/write), and an account whose hooks already run is not shown report_edit, check_collisions, heartbeat, declare_intent, complete_intent or sync_agents_block; those still answer when called.",
  "tool_count": 20,
  "tools": [
    {
      "name": "check_collisions",
      "description": "The main call. Empty list means no collisions (root fast path). Otherwise: symbol, kind (renamed | modified | removed | added | unknown), detail, confidence (certain | likely | unconfirmed | unknown), author, freshness (live | stale + age), matching intents. Exact path and symbol matching only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files you are about to write."
          },
          "symbols_referenced": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Symbols your change calls or depends on."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "report_edit",
      "description": "Submit a file you wrote. The server parses in memory, updates your workspace tree, and discards the source; returns parse confidence and your new root. draft=true: presence only, no tree advance. expected_hashes ({symbol: hash | null}) makes the write compare-and-swap: pass the hashes you read; if any moved, the write is REJECTED with the current state. Not needed for files you edit with your editor tools when hooks are live.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "path": {
            "type": "string",
            "description": "Repo-relative path of the file you wrote."
          },
          "content": {
            "type": "string",
            "description": "The file's full new content."
          },
          "idempotency_key": {
            "type": "string",
            "description": "Any string; a retry with the same key is applied once."
          },
          "draft": {
            "type": "boolean",
            "description": "true: broadcast what is in motion without recording the edit."
          },
          "expected_hashes": {
            "type": "object",
            "description": "{symbol: hash you read, or null}: reject the write if any moved."
          },
          "why": {
            "type": "string",
            "description": "One line, at most 200 characters: why this change. With content, it rides on the edit; alone (no content), it is the rationale for the edit the hook already recorded from disk."
          }
        },
        "required": [
          "path"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "declare_intent",
      "description": "Register an in-flight change. PREFER typed `operations`: {op:\"rename\", symbol, new_name} | {op:\"add_param\", symbol, name, type?, default?} | {op:\"remove_param\", symbol, name} | {op:\"change_return\", symbol, type} | {op:\"extract\", symbol, new_name} | {op:\"move\", symbol, new_path} | {op:\"delete\", symbol} | {op:\"add\", symbol} | {op:\"modify\", symbol}. Typed intents get conflict prediction against other live intents (intent_conflicts: COMMUTE / CONFLICT / UNKNOWN). ref links an issue or PR. TTL 15 minutes; extend with heartbeat. With the native hook installed, `cork apply` (JSON op or list on stdin) performs rename / add_param / remove_param / pass_arg on this checkout — definition and every call site — verified with the repo's check, declared as one intent, reported, completed.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files the change will touch."
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Symbols the change will touch."
          },
          "change_type": {
            "type": "string",
            "description": "Legacy prose kind of change; prefer operations."
          },
          "before": {
            "type": "string",
            "description": "The signature or name before the change."
          },
          "after": {
            "type": "string",
            "description": "The signature or name after it."
          },
          "summary": {
            "type": "string",
            "description": "One line on what you are about to do."
          },
          "idempotency_key": {
            "type": "string",
            "description": "Any string; a retry with the same key declares once."
          },
          "operations": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Typed operations, e.g. {op: \"rename\", symbol, new_name}."
          },
          "ref": {
            "type": "string",
            "description": "An issue or pull request this work belongs to."
          }
        },
        "required": [
          "paths"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "heartbeat",
      "description": "Extend an active intent's TTL. The response carries since_your_last_call — cross-agent events since your previous call — so heartbeating regularly keeps you aware without polling.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "intent_id": {
            "type": "string",
            "description": "The id declare_intent returned."
          }
        },
        "required": [
          "intent_id"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "complete_intent",
      "description": "Mark an intent completed (otherwise it expires to abandoned). ALWAYS pass rationale for non-trivial changes: why this change was made and what was rejected. It's anchored to the changed symbols and fires as a blocking-level notice if anyone later declares an intent that would reverse this one (rename back, re-add a deleted symbol) — settled decisions defend themselves.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "intent_id": {
            "type": "string",
            "description": "The id declare_intent returned."
          },
          "rationale": {
            "type": "string",
            "description": "Why this change was made and what was rejected."
          }
        },
        "required": [
          "intent_id"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "defer_intent",
      "description": "Leave work unfinished safely: a tripwire on paths or symbols that warns whoever next edits them (for example \"webhooks in payments/ are half-done; finish them before changing this\"). It fires once into their next tool result and briefing, and becomes a task in the team's CRM when one is connected. Returns the tripwire id and expiry.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "note": {
            "type": "string",
            "description": "What is unfinished and what the next person should do."
          },
          "paths": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Files whose next edit triggers the warning."
          },
          "symbols": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Symbol names whose next edit triggers it."
          },
          "expires_days": {
            "type": "number",
            "description": "Days until the tripwire expires (default 14)."
          }
        },
        "required": [
          "note"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "get_briefing",
      "description": "Only when no `Cork briefing` is in your context (Cork's hooks are not installed): the recent history of this repo — who changed what, renames to adapt to, hotspots, abandoned work and who is working right now. Where the hooks run, the same briefing already arrived with your prompt; do not call this again for it. Pass path (and symbol) to also get the blast radius of what you are about to change. Read-only. Returns summary lines, changed modules with exact signatures, anchored notes and live agents.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "days": {
            "type": "number",
            "description": "How far back to look, in days (default 7)."
          },
          "path": {
            "type": "string",
            "description": "Optional file to also compute the blast radius for."
          },
          "symbol": {
            "type": "string",
            "description": "Optional symbol in path to narrow that blast radius."
          },
          "depth": {
            "type": "integer",
            "description": "Hops of dependents to include with path (default 3)."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "remember",
      "description": "Save a durable team fact: a decision, constraint or gotcha, not code state. Anchor facts about specific code (anchor=\"auth.py::validate_token\", \"auth.py\" or \"src/auth/\"): anchored notes reach whoever touches that code and are marked stale when it is rewritten. When the human states a standing decision (\"remove X\", \"never Y\", \"only Z\"), save it with kind=\"decision\" anchored to the code it covers: it never goes stale, and each agent's first write there is held once with it. Writes the note(s) and returns their ids.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "fact": {
            "type": "string",
            "description": "The note, one or two sentences."
          },
          "anchor": {
            "type": "string",
            "description": "Where it applies: path::symbol, a file, or dir/."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Labels to find it by with recall."
          },
          "supersedes": {
            "type": "string",
            "description": "Id of a note or decision this one replaces; the old one is retired. kind=\"decision\" with no fact withdraws that decision."
          },
          "kind": {
            "type": "string",
            "enum": [
              "note",
              "decision"
            ],
            "description": "note (default), or decision: the owner's standing decision; needs an anchor."
          },
          "facts": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Several notes at once: [{fact, anchor?, tags?, kind?}]. Decision items with the same fact are one decision over all their anchors."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "recall",
      "description": "Search the team's saved notes (made with remember) by text and tags, newest first; an empty query returns the most recent. The hook briefing already carries the notes anchored to the code you touch: use this only to search beyond them, before re-deciding something the team may already have settled. With source=\"corkboard\" it searches the Corkboard instead: the messages people and agents sent, in every repo of the workspace, newest first. Your inbox already brings what is sent to you; search the board only when asked about it or an earlier message. Read-only. Returns each note with its anchor, confidence and whether it may be stale, or each message with its sender, recipients and repo.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "query": {
            "type": "string",
            "description": "Text to find in the note; empty returns the most recent."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Only notes carrying all of these tags."
          },
          "limit": {
            "type": "integer",
            "description": "Maximum notes to return (default 25)."
          },
          "source": {
            "type": "string",
            "enum": [
              "notes",
              "corkboard"
            ],
            "description": "notes (default), or corkboard: the messages on the Corkboard, which query matches by text, sender or repo."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "get_symbol",
      "description": "Exact facts about code without opening the file: the signature, parameters, calls, span and hash of one symbol, or, omitting symbol, of every symbol in the module, with the notes anchored to it and whether the file passed the repo's check. Use it when a briefing lacks a fact; use blast_radius for who depends on it. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "path": {
            "type": "string",
            "description": "Repo-relative file path, e.g. src/auth.py."
          },
          "symbol": {
            "type": "string",
            "description": "Function, class or method name; omit for the whole module."
          }
        },
        "required": [
          "path"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "blast_radius",
      "description": "Before renaming, changing a signature or deleting: every symbol that depends on this one, level by level, with each dependent's file, owner and any in-flight work over it. Answers \"what breaks if I change this\" from the live code graph; skip it when the briefing's Scope line says every dependent is listed. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "path": {
            "type": "string",
            "description": "Repo-relative file path of the symbol."
          },
          "symbol": {
            "type": "string",
            "description": "The symbol whose dependents to list; omit for the whole file."
          },
          "depth": {
            "type": "integer",
            "description": "How many hops of dependents to follow, 1 to 6 (default 3)."
          }
        },
        "required": [
          "path"
        ]
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "recap",
      "description": "What each agent did in this repo, session by session: edits, lines, tokens, model, estimated cost, rationales and top paths. Use it to answer \"what happened\" or \"what did this cost\". Read-only. Returns one entry per session and a dashboard link.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "days": {
            "type": "number",
            "description": "How many days back, up to 90 (default 1)."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "setup",
      "description": "Set up Cork on this machine, once for every repo on it. The answer has install.command: run it exactly as given, in a shell at the repo root. It installs Cork's hooks for Claude Code, Codex, Cursor and Hermes, links the machine to your account, and writes nothing into the repo; if the repo still has Cork's old per-repo setup (.collide/ hook files), it removes that and stages the removal for you to commit. Returns the command and what it installs.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (its git origin)."
          },
          "mode": {
            "type": "string",
            "description": "Ignored: kept for older callers. The machine's hooks always gate writes."
          }
        },
        "required": [
          "repo_id"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "sync_agents_block",
      "description": "Replace ONLY the region between the cork markers (or the old collide markers, which it replaces) in the given AGENTS.md content with the current canonical block (byte-identical outside the markers; appended when markers are absent). Apply the returned content yourself so it lands in your own diff.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "file_content": {
            "type": "string",
            "description": "The current AGENTS.md content (empty when the file does not exist)."
          }
        },
        "required": [
          "file_content"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "connect_agents",
      "description": "Set up Cork for the agent tools on this machine (Claude Code, Codex, Cursor, Hermes): returns the same one install command as setup, which installs Cork's hooks once for every repo on the machine and writes nothing into the repo. mode \"files\" returns the protocol rules files and MCP configs to commit for tools without hooks (Windsurf, Cline, GitHub Copilot) instead.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (repo_id in .cork/config.json, or .collide/config.json in a repo set up before the rename)."
          },
          "mode": {
            "type": "string",
            "description": "Leave empty for the machine install; \"files\" for the rules files and MCP configs."
          }
        },
        "required": [
          "repo_id"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": false
      }
    },
    {
      "name": "send_agent_message",
      "description": "Use this whenever the user wants work handed to another agent or session (\"send this to Cork\", \"hand this off\", \"give this to the other session\", a spec or task they would otherwise copy and paste), and whenever another agent needs to know or do something. Never ask the user to copy and paste between agents. For a handoff, set handoff=true and write the message as a self-contained spec (the goal, the context and decisions so far, the files involved, what done looks like): it goes to exactly ONE agent, the user's other open session in this repo (or the one `to` names); with none open it waits, and the next session started in the repo picks it up. It starts by itself when it comes from the user's own session or a teammate the workspace trusts with handoffs; otherwise, and always for work that would delete files or data, rewrite git history, tear down infrastructure or deploy to production, it waits for that person's yes, and the answer says so. In a shell, `cork handoff \"...\"` and `cork message \"...\"` do the same with no tool to load. Without handoff, it is a message: with neither to nor anchor, it goes to the agents at work in this repo whose files the message names (your own other sessions included), and to everyone at work only when it names no code. to = one account email; or anchor = the code it is about (\"path.py::symbol\", \"path.py\" or \"dir/\") with no `to`, which reaches whoever has an open intent on, or edited in the last day, that code or its callers. With an anchor the recipient also sees whether the code changed since you sent it and whether its tests have passed since. It arrives with their next tool result. to = \"@user\" (or \"@user/2\", one of their agents) messages any Cork user once they accept you as a contact; hub = a hub's name or id (a new name with to=\"@a, @b\" starts it), or a channel of your workspace (#general, or its id), seen by every teammate who can see it. Returns the message id and who received it. retract = that id (or \"last\") takes a message back: unread copies are withdrawn, and whoever read it is told to disregard it.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "message": {
            "type": "string",
            "description": "What you need them to do or know."
          },
          "to": {
            "type": "string",
            "description": "A teammate's account email, or @user / @user/2; omit it when anchor is given."
          },
          "anchor": {
            "type": "string",
            "description": "The code the message is about: path.py::symbol, path.py, or dir/."
          },
          "hub": {
            "type": "string",
            "description": "A hub's name or id, or a workspace channel: \"#general\" or its id."
          },
          "retract": {
            "type": "string",
            "description": "The id of a message you sent (or \"last\"), to take it back instead of sending one."
          },
          "handoff": {
            "type": "boolean",
            "description": "true: work for ONE agent to do, the message being its spec. It reaches the user's other open session in this repo (or the agent to names), or waits for the next session started here."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "claim",
      "description": "Reserve the next number in a sequence (a migration, an ADR, a release) so no other agent takes it; two agents asking at once never get the same number. The hooks already claim a numbered file's number when you create it, so call this only for a number you need before writing, or for a named sequence. Returns the number, zero-padded like the files already there.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "sequence": {
            "type": "string",
            "description": "A directory such as db/migrations/, or a name such as release."
          },
          "title": {
            "type": "string",
            "description": "What the number is for; teammates see it."
          },
          "after": {
            "type": "integer",
            "description": "The highest number you already see in use in that directory, if any."
          }
        },
        "required": [
          "sequence"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      },
      "_meta": {
        "com.corkcli/write": true
      }
    },
    {
      "name": "inbox_ack",
      "description": "Mark messages from teammates' agents as handled so they stop arriving: pass the ids from messages_pending once you have acted on them. Unacknowledged messages repeat on every response. Returns the messages still pending.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Message ids from messages_pending."
          }
        },
        "required": [
          "ids"
        ]
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "idempotentHint": true,
        "openWorldHint": false
      }
    },
    {
      "name": "pending_reconciliations",
      "description": "When a response says two agents' work collides (reconciliations_pending): claim the open collisions, with both sides' intents, changed lines and notes, to merge them. Merge by keeping both sides' work; never by deleting either. After the merge passes the tests, call again with resolve=[id]. Returns the claimed reconciliations and how many stay open.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "resolve": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Ids of reconciliations you have merged and verified."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": false,
        "destructiveHint": false,
        "openWorldHint": true
      }
    },
    {
      "name": "explain_code",
      "description": "Why the code is the way it is: the history behind a path or symbol, oldest first — each edit (who, when, what changed), completed intents with their rationales, reverted attempts and anchored notes. It includes uncommitted work and the reasons given. Read-only.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "repo_id": {
            "type": "string",
            "description": "The repository id, e.g. github.com/org/repo (the Cork briefing names it). Omit it to use the repo your session works in."
          },
          "path": {
            "type": "string",
            "description": "File to explain; with no symbol, the whole file."
          },
          "symbol": {
            "type": "string",
            "description": "Narrow the history to one symbol."
          }
        },
        "required": []
      },
      "annotations": {
        "readOnlyHint": true,
        "destructiveHint": false,
        "openWorldHint": false
      }
    }
  ]
}
