{"serverInfo":{"name":"changebox","version":"0.2.0"},"authentication":{"required":true,"schemes":["oauth2"]},"tools":[{"name":"changebox_me","title":"Who am I","description":"Show the organization, apps, and queue counts this token can see.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"title":"Who am I","readOnlyHint":true}},{"name":"changebox_metrics","title":"Issue-to-merge metrics","description":"Issue-to-merge time for an app. Median and p90 of filed→merged over a window (24h default), split into external PR and full cycle, the median of each stage, rework counts, and agent minutes and spend that produced no PR. Pass change to include that change's stages.","inputSchema":{"type":"object","properties":{"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"window":{"type":"string","enum":["24h","7d","30d"],"description":"Changes filed in this window. Default 24h."},"change":{"type":"string","minLength":1,"description":"Optional. Include this change's stage durations and rework counts."}},"additionalProperties":false},"annotations":{"title":"Issue-to-merge metrics","readOnlyHint":true}},{"name":"changebox_queue","title":"Change queue","description":"List changes. Defaults to everything open (reported, in_progress, in_review, pr_ready, reopened, blocked, failed). Filter by status list, app, or free text (matches id, description, expected, path, reporter email).","inputSchema":{"type":"object","properties":{"status":{"type":"array","items":{"type":"string","enum":["reported","in_progress","in_review","pr_ready","live","confirmed","reopened","blocked","wontfix","failed","open","closed"]},"description":"Statuses to include. \"open\" and \"closed\" are shortcuts."},"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"q":{"type":"string","description":"Search text."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"How many changes to return. Default 50, max 200."},"since":{"type":"string","description":"ISO timestamp; only changes updated after this."}},"additionalProperties":false},"annotations":{"title":"Change queue","readOnlyHint":true}},{"name":"changebox_change","title":"Change detail","description":"Full report for one change: what/expected, page, screenshots, repo + base branch, timeline, and what the cloud agent runs cost.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Change detail","readOnlyHint":true}},{"name":"changebox_claim","title":"Pick up a change","description":"Mark a change in_progress. Safe to call twice.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Pick up a change","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_link_pr","title":"Link a PR","description":"Attach a pull request. Moves the change to pr_ready and puts the PR on the Slack card.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"prUrl":{"type":"string","format":"uri","description":"https PR URL."}},"required":["ref","prUrl"],"additionalProperties":false},"annotations":{"title":"Link a PR","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_mark_live","title":"Mark live","description":"The fix is deployed. Reporter sees 'Ready to check' and can confirm or send it back.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"note":{"type":"string","maxLength":4000,"description":"Optional note for the timeline."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Mark live","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_set_status","title":"Set status","description":"Move a change to a specific status with an optional note. Use blocked or wontfix when you cannot proceed. The server enforces legal transitions and returns 409 otherwise.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"status":{"type":"string","enum":["reported","in_progress","in_review","pr_ready","live","confirmed","reopened","blocked","wontfix","failed"],"description":"The status to move the change to. The server rejects illegal transitions."},"note":{"type":"string","maxLength":4000,"description":"Why. Shown on the timeline."},"prUrl":{"type":"string","format":"uri","description":"Pull request URL to attach when moving to pr_ready."}},"required":["ref","status"],"additionalProperties":false},"annotations":{"title":"Set status","readOnlyHint":false,"destructiveHint":true}},{"name":"changebox_assign","title":"Assign","description":"Set or clear who is working a change without moving its status. Pass a member's name or user id; omit to unassign.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"assignee":{"type":"string","description":"Member name or user id. Omit to clear."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Assign","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_approvals","title":"Open gates","description":"The approval queue: every change waiting at the Build gate (may an agent build this?) or the Ship gate (may this PR be released?). Newest first.","inputSchema":{"type":"object","properties":{"gate":{"type":"string","enum":["build","ship"],"description":"Only one kind of gate."},"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"limit":{"type":"integer","minimum":1,"maximum":200,"description":"How many open gates to return. Default 50, max 200."}},"additionalProperties":false},"annotations":{"title":"Open gates","readOnlyHint":true}},{"name":"changebox_approve","title":"Decide a gate","description":"Approve or reject the Build or Ship gate on a change. Approving Build starts the agent; approving Ship lets it be marked live. Rejecting Build closes the change as won't fix; rejecting Ship sends it back with your note as the agent's follow-up. Recorded with who decided and that it came through MCP. The token needs the approve scope.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"gate":{"type":"string","enum":["build","ship"],"description":"Which gate to decide: build (may an agent build this?) or ship (may this PR be released?)."},"decision":{"type":"string","enum":["approve","reject"],"description":"approve starts the agent (build) or unlocks live (ship). reject closes as won't fix (build) or sends the PR back (ship)."},"note":{"type":"string","maxLength":4000,"description":"Why. Required when rejecting Ship."}},"required":["ref","gate","decision"],"additionalProperties":false},"annotations":{"title":"Decide a gate","readOnlyHint":false,"destructiveHint":true}},{"name":"changebox_comment","title":"Comment","description":"Leave a note on the change timeline without changing status.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"message":{"type":"string","minLength":1,"maxLength":4000,"description":"The note to leave on the timeline."}},"required":["ref","message"],"additionalProperties":false},"annotations":{"title":"Comment","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_report","title":"File a change","description":"File a change on an app without the widget: what you saw, what you expected, where. An admin token naming an app the org does not have yet (a name, or a repository owner/name) creates it first. Use it to log a bug you found while testing so the queue, Slack card and Cloud Agent path all start from the same record. description and expected are each capped at 4000 characters, so an exact artifact (a document, a fixture, a config the change must deliver) goes in context. Intake and the build agent read context, minus the reserved keys via, tool, filedBy, reporter*, and clarification, as a \"Context supplied by the reporter\" section. context is capped at 64 KB. Over that cap the call is refused; put the artifact on the timeline with changebox_comment.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"description":{"type":"string","minLength":1,"maxLength":4000,"description":"What happened."},"expected":{"type":"string","maxLength":4000,"description":"What should have happened."},"impact":{"type":"string","enum":["broken","confusing","polish"],"description":"Default broken."},"url":{"type":"string","description":"Absolute page URL where it happened."},"context":{"type":"object","description":"Exact artifact or extra evidence for intake and the build agent (a document, fixture, config, ids, log lines), up to 64 KB. Reserved keys via, tool, filedBy, reporter*, and clarification are not shown to them. Over the cap, use changebox_comment."},"repository":{"type":"string","description":"One of the app's repositories (id or URL) when the fix belongs somewhere other than the primary repo."},"reporter":{"type":"object","description":"File as this teammate (by email). Omit with a personal token — it files as you.","properties":{"email":{"type":"string","description":"Teammate email. They must already be in the organization."},"name":{"type":"string","description":"Display name to store on the report."}}}},"required":["app","description"],"additionalProperties":false},"annotations":{"title":"File a change","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_github_connect","title":"Connect GitHub","description":"A link that installs the ChangeBox GitHub App on this organization's repositories (read-only is enough). Open it, pick the repositories; GitHub returns to the console. Says whether GitHub is already connected.","inputSchema":{"type":"object","properties":{},"additionalProperties":false},"annotations":{"title":"Connect GitHub","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_baseline_order","title":"Order a Baseline","description":"A Stripe Checkout link for the one-time Baseline audit of the whole product, on this organization. Nothing is charged until the person pays at the link. An organization that already ordered one is told so.","inputSchema":{"type":"object","properties":{"depth":{"type":"string","enum":["standard","thorough"],"description":"Default standard."},"repositories":{"type":"integer","minimum":1,"description":"How many repositories to audit. Default 1."}},"additionalProperties":false},"annotations":{"title":"Order a Baseline","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_report_failure","title":"Report a failure","description":"Report a structured failure from a running app: a pipeline step, a gate, a job. A code failure files a change on first sight. Repeats attach to the open change (or the live one) and the card counts them (seen 7× across 4 projects). kind=quality (a judge verdict, a retry the system handled) never files alone — it files once when enough distinct subjects land in a day. outcome=success records a successful run of that step and files nothing; those runs confirm a live fix. A production report of a fingerprint already fixed on dev waits for the release.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"environment":{"type":"string","minLength":1,"maxLength":60,"description":"Where it happened: production, staging, development."},"step":{"type":"string","minLength":1,"maxLength":120,"description":"Pipeline step or surface, e.g. gate-a or render."},"surface":{"type":"string","maxLength":120,"description":"Same as step when the app names a surface instead. step wins when both are set."},"errorClass":{"type":"string","maxLength":120,"description":"Error type, e.g. TypeError or ProviderError."},"message":{"type":"string","maxLength":2000,"description":"The error message. Ids and counts are stripped for the fingerprint; the original is kept as evidence."},"stack":{"type":"string","maxLength":4000,"description":"Stack or log excerpt. Truncated at 4000 characters."},"subjects":{"type":"object","description":"Ids this failure is about, e.g. { projectId, episode, stageRunId }. Distinct values drive the quality threshold and the card line.","additionalProperties":{"type":"string"}},"occurredAt":{"type":"string","description":"ISO time the failure happened. Defaults to now."},"buildSha":{"type":"string","maxLength":64,"description":"Build SHA of the app that reported it."},"severity":{"type":"string","maxLength":80,"description":"Hint. A user-visible stall or a charge without a result files as broken; anything else is confusing."},"kind":{"type":"string","enum":["code","quality"],"description":"code files on first sight. quality only counts until the subject threshold."},"outcome":{"type":"string","enum":["failure","success"],"description":"success counts a run of this step that finished. It never files a change."}},"required":["app","environment","step"],"additionalProperties":false},"annotations":{"title":"Report a failure","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_send_review","title":"Send review findings to the builder","description":"Send the builder a follow-up on the linked pull request. With only ref, sends the stored review findings and refuses when that review is clean or empty — pass instructions (or findings) to say what to change, which starts the follow-up even when the review is clean or the change is already pr_ready. The change returns to in_progress. Refuses, and does not start an agent, when the change's repository or linked pull request is not one of the app's current repositories, or when that GitHub repository is archived. Re-file the change against the app's primary repository.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"instructions":{"type":"string","maxLength":4000,"description":"What the builder should change. Starts a follow-up even when the stored review is clean."},"findings":{"type":"string","maxLength":4000,"description":"Same as instructions."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Send review findings to the builder","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_verify","title":"Send the Verifier","description":"On a live change: point the Verifier at a production page (url; must be on the app's origins; empty string clears it) and/or send it now (ask: true). Use url when the report came from a dev project, an API route or an admin screen and the fix is visible on a different production page.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"url":{"type":"string","maxLength":2000,"description":"Production page the Verifier should open instead of the reported one. Empty string clears it."},"ask":{"type":"boolean","description":"Send the Verifier now."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Send the Verifier","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_models","title":"Cursor models for this org","description":"The Cursor model catalog the key for an app can launch: id, displayName, aliases, and variants with params. Free. Pass app when the workspace has more than one key. Pass one of these ids (or an alias) as changebox_launch_agent's model. An id that is not in that app's catalog is refused before intake.","inputSchema":{"type":"object","properties":{"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name). Catalog of the key this app launches on. Omit only when the workspace has one app."}},"additionalProperties":false},"annotations":{"title":"Cursor models for this org","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_launch_agent","title":"Hand to a Cloud Agent","description":"Ask ChangeBox to start (or retry) a Cursor Cloud Agent on this change using the org's Cursor key. When a pull request is already linked, starts a follow-up on that branch and pull request instead of refusing. A draft left by a killed run is continued from that branch — the agent is told the prior commits and what remains — rather than started from scratch. Do not narrow the scope as the default response to a timeout. Pass instructions to say what to change; omit them to continue the existing pull request. Omit model and the app policy picks: the default for a build or fix, the architecture model when the Change Spec is high-risk or touches architecture. Pass model from changebox_models (a Cursor model id, one of its aliases, or the app's escalation model) to override. An id that is not in the catalog is refused before intake, with the ids this key can use. Refuses, and does not start an agent, when the change's repository or linked pull request is not one of the app's current repositories, or when that GitHub repository is archived. Re-file the change against the app's primary repository. Launching an agent requires the operator scope.","inputSchema":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"Change reference: public id like CB-12 (case-insensitive) or the internal chg_… id."},"model":{"type":"string","maxLength":80,"description":"Cursor model id from changebox_models, e.g. grok-4.7 or the app's escalation model. Omit to use the app model policy."},"instructions":{"type":"string","maxLength":4000,"description":"What to change on the linked pull request. Omit to continue that pull request and branch."},"launchAnyway":{"type":"boolean","description":"Start even when this change's grounded files overlap an open pull request on the app. The new branch can conflict with that pull request."},"mode":{"type":"string","enum":["rebase"],"description":"rebase: a follow-up on the linked pull request that only merges the base and resolves conflicts. Allowed while a pull request is linked."}},"required":["ref"],"additionalProperties":false},"annotations":{"title":"Hand to a Cloud Agent","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_intake_report","title":"Report through a host assistant","description":"File a change with the capture() bundle from @changebox/intake (route, breadcrumbs, console errors, screenshot, viewport, user agent, environment, build SHA). Pass the host-signed identity of the signed-in user. Returns JSON {changeId, publicId} or {changeId, publicId, question}. When question is set, ask the user that question verbatim and call changebox_intake_answer. Do not invent a different question.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"draft":{"type":"object","description":"What the user said.","properties":{"description":{"type":"string","minLength":1,"maxLength":4000,"description":"What the user saw, in their words."},"expected":{"type":"string","maxLength":4000,"description":"What should have happened."},"impact":{"type":"string","enum":["broken","confusing","polish"],"description":"How bad it is. Default broken."}},"required":["description"]},"capture":{"type":"object","description":"Result of capture()."},"identity":{"type":"object","description":"Host-signed identity from signHostIdentity. A matching org email files as that member; otherwise a guest reporter.","properties":{"id":{"type":"string","description":"Host user id."},"email":{"type":"string","description":"Host user email. A matching org member files as that person."},"name":{"type":"string","description":"Display name."},"signature":{"type":"string","description":"Host signature over the identity claims."},"exp":{"type":"number","description":"Expiry, unix seconds."},"permitted":{"type":"boolean","description":"Host says this user may file."},"trustedForAutoBuild":{"type":"boolean","description":"Host says this user may auto-build."},"roles":{"type":"array","items":{"type":"string"},"description":"Host roles asserted for this user."}}}},"required":["app","draft"],"additionalProperties":false},"annotations":{"title":"Report through a host assistant","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_intake_answer","title":"Answer the intake question","description":"Send the user's answer to the question changebox_intake_report returned. Returns JSON {changeId, publicId} or {changeId, publicId, question} if intake still needs one answer.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"changeId":{"type":"string","minLength":1,"description":"changeId from changebox_intake_report."},"text":{"type":"string","minLength":1,"maxLength":4000,"description":"The user's answer, in their words."}},"required":["app","changeId","text"],"additionalProperties":false},"annotations":{"title":"Answer the intake question","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_intake_status","title":"Intake status","description":"Plain-language state of a change filed through the assistant, such as \"Fixed on dev, waiting for release.\" Returns JSON {changeId, status}. When intake is still waiting, status says ChangeBox asked one question and question is set.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."},"changeId":{"type":"string","minLength":1,"description":"changeId from changebox_intake_report."}},"required":["app","changeId"],"additionalProperties":false},"annotations":{"title":"Intake status","readOnlyHint":true}},{"name":"changebox_object_get","title":"Read an object","description":"The App Object (changebox.json) for an app, or the Org Object with org: true: the current document, its version and digest. Pass version for an earlier one. Returns JSON {version, document, digest}.","inputSchema":{"type":"object","properties":{"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name). The app whose object this is. Omit and pass org: true for the organization's own object."},"org":{"type":"boolean","description":"The organization's object instead of an app's."},"version":{"type":"integer","minimum":1,"description":"An earlier version. Omit for the current one."}},"additionalProperties":false},"annotations":{"title":"Read an object","readOnlyHint":true}},{"name":"changebox_object_propose","title":"Propose an object change","description":"Propose a change to an App Object (or the Org Object with org: true) as an RFC 6902 JSON Patch with a reason. Each touched path needs the scope its section asks for (operator, approve or admin); otherwise 403. Returns the proposal as JSON {id, status, previous, next, digest}. It is recorded, not applied, until admitted: pass admit: true with the approve scope to admit it now, or leave it to the console. For an app whose repository carries changebox.json, a proposal touching policy, invariants or repositories opens a pull request on that file instead (status pull_request, with its url) and is admitted when it merges.","inputSchema":{"type":"object","properties":{"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name). The app whose object this is. Omit and pass org: true for the organization's own object."},"org":{"type":"boolean","description":"The organization's object instead of an app's."},"patch":{"type":"array","minItems":1,"items":{"type":"object"},"description":"JSON Patch operations, e.g. [{ \"op\": \"replace\", \"path\": \"/policy/execution\", \"value\": \"autopilot\" }]."},"reason":{"type":"string","minLength":1,"maxLength":1000,"description":"Why. Recorded with the proposal."},"admit":{"type":"boolean","description":"Admit the proposal as the next version. Needs the approve scope."}},"required":["patch","reason"],"additionalProperties":false},"annotations":{"title":"Propose an object change","readOnlyHint":false,"destructiveHint":false}},{"name":"changebox_object_history","title":"Object history","description":"Every version of an App Object (or the Org Object with org: true), oldest first, with the admitted proposal that made it (actor, reason, patch). Returns JSON [{version, digest, createdAt, proposal}].","inputSchema":{"type":"object","properties":{"app":{"type":"string","description":"App id, exact name (case-insensitive), or repository full name (owner/name). The app whose object this is. Omit and pass org: true for the organization's own object."},"org":{"type":"boolean","description":"The organization's object instead of an app's."}},"additionalProperties":false},"annotations":{"title":"Object history","readOnlyHint":true}},{"name":"changebox_closure_status","title":"Closure status","description":"Seven checks for an app — complete, structured, readable, verifiable, rewritable, governed, running — each true or false with the reason it is false. Not a score. Returns JSON {appId, passed, total, checks: [{name, ok, reason}]}.","inputSchema":{"type":"object","properties":{"app":{"type":"string","minLength":1,"description":"App id, exact name (case-insensitive), or repository full name (owner/name)."}},"required":["app"],"additionalProperties":false},"annotations":{"title":"Closure status","readOnlyHint":true}}],"resources":[],"prompts":[]}