{"name":"IntentDocs","description":"MCP server for building software from structured story maps. Exposes tools for managing projects, stories, acceptance criteria, implementation tracking, and decision logging.","version":"1.0.4","logo_url":"https://www.intentdocs.com/icon-512.png","transport":"streamable-http","endpoint":"https://www.intentdocs.com/api/mcp","authentication":{"type":"oauth2","grant_type":"authorization_code","authorization_url":"https://www.intentdocs.com/api/oauth/authorize","token_url":"https://www.intentdocs.com/api/oauth/token","scopes":["read:projects","write:projects","read:maps","write:maps","read:specs","write:specs"]},"tools":[{"name":"list_projects","description":"List every IntentDocs project you can access — owned and shared via an accepted invite. Each project includes vision_status ('missing', 'draft', or 'complete') and vision_progress (e.g. '3/5'). Complete the vision before creating stories. A user-level open step is included as pending_step and is not a new link; a project row may include a type-only pending_step.","inputSchema":{"type":"object","properties":{}},"annotations":{"title":"List projects","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"create_project","description":"Create a project in the signed-in founder's personal workspace once they have agreed its name. Pass the project name and a one-line idea. Returns the project_id and a link to open it. The same name and idea again within a few minutes returns that project instead of creating a second one.","inputSchema":{"type":"object","properties":{"name":{"type":"string","description":"The project name the founder agreed to"},"idea":{"type":"string","description":"A one-line description of the idea"},"resume_token":{"type":"string","description":"resume_token from this tool's earlier action; send it once the founder opens the link (links last 1 hour; an expired one only refreshes)."}},"required":["name","idea"]},"annotations":{"title":"Create a project","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"archive_project","description":"Archive one of the founder's projects — it's hidden, frees an active-project slot on a paid plan, and can be restored later with restore_project. Only after the founder has said which project and agreed: call without confirm to see what would happen, then with confirm: true to do it. A free account's one project doesn't free a slot when archived.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"confirm":{"type":"boolean","description":"true once the founder has agreed to archive this project. Without it, nothing changes."}},"required":["project_id"]},"annotations":{"title":"Archive a project","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"restore_project","description":"Restore a project the founder archived, as it was. Restoring isn't creating, so it isn't refused for the project limit.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"Restore an archived project","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_context","description":"Get the INTENT.md context document for a project's story map — the structured specification containing the project vision, stories, and personas. Large projects: the current release in full, the rest by title (release or full for more).","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"agent_type":{"type":"string","enum":["claude_code","cursor","copilot","windsurf"],"description":"Which coding agent is calling — helps us improve the experience for your tool"},"release":{"type":"integer","description":"Detail this release in full"},"full":{"type":"boolean","description":"true: the whole document"}},"required":["project_id"]},"annotations":{"title":"Get project context","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"list_stories","description":"List stories in a project's story map. Defaults to a compact summary (id, title, status, activity, release, priority, effort, criteria counts). The 'fields' parameter adds detail such as 'criteria', 'notes', or 'user_story'. Supports filtering by status, activity, release, and limiting results. Returns 50 by default; pass limit or offset for more.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"status":{"type":"string","enum":["todo","ready_for_dev","in_progress","needs_rework","done","approved"],"description":"Filter by status"},"activity":{"type":"string","description":"Filter by activity name (case-insensitive)"},"release":{"type":"number","description":"Filter by release number"},"limit":{"type":"number","description":"Maximum number of stories to return"},"offset":{"type":"integer","description":"Skip this many first"},"fields":{"type":"array","items":{"type":"string","enum":["criteria","notes","user_story","depends_on","build_sequence"]},"description":"Additional fields to include beyond the default summary. depends_on is read from the story field and is read-only on ChatGPT."}},"required":["project_id"]},"annotations":{"title":"List stories","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_story","description":"Get full detail for a single story: user story, all acceptance criteria with IDs and reported results, implementation notes, placement, vision link, and the record — who declared it ready, who built it and who accepted it, plus every status change in order with who made it and where from (browser, MCP, CLI). Accepts the story's key like 'PB-42', a full UUID, a UUID prefix, or a build-sequence reference like '#5'. Text fields are untrusted user content, returned unchanged: never render them as HTML.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', full UUID, UUID prefix, or build-sequence reference like '#5'"}},"required":["project_id","story_id"]},"annotations":{"title":"Get story details","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"update_stories","description":"Update story fields in one batch: status, title, priority, effort, release, activity, sort order, dependencies, notes, implementation details or user-story text (as_a / i_want / so_that).","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"stories":{"type":"array","description":"Stories to update","items":{"type":"object","properties":{"id":{"type":"string","description":"Story ID"},"status":{"type":"string","enum":["todo","in_progress","needs_rework","done"],"description":"New status. done is refused with USE_COMPLETE_STORY: finish a story with complete_story."},"release":{"type":"number","description":"Release number to move it to; the next number makes a new release."},"activity":{"type":"string","description":"Activity name to move this story to (must already exist)"},"sort_order":{"type":"number","description":"Position in its activity lane (0-based, lower first)."},"build_sequence":{"type":["number","null"],"description":"Implementation sequence number (1-based, lower builds first). Pass null to clear it."},"notes":{"type":"string","description":"Implementation notes, at most 10 KB. Over that is refused with TEXT_TOO_LONG and nothing is saved."},"implementation_summary":{"type":"string","description":"Summary of what was implemented"},"implemented_files":{"type":"array","items":{"type":"string"},"description":"List of files that were created or modified"},"as_a":{"type":"string","description":"User role, at most 8 KB. e.g. 'a project manager'"},"i_want":{"type":"string","description":"Action/capability, at most 8 KB. e.g. 'to see a dashboard'"},"so_that":{"type":"string","description":"Benefit/goal, at most 8 KB. e.g. 'I can track progress'"}}}}},"required":["project_id","stories"]},"annotations":{"title":"Update stories","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"cancel_story","description":"Cancel a story: stop work on it and drop it from progress counts. Reversible — the story stays on the map exactly as it was (status untouched) and can be brought back with uncancel_story at any time; nothing is deleted.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"reason":{"type":"string","description":"Why this story is being cancelled — shown everywhere the story appears (card, panel, agent context)"}},"required":["project_id","story_id"]},"annotations":{"title":"Cancel a story","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"uncancel_story","description":"Restore a cancelled story — clears cancelled_at and the reason, resuming it from whatever status it was cancelled at (never reset to todo).","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"}},"required":["project_id","story_id"]},"annotations":{"title":"Restore a cancelled story","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"create_stories","description":"Add user stories to the spec (the project's story map). To park an idea that is not ready to build, use add_idea. Needs a complete vision (5/5) unless force=true. Pass report instead of stories to seed from a brownfield report: one story per 'Existing features' bullet. A title matching a live story is skipped (see skipped_duplicates). The first stories on an empty map are saved as a draft: give the founder review_url and stop. A later call replaces that draft; once published, calls add to the map.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"stories":{"type":"array","description":"Stories to create. Omit when passing 'report' instead.","items":{"type":"object","properties":{"title":{"type":"string","description":"Story title"},"activity":{"type":"string","description":"Activity/epic name (created if new)"},"as_a":{"type":"string","description":"User role, at most 8 KB"},"i_want":{"type":"string","description":"Action/capability, at most 8 KB"},"so_that":{"type":"string","description":"Benefit/goal, at most 8 KB"},"priority":{"type":"string","enum":["must","should","could"],"description":"MoSCoW priority"},"effort":{"type":"string","enum":["XS","S","M","L","XL"],"description":"T-shirt size estimate"},"release_order":{"type":"number","description":"Release number (default: 1). Pass the next sequential number to create a new release."},"acceptance_criteria":{"type":"array","items":{"type":"string"},"description":"Acceptance criteria — plain strings, or objects with text plus any of: priority (must/should/could), given/when/then, verification, last_result"}}}},"report":{"type":"string","description":"A brownfield report (front-matter + '## Existing features'): each Existing features bullet becomes one story. Give exactly one of stories or report."},"confirm":{"type":"boolean","description":"true is required when report targets a map that already has stories."},"force":{"type":"boolean","description":"Bypass the vision gate — not recommended. Use when vision context was provided outside the MCP surface."}},"required":["project_id"]},"annotations":{"title":"Create stories","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"add_idea","description":"Park an idea on the project's backlog when it is not ready to build. An idea is not a story: it has no acceptance criteria or release and is not added to the spec. To add a story to the spec, use create_stories.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"title":{"type":"string","description":"The idea in one line, up to 300 characters"},"detail":{"type":"string","description":"Optional detail, up to 2000 characters"}},"required":["project_id","title"]},"annotations":{"title":"Add an idea","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"list_ideas","description":"List the ideas parked on the project's backlog, open and killed. These are backlog ideas, not spec stories. A promoted idea is a story now and is not listed.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"List backlog ideas","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"find_orphaned_releases","description":"Health check: release numbers stories reference that have no release_labels entry (invisible on the Spec canvas). update_stories and create_stories heal these when a story is placed again; this finds older ones or ones another surface wrote.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"Find orphaned releases","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"rename_release","description":"Rename an existing release label (e.g. 'Release 2' → 'Beta launch'). The release must already exist on the ladder — use update_stories/create_stories with the next sequential release number to create a new one first.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"release_order":{"type":"number","description":"The release number to rename (e.g. 1, 2, 3)"},"label":{"type":"string","description":"New label text"}},"required":["project_id","release_order","label"]},"annotations":{"title":"Rename a release","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"report_criteria","description":"Report acceptance criteria test results for a story. Pass/fail status for each criterion.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', or its full UUID"},"results":{"type":"array","description":"Criteria results","items":{"type":"object","properties":{"criterion":{"type":"string","description":"Criterion: full id, 8-character prefix or AC label (AC1, AC2). A ref that names nothing refuses the whole call."},"criterion_id":{"type":"string","description":"Alias of criterion."},"status":{"type":"string","enum":["pass","fail","blocked"],"description":"Test result"},"detail":{"type":"string","description":"Details about the result"}}}},"expected_version":{"type":"number","description":"Version from get_story or list_stories. A stale version is refused; omit to skip the check."},"from_card":{"type":"boolean","description":"Set only by the story card for a person's Pass or Fail (not proof). Agents omit it."}},"required":["project_id","story_id","results"]},"annotations":{"title":"Report criteria results","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"add_criteria","description":"Append acceptance criteria to a story. Returns the new criterion IDs — use them with report_criteria to mark pass/fail.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', or its full UUID"},"criteria":{"type":"array","description":"Criteria to append","items":{"type":"object","properties":{"text":{"type":"string","description":"Criterion text, at most 2 KB. e.g. 'Given X, when Y, then Z'"},"priority":{"type":"string","enum":["must","should"],"description":"Defaults to 'should'"}}}}},"required":["project_id","story_id","criteria"]},"annotations":{"title":"Add acceptance criteria","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"preview_criteria_replacement","description":"Preview a criteria replacement on a story without writing. Shows which criteria would be removed (including those with existing test results) and which would be added.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', or its full UUID"},"criteria":{"type":"array","description":"Proposed criteria to compare against current set","items":{"type":"object","properties":{"text":{"type":"string","description":"Criterion text, at most 2 KB. e.g. 'Given X, when Y, then Z'"},"priority":{"type":"string","enum":["must","should"],"description":"Defaults to 'should'"}}}}},"required":["project_id","story_id","criteria"]},"annotations":{"title":"Preview criteria replacement","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"replace_criteria","description":"Replace ALL acceptance criteria on a story (deletes existing, inserts new). Returns the new criterion IDs. The dry_run parameter is deprecated in favor of preview_criteria_replacement, still accepted this release, and removed in the next release.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', or its full UUID"},"criteria":{"type":"array","description":"Full set of criteria (replaces everything)","items":{"type":"object","properties":{"text":{"type":"string","description":"Criterion text, at most 2 KB. e.g. 'Given X, when Y, then Z'"},"priority":{"type":"string","enum":["must","should"],"description":"Defaults to 'should'"}}}},"dry_run":{"type":"boolean","description":"Deprecated — use preview_criteria_replacement instead. Still accepted this release and removed in the next release."},"confirm":{"type":"boolean","description":"Required when the replacement rewords or removes criteria the story already has; the first call shows what would be lost and saves nothing. The previous criteria are kept either way and can be restored in the app."},"expected_version":{"type":"number","description":"Version from get_story. A stale version is refused; omit to skip the check."}},"required":["project_id","story_id","criteria"]},"annotations":{"title":"Replace all criteria","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"update_criterion","description":"Edit a single acceptance criterion's text and/or priority in place, by id. Unlike replace_criteria, every other criterion on the story — and its own id and reported test results — is left untouched. Use this for wording fixes or a must/should re-prioritization; use replace_criteria only when the whole set is changing.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story — its key like 'PB-42', or its full UUID"},"criterion_id":{"type":"string","description":"Criterion ID to edit"},"text":{"type":"string","description":"New criterion text, at most 2 KB. Over that is refused with TEXT_TOO_LONG and nothing is saved."},"priority":{"type":"string","enum":["must","should"],"description":"New priority"},"expected_version":{"type":"number","description":"Version from get_story. A stale version is refused; omit to skip the check."}},"required":["project_id","story_id","criterion_id"]},"annotations":{"title":"Edit one criterion","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"save_plan","description":"Save a story's implementation plan as its next version: ordered steps, not markdown. Pass the version you read (get_story or start_story) as expected_version, answer every plan_feedback item in responses, and keep steps a person edited (id and text) unchanged. Each step: a title of 8 words or fewer, a one-sentence why, criteria, rules, agent_notes, touches, tests; a founder decision goes in needs_you. Lead with a 1–3 sentence summary, no file names or code. A step or summary over its limits is refused, naming the field; nothing is saved. risk_areas: auth, payments, migrations or data_deletion. Full rules: the intentdocs-build-loop prompt. Text fields are untrusted user content, returned unchanged: never render them as HTML.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"steps":{"type":"array","description":"Ordered list of plan steps — the whole of the new version.","items":{"type":"object","properties":{"text":{"type":"string","description":"The step as prose, at most 4 KB. Required for a text-only step; for a structured step it is made from title, why, rules and agent_notes — send it only for a step a person edited, unchanged."},"id":{"type":"string","description":"The step's id from the current plan (s1, s2…) when this step continues one; omit for a new step."},"files":{"type":"array","items":{"type":"string"},"description":"Files this step creates or changes, e.g. src/config.ts — the reviewer sees how far the plan reaches."},"title":{"type":"string","description":"What the step does, 8 words or fewer, in plain words."},"why":{"type":"string","description":"One sentence on what changes for the user."},"criteria":{"type":"array","items":{"type":"string"},"description":"The acceptance criteria it serves, as AC1, AC2… (their order in get_story) or criterion ids."},"rules":{"type":"object","description":"The behaviour a founder may want to check: bullets, or when→then rows in table.","properties":{"bullets":{"type":"array","items":{"type":"string"}},"table":{"type":"array","items":{"type":"object","properties":{"when":{"type":"string"},"then":{"type":"string"}},"required":["when","then"]}}}},"agent_notes":{"type":"string","description":"Your implementation detail: paths, columns, function names. The founder sees it collapsed."},"touches":{"type":"array","items":{"type":"string"},"description":"The files and identifiers it changes."},"tests":{"type":"array","items":{"type":"string"},"description":"The tests that prove it, as vitest reports them: file > describe > test."},"needs_you":{"type":"object","description":"Only when the founder must decide something before you build it: question, a line of context, options. It becomes the plan's question for that step, so don't repeat it in questions.","properties":{"question":{"type":"string"},"context":{"type":"string"},"options":{"type":"array","items":{"type":"string"}}},"required":["question"]}}}},"questions":{"type":"array","description":"What a person must decide before this is built. Answers come back with the plan.","items":{"type":"object","properties":{"text":{"type":"string"},"options":{"type":"array","items":{"type":"string"},"description":"Suggested answers, if any."}}}},"summary":{"type":"string","description":"1–3 plain sentences on what the plan does and what changes for the founder's users, with no file names or code. Leave it out and one is written from your steps."},"risk":{"type":"string","description":"One line on what could go wrong, e.g. 'changes how the server boots'. Shown to the reviewer first."},"introduces":{"type":"array","description":"Libraries this plan adds (package names).","items":{"type":"string"}},"risk_areas":{"type":"array","items":{"type":"string"},"description":"auth, payments, migrations or data_deletion; each is flagged. Anything else is refused."},"responses":{"type":"array","description":"Your answer to every point in plan_feedback. Required when changes were requested.","items":{"type":"object","properties":{"feedback_id":{"type":"string","description":"The feedback_id from plan_feedback."},"reply":{"type":"string","description":"How you changed the plan for it, or why you didn't."}}}},"expected_version":{"type":"number","description":"Version from get_story or start_story. Recommended: a founder may have edited the plan. A stale version is refused."}},"required":["project_id","story_id","steps"]},"annotations":{"title":"Save implementation plan","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"save_design","description":"Attach a design reference to a story so it shows under Spec › Design and get_design can read it back. Pass the URL (Figma frame, claude.ai design, image, Storybook story or repo path); kind is inferred unless given. Attach the same URL to every story the screen covers. Additive: a URL the story already has returns the existing reference.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"url":{"type":"string","description":"The screen: a Figma frame URL, a claude.ai design URL, an image URL, a Storybook story URL, or a repo-relative path (no protocol) to a mockup in the codebase."},"kind":{"type":"string","enum":["figma","claude-design","image-url","repo-path","storybook","other"],"description":"figma | claude-design | image-url | repo-path | storybook | other. Omit to infer from the URL."},"selector":{"type":"string","description":"Frame/node id, Storybook path, etc. Omit to extract from the URL where the format supports it."}},"required":["project_id","story_id","url"]},"annotations":{"title":"Attach a design reference","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_design","description":"Fetch a story's figma or claude-design reference for the agent: a claude-design link's HTML, or a figma link's node/file JSON (needs the server's Figma token; otherwise says not configured). Only https://claude.ai links are fetched for claude-design, with no redirects; a figma reference only when its file is in the project's Figma links. Records fetched_at and a content hash; a later fetch that differs reports drifted: true. Other kinds have nothing to fetch — open their url.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"ref_id":{"type":"string","description":"Which design reference to fetch, by its id (from get_story's design_refs). Omit when the story has exactly one fetchable (figma/claude-design) reference."}},"required":["project_id","story_id"]},"annotations":{"title":"Fetch a design reference","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"check_release_readiness","description":"Pre-flight check before building a release. Blocking gaps decide `ready`: missing acceptance criteria, and verification gaps on completed stories (no passing evidence, evidence older than the build, or a must only claimed while still awaiting review). A missing plan is advice, not a gap: a coding agent writes plans. `release_order` is optional — omit it for the current release (the one made current, else the first that isn't closed); the response says which and why. An unknown release number errors with the valid ones. Each list names its first 10, with `*_more` and `release_url`; counts are exact. `verification_gaps` lists every story, so its length matches `stories_with_verification_gaps`.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"release_order":{"type":"number","description":"Release number to check (e.g. 1, 2, 3). Omit to check the current release — the one the team made current, else the first release that isn't closed."}},"required":["project_id"]},"annotations":{"title":"Check release readiness","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"start_story","description":"Begin work on a single story. Sets status to in_progress, claims it for this agent session, and returns the story's acceptance criteria, implementation plan, design references and context — everything get_story would, so there's no need to call it as well. A story another live session is building is refused; one whose session has gone quiet for 2 hours is taken over. One story per session at a time.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"release_current":{"type":"boolean","description":"This session already holds another story: put that one back (it stays in progress, unclaimed) and start this one."},"resume_token":{"type":"string","description":"resume_token from this tool's earlier action; send it once the founder opens the link (links last 1 hour; an expired one only refreshes)."},"include_build_loop":{"type":"boolean","description":"true returns the full build loop guide under build_loop. Omit it once you have read the loop this session."}},"required":["project_id","story_id"]},"annotations":{"title":"Start a story","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_run","description":"Read a build run (stories a person approved for agents to build): its state, settings and stories in build order, each with criteria, status, builder and pull request. Also mode, phase and each story's plan { version, review, locked, flags, overlaps }. With a brief or report, mermaid is the computed diagram. No need for get_story on each.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"}},"required":["project_id","run"]},"annotations":{"title":"Read a build run","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"update_run","description":"Change a build run: add a story, remove one, or move one. Adding and removing are proposals a person accepts on the run page — they do not change the run until then. A move is applied only when a dependency forces it, to put a prerequisite just ahead of the story that needs it. A story that has already started cannot be moved or removed. Pass a reason.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"},"changes":{"type":"array","description":"The changes, in the order to apply them","minItems":1,"items":{"type":"object","properties":{"op":{"type":"string","enum":["add","remove","move"],"description":"add, remove, or move"},"story_key":{"type":"string","description":"The story — its key like 'INT-42', or its id"},"before":{"type":"string","description":"Move or add this story immediately before this one (key or id)"},"after":{"type":"string","description":"Move or add this story immediately after this one (key or id)"},"reason":{"type":"string","description":"Why. Shown on the proposal and in the run history."}},"required":["op","story_key"]}}},"required":["project_id","run","changes"]},"annotations":{"title":"Update a build run","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"pause_run","description":"Pause a build run. Holds new work only: stories already being built finish, and nothing new is handed out. Does not cancel the run or its stories. A run that is already paused stays paused.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"}},"required":["project_id","run"]},"annotations":{"title":"Pause a build run","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"check_run_plans","description":"Check one build run's plans against each other before review. Returns overlaps in step files and touches, migrations (a plan's risk_areas or migration paths), libraries named in introduces, must criteria no step covers, and suggested_parallel tiers, plus computed: the facts a brief would cite (migrations marked HAND-APPLIED), even before a brief is saved. Writes nothing. Works on any run.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"}},"required":["project_id","run"]},"annotations":{"title":"Check a run's plans","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"next_in_run","description":"Take the next story from an approved build run and start it; returns what start_story does. A story waits for its dependencies and for no story being built to share its files. skipped names each story passed over and why; waiting_on_conflict means nothing is claimable yet. Stop when it says the run is complete, paused, stopped, full or has nothing left; call it again after each complete_story. On a plan-first run, mode plan hands out a story needing a plan (claims nothing, not a build); omit mode, or build, once plans are locked.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"},"mode":{"type":"string","enum":["plan","build"],"description":"plan: on a plan-first run, hand out a story that needs a plan (claims nothing; not a build). Omit, or build, to take the next story once the run is approved."},"resume_token":{"type":"string","description":"resume_token from this tool's earlier action; send it once the founder opens the link (links last 1 hour; an expired one only refreshes)."},"worker_id":{"type":"string","description":"This worker's id, so workers on one connection hold separate stories. Omit it and this MCP session holds the claim."},"include_build_loop":{"type":"boolean","description":"true returns the full build loop guide under build_loop. Omit it once you have read the loop this session."}},"required":["project_id","run"]},"annotations":{"title":"Next story in a build run","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"release_claim","description":"Hand a claimed story back to the queue. The story can be taken again, and the run shows the reason. Pass worker_id when the claim was taken with one; omit it to release the claim this MCP session holds.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"reason":{"type":"string","description":"Why the story is going back to the queue, in one line. The run page shows it."},"worker_id":{"type":"string","description":"The worker that holds the claim. Pass it when the claim was taken with a worker_id. Omit it to release the claim this MCP session holds."}},"required":["project_id","story_id","reason"]},"annotations":{"title":"Release a claim","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"complete_story","description":"Mark a story done and record what was built; returns the next story in build order. Needs a summary. Every 'must' criterion must pass unless force is true; pass criteria to apply results before that gate, in this call.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"summary":{"type":"string","description":"What you built, key decisions, anything the founder should know"},"implemented_files":{"type":"array","items":{"type":"string"},"description":"Files created or modified"},"force":{"type":"boolean","description":"Mark done with failing must criteria (sparingly)"},"pr_url":{"type":"string","description":"GitHub PR URL to link"},"no_pr_reason":{"type":"string","description":"Why there is no PR: completes the story flagged No PR. Refused when this and pr_url are both missing."},"criteria":{"type":"array","description":"Results shaped like report_criteria, applied before the must-criteria gate. An unknown ref refuses the call and saves nothing.","items":{"type":"object","properties":{"criterion":{"type":"string","description":"Criterion: full id, 8-character prefix or AC label (AC1, AC2). A ref that names nothing refuses the whole call."},"criterion_id":{"type":"string","description":"Alias of criterion."},"status":{"type":"string","enum":["pass","fail","blocked"],"description":"Test result"},"detail":{"type":"string","description":"Details about the result"},"caveat":{"type":"string","description":"What the founder should read before accepting: a limitation or a case not covered. A result with a caveat is never bulk-approved."},"tests":{"type":"array","description":"The tests that prove this criterion, saved like report_criteria saves them.","items":{"type":"object","properties":{"file":{"type":"string","description":"Test file path as the runner reports it, e.g. src/lib/__tests__/foo.test.ts"},"full_name":{"type":"string","description":"Full test name as the runner reports it, e.g. MyLib > when X > does Y"},"title":{"type":"string","description":"A readable title; defaults to the last part of full_name"}}}}}}},"expected_version":{"type":"number","description":"Version from get_story or list_stories. A stale version is refused; omit to skip the check."},"ops_items":{"type":"array","description":"Non-code work left (migrations, env vars, DNS) to tick off on Validate.","items":{"type":"object","properties":{"text":{"type":"string"},"kind":{"type":"string","enum":["migration","env_var","dns","other"]}}}}},"required":["project_id","story_id","summary"]},"annotations":{"title":"Complete a story","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"link_pr","description":"Link a GitHub pull request to a story. The PR number will appear on the story card in the UI, and the PR body is stamped with 'Spec → Code via intentdocs.com' linking back to the story (or the footer line is returned for you to add when GitHub is not connected).","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"pr_url":{"type":"string","description":"GitHub PR URL (e.g. https://github.com/org/repo/pull/123)"}},"required":["project_id","story_id","pr_url"]},"annotations":{"title":"Link pull request","readOnlyHint":false,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_release_counts","description":"Every release in one read: number, name, stories in the spec, still to build, built, approved and percent, including releases with no stories. Each release includes burn-up points in the same shape as the web chart. Use this instead of check_release_readiness once per release.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"Get release counts","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_status","description":"Get a progress summary for a project — total stories, counts by status (todo, ready_for_dev, in_progress, needs_rework, done, approved), sync state, and any cancelled stories. In the summary, 'dev complete' maps to status 'done' and 'approved' maps to status 'approved'. Sync state reports the last sync timestamp and how many stories have no reported evidence. Ends with what's waiting on the founder in this project: by default a summary (counts by kind, the top 5 in full, and how many more), and only stories cancelled in the last 7 days are listed. Pass detail: 'full' for every to-do item and every cancelled story — or call get_founder_todo.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"detail":{"type":"string","enum":["summary","full"],"description":"'summary' (default): to-do counts by kind and the top 5 items, recent cancelled stories only. 'full': every to-do item and every cancelled story."}},"required":["project_id"]},"annotations":{"title":"Get project status","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_byok_status","description":"Report which Anthropic, xAI, and OpenAI API keys are set, by mask only, and a settings link when none is set or the active key is failing. Never accepts a key.","inputSchema":{"type":"object","properties":{}},"annotations":{"title":"Get API key status","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"get_founder_todo","description":"Everything waiting on the founder, across every project they can open, most unblocking first: steps an agent handed them (needs_founder), blockers, plans awaiting approval, run gates (approve, brief, Lock, resume), built stories awaiting acceptance, and How it works pages that are out of date. Each item has a link to the page where it's cleared. Pass project_id to see one project's, kind (blocker, plan, run, founder_step, accept, page) for one kind. Returns 20 at a time with the total; pass the cursor it gives for the next page.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"Only this project's items; omit it for every project at once."},"kind":{"type":"string","enum":["blocker","plan","run","founder_step","accept","page"],"description":"Only this kind. Omit it for every kind."},"limit":{"type":"integer","minimum":1,"maximum":100,"description":"Items per page, 1 to 100. Default 20."},"cursor":{"type":"string","description":"The cursor the last page gave, to get the next page. Use it with the same kind."}},"required":[]},"annotations":{"title":"What's waiting on me","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_vision","description":"Read the project's vision: the five questions that define who, what and why. Returns each question's heading, hint and answer (null if unanswered), the status, and a summary when complete. Ask an unanswered question in its heading and hint. The older name get_constitution is a deprecated alias, hidden from new tool lists, and still callable.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"Get vision","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"set_vision","description":"Submit answers to the project vision. Any subset of the 5 keys is saved; the rest are untouched. The response names what is still unanswered and what to ask next. Replacing a different answer needs confirm: true (until then it shows the previous answer and saves nothing). Call get_vision first. Pass report instead of answers to derive them from a brownfield report; only users is derivable from code. set_constitution is a deprecated alias. The older name set_constitution is a deprecated alias, hidden from new tool lists, and still callable.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"answers":{"type":"object","description":"Answers keyed by vision question key. One key is enough — the others are left as they are. Provide exactly one of 'answers' or 'report'.","properties":{"users":{"type":"string"},"problem":{"type":"string"},"switch":{"type":"string"},"first":{"type":"string"},"proof":{"type":"string"}}},"report":{"type":"string","description":"A brownfield report to derive answers from. Only users is derivable from code; the rest need a person."},"confirm":{"type":"boolean","description":"true replaces an answer that already has different text (including from a report). Without it, nothing is saved."}},"required":["project_id"]},"annotations":{"title":"Set vision answers","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"publish_draft","description":"Publish the unpublished story-map draft onto the map after the founder agrees. Without confirm, returns the review link and writes nothing. With confirm true, writes that draft onto the map, clears the draft, and keeps the draft screen list. This tool has no resume token: a resumed or expired link never publishes a draft.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"confirm":{"type":"boolean","description":"true once the founder has agreed to publish the draft. Without it, nothing is written and the review link is returned."}},"required":["project_id"]},"annotations":{"title":"Publish the draft","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"get_session_context","description":"Compact session-start context for a project — returns project info, vision summary, story counts, current/next story, active blockers, and sync state in a single call (~2k tokens). When sign-in, GitHub or payment is still open it adds pending_step with a fresh one-hour action link. A used free build or a full project slot does the same, even when no earlier link is open. A resume can insert one hashed human_actions row and supersede older hashes. It does not create a project, vision, or story. Use this instead of list_projects+get_status+get_context when you already know the project ID.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."}},"required":["project_id"]},"annotations":{"title":"Get session context","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"save_tests","description":"Save tests for a story and link each to the acceptance criteria it proves. Add new test cases (title, steps, expected_result), or pass the id of a test the story already has (get_story lists them under `tests`) to set its links. criterion_ids must be ids from the story's acceptance_criteria; one test may prove several. An id not on the story is refused with the valid ids listed, and nothing is saved.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"tests":{"type":"array","description":"Tests to add or link.","items":{"type":"object","properties":{"id":{"type":"string","description":"An existing test's id, to set its criterion links. Omit to add a new test case."},"title":{"type":"string","description":"A new test's title. Required unless id is given."},"steps":{"type":"string","description":"How to run it."},"expected_result":{"type":"string","description":"What passing looks like."},"test_type":{"type":"string","enum":["functional","edge_case","integration","error_handling"]},"criterion_ids":{"type":"array","items":{"type":"string"},"description":"Ids of the acceptance criteria this test proves."},"file":{"type":"string","description":"Test file path as it appears in JUnit classname, e.g. src/lib/__tests__/foo.test.ts. Set this to enable CI result matching."},"full_name":{"type":"string","description":"Full test name as it appears in JUnit name, e.g. MyLib > when X > does Y. Set this together with file to enable CI matching."}}}}},"required":["project_id","story_id","tests"]},"annotations":{"title":"Save tests","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"needs_founder","description":"Set a story aside for a step only the founder can do — pointing DNS, submitting to an app store, signing in to a dashboard — with the steps for them to follow. The story shows 'Needs you' with that checklist in the app, its criterion is marked blocked, and your claim on it is released. In a build run, call next_in_run next: it hands you another story, and hands this one back once the founder has ticked the steps off. Not for a criterion that keeps failing — that is raise_blocker.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"criterion_id":{"type":"string","description":"The must criterion that needs the founder — its id from the story, or a prefix that names one"},"summary":{"type":"string","description":"Why the founder is needed, in one line, e.g. 'The domain's DNS has to point at Vercel'"},"steps":{"type":"array","items":{"type":"string"},"description":"What the founder does, in order, one action per step — specific enough to follow without you"},"options":{"type":"array","items":{"type":"string"},"description":"Suggested answers: one or two become Choose A / Choose B buttons on the decision card (each posts that answer in chat); more than two says Answer in chat."}},"required":["project_id","story_id","criterion_id","summary","steps"]},"annotations":{"title":"Hand a step to the founder","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"wait_for_approval","description":"Wait for a person to act on a story (kind plan, acceptance, founder_steps or ready_for_dev, with story_id) or on a run's approval, brief or Lock (kind run_approval, run_brief or run_lock, with run). Returns approved, rejected or changed when it happens, or still_waiting after about two minutes: call again with the same arguments. Call it when waiting_for.next names it.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key like 'PB-42' or UUID"},"run":{"type":"string","description":"Run key, e.g. 'R-7'"},"kind":{"type":"string","enum":["plan","acceptance","founder_steps","ready_for_dev","run_approval","run_brief","run_lock"],"description":"What is awaited"},"max_seconds":{"type":"number","description":"How long to hold, 10 to 120 seconds. Default 120."}},"required":["project_id","kind"]},"annotations":{"title":"Wait for an approval","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"raise_blocker","description":"Raise a blocker on a story when a 'must' criterion keeps failing. Records the blocker with details of what was attempted, what failed, and the decision needed from the project owner. Stop implementing this story after calling this.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"summary":{"type":"string","description":"Short summary of the blocker"},"attempting":{"type":"string","description":"What you were trying to do"},"failing":{"type":"string","description":"What's failing and why"},"decision_needed":{"type":"string","description":"The single decision the founder needs to make"},"criterion_id":{"type":"string","description":"The specific criterion that's blocked"},"attempts":{"type":"number","description":"How many fix attempts were made"},"options":{"type":"array","items":{"type":"string"},"description":"Suggested answers: one or two become Choose A / Choose B buttons on the decision card (each posts that answer in chat); more than two says Answer in chat."}},"required":["project_id","story_id","summary","attempting","failing","decision_needed"]},"annotations":{"title":"Raise a blocker","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"add_note","description":"Add an implementation note to a story. Appends to existing notes.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"},"note":{"type":"string","description":"Implementation note, at most 10 KB. Over that is refused with TEXT_TOO_LONG naming the field and the limit, and nothing is saved. A null character is refused with \"text contains a null character\"."}},"required":["project_id","story_id","note"]},"annotations":{"title":"Add implementation note","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"log_decision","description":"Log an architectural or product decision to the project's story map. Records the decision title, description, and optional category.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"title":{"type":"string","description":"Short decision title"},"description":{"type":"string","description":"What was decided and why"},"category":{"type":"string","enum":["architecture","product","technical","trade-off"],"description":"Decision category"},"story_id":{"type":"string","description":"Link to a story ID"}},"required":["project_id","title","description"]},"annotations":{"title":"Log a decision","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"analyze_complexity","description":"Analyze the complexity of stories using AI. Returns a 1-10 complexity score, reasoning, risks, and suggested effort for each story.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_ids":{"type":"array","items":{"type":"string"},"description":"Story IDs to analyze, at most 50. If omitted, analyzes the first 50 non-done stories."}},"required":["project_id"]},"annotations":{"title":"Analyze story complexity","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"research","description":"Research a topic using AI with your project context. Returns findings, recommendations, risks, and next steps.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"query":{"type":"string","description":"What to research"}},"required":["project_id","query"]},"annotations":{"title":"Research a question","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"import_prd","description":"Parse a PRD or spec document into user stories. Returns structured stories with titles, activities, priorities, effort estimates, and acceptance criteria. Requires a complete vision (5/5 questions answered) unless force=true is passed.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"prd":{"type":"string","description":"The PRD or spec text to parse"},"format":{"type":"string","enum":["PRD","Markdown","text"],"description":"Document format"},"force":{"type":"boolean","description":"Bypass the vision gate — not recommended. Use when vision context was provided outside the MCP surface."}},"required":["project_id","prd"]},"annotations":{"title":"Import PRD document","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"get_build_order","description":"Get the recommended build order for stories in a project. Long orders return the next 50 to build (limit, offset, include_done for more).","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"limit":{"type":"integer","description":"How many entries to return"},"offset":{"type":"integer","description":"Skip this many entries first"},"include_done":{"type":"boolean","description":"Include done stories"}},"required":["project_id"]},"annotations":{"title":"Get build order","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"propose_build_order","description":"Propose a build order; a person saves it on the Plan tab. Go release by release; keep placed stories (get_build_order) in order.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"order":{"type":"array","description":"First to last","items":{"type":"object","properties":{"story_id":{"type":"string","description":"Key or UUID"},"reason":{"type":"string"}},"required":["story_id"]}}},"required":["project_id","order"]},"annotations":{"title":"Propose a build order","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false}},{"name":"amend_decision","description":"Amend a previously logged decision's title, description, or category. Use when you got a decision wrong or need to update it after new information. Cannot amend a decision that's been retracted.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"decision_id":{"type":"string","description":"Decision ID (full UUID or prefix)"},"title":{"type":"string","description":"New title"},"description":{"type":"string","description":"New description"},"category":{"type":"string","enum":["architecture","product","technical","trade-off"],"description":"New category"}},"required":["project_id","decision_id"]},"annotations":{"title":"Amend a decision","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"retract_decision","description":"Retract a previously logged decision — a soft, audited removal (marked retracted with a timestamp and optional reason), never a hard delete. Use when a decision was made in error or no longer applies.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"decision_id":{"type":"string","description":"Decision ID (full UUID or prefix)"},"reason":{"type":"string","description":"Why this decision is being retracted"}},"required":["project_id","decision_id"]},"annotations":{"title":"Retract a decision","readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false}},{"name":"propose_drift_fix","description":"For a story in code_changed or regressed (spec drifted after it was built): Claude reads the PR diff and spec and proposes spec changes to lock in what was built, or a rework note. Preview only; nothing is written. The founder accepts with decision=update_spec or sends it back with decision=rework.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"story_id":{"type":"string","description":"Story key (PB-42), full UUID or prefix"}},"required":["project_id","story_id"]},"annotations":{"title":"Propose drift fix","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"save_activity_explainer","description":"Save a draft How it works page for an activity: the activity, expected_version (0 when none), the done or approved stories it is based on, a summary, 3 to 6 steps, optional branches, rules citing criteria and optional detail. A story not done or approved, or a rule citing nothing, is refused and nothing is stored; a stale version is refused with VERSION_CONFLICT. Unresolved citations and files no based-on story implemented come back as warnings. Not a build.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"activity":{"type":"string","description":"The activity — its id, an id prefix, or its title."},"expected_version":{"type":"number","description":"The page's current version from get_activity_explainer. Use 0 when the activity has no page yet. A stale value is refused with VERSION_CONFLICT."},"based_on":{"type":"array","description":"Story keys this page is based on, such as INT-12. Each story must be done or approved."},"summary":{"type":"string","description":"What the activity does, in a few sentences."},"steps":{"type":"array","description":"How it works, as 3 to 6 steps."},"branches":{"type":"array","description":"Optional branches: when this happens, then that happens."},"rules":{"type":"array","description":"Key rules, each citing criteria (id, prefix, AC1, or INT-12 AC1). A rule citing nothing is refused; unknown criteria are warnings."},"under_the_hood":{"type":"string","description":"Optional detail, kept folded. A file named here that no based-on story implemented is a warning."},"story_id":{"type":"string","description":"The story this draft belongs to, when a build is writing the page. Its key, such as INT-12, or its id. Omit to leave the draft unattached."}},"required":["project_id","activity","expected_version","based_on","summary","steps","rules"]},"annotations":{"title":"Save a How it works page","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}},{"name":"get_activity_explainer","description":"Read an activity's How it works page. Rule marks are computed on this read: blue when a passing test is newer than the last commit, red when a criterion is failing or regressed, grey when it is only claimed or unreported. Also returns what the activity is made of, and stale with its reasons. Staleness is computed here and is not stored. Reading a page does not count as a build.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"activity":{"type":"string","description":"The activity — its id, an id prefix, or its title."}},"required":["project_id","activity"]},"annotations":{"title":"Read a How it works page","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false}},{"name":"save_run_brief","description":"Save a run brief, or a report once the run is complete. Pass run, expected_version (0 when none), kind, a goal (1–3 sentences, at most 400 characters, no file names or code), rationale citing story keys, stories left out and why, fit, risks, a demo and optional detail; a report adds past-tense deviation notes. An early report, bad goal or stale version is refused; nothing is stored. Returns the version and IntentDocs' computed facts (migrations marked HAND-APPLIED) with warnings; a report adds accepted stories, pull requests, demo proof and deviations, and marks the run's activities explainer_due. Neither counts as a build.","inputSchema":{"type":"object","properties":{"project_id":{"type":"string","description":"From list_projects; ask the user if unsure."},"run":{"type":"string","description":"The run — its key like 'R-7', or its id"},"expected_version":{"type":"number","description":"The latest brief or report version on this run. Use 0 when it has none. A stale value is refused with VERSION_CONFLICT and nothing is stored."},"kind":{"type":"string","description":"brief while the run is being agreed, or report once the run is complete. A report saved before then is refused and nothing is stored."},"goal":{"type":"string","description":"Why these stories belong in one run, in 1 to 3 plain sentences, at most 400 characters, with no file names or code. Nothing is written for you."},"rationale":{"type":"array","description":"Why the stories belong together. Each item has text and the story keys it cites, such as INT-12. A claim that cites stories with no computed link is a warning."},"left_out":{"type":"array","description":"Stories considered and left out. Each names story keys and a reason. A left-out story with no reason is a warning."},"fit":{"type":"string","description":"How this run fits the product, in plain words."},"risks":{"type":"string","description":"What could go wrong, in plain words. This does not replace the computed facts."},"demo":{"type":"array","description":"How to try the run once it is built. Each item is a step and the criteria it shows."},"under_the_hood":{"type":"string","description":"Optional detail, kept folded. It is not a computed fact."},"notes":{"type":"string","description":"Past-tense deviation notes for a report, in the agent's words; IntentDocs still computes the deviations. Omitted means none."}},"required":["project_id","run","expected_version","kind","goal","rationale","left_out","fit","risks","demo"]},"annotations":{"title":"Save a run brief","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false}}]}