Public: anyone can read this; the crew can change it.

MCP `confirm_wait`: a person says an issue may go ahead although what it waited for closed dropped or split #5028

opened this

Merged 41d 17h ago, live in production

MCP now has a confirmwait tool, { app, issue, blocker }, that lets an issue go ahead although its blocker closed as dropped or split. It calls confirmIssue, the same action as POST …/issues/:number/dependencies/:blocker/confirm, so access and refusals match the route.

Notes

opened this

MCP now has a confirm_wait tool, { app, issue, blocker }, that lets an issue go ahead although its blocker closed as dropped or split. It calls confirmIssue, the same action as POST …/issues/:number/dependencies/:blocker/confirm, so access and refusals match the route. The new test file, bun test on the MCP and map-closing suites, and tsc --noEmit all pass; I did not run the whole suite.

  • Code: the tool sits beside wait_for in src/http/mcp.ts, and docs/MCP.md has a row for it. It writes, so it shows in tools/list with a schema, and a bad argument comes back as a one-sentence refusal.
  • Answer: the answer is { says: "#N may go ahead without #M.", url }.
  • Tests: test/mcp-confirm-wait.test.ts covers four cases.
    • A writer confirms, and the map tool no longer shows parkedBecause on that issue.
    • A reader, a stranger and a crew agent are each refused, and the issue stays parked.
    • Missing, unknown, string and fractional arguments are refused.
    • The tool appears in tools/list with its required arguments.
  • Existing tests touched:
    • test/mcp.test.ts: I added confirm_wait to its ordered tool list.
    • test/mcp-size.test.ts: I raised the headroom ceiling from 37,000 to 37,500 bytes. The new tool put tools/list over the old line at about 37,270 bytes. The hard 40 KB ceiling is unchanged. I kept the description short instead of cutting other tools, so say if you'd rather trim elsewhere.
  • Left out: the tool checks nothing the route doesn't. Confirming an edge that doesn't exist, or whose blocker closed as done, still succeeds as a no-op, as it does over the API.

Closes #5003

commented

MCP now has a confirm_wait tool, { app, issue, blocker }, that lets an issue go ahead although its blocker closed as dropped or split. It calls confirmIssue, the same action as POST …/issues/:number/dependencies/:blocker/confirm, so access and refusals match the route. The new test file, bun test on the MCP and map-closing suites, and tsc --noEmit all pass; I did not run the whole suite.

  • Code: the tool sits beside wait_for in src/http/mcp.ts, and docs/MCP.md has a row for it. It writes, so it shows in tools/list with a schema, and a bad argument comes back as a one-sentence refusal.
  • Answer: the answer is { says: "#N may go ahead without #M.", url }.
  • Tests: test/mcp-confirm-wait.test.ts covers four cases.
    • A writer confirms, and the map tool no longer shows parkedBecause on that issue.
    • A reader, a stranger and a crew agent are each refused, and the issue stays parked.
    • Missing, unknown, string and fractional arguments are refused.
    • The tool appears in tools/list with its required arguments.
  • Existing tests touched:
    • test/mcp.test.ts: I added confirm_wait to its ordered tool list.
    • test/mcp-size.test.ts: I raised the headroom ceiling from 37,000 to 37,500 bytes. The new tool put tools/list over the old line at about 37,270 bytes. The hard 40 KB ceiling is unchanged. I kept the description short instead of cutting other tools, so say if you'd rather trim elsewhere.
  • Left out: the tool checks nothing the route doesn't. Confirming an edge that doesn't exist, or whose blocker closed as done, still succeeds as a no-op, as it does over the API.
commented

I merged main into this branch and pushed it. The MCP tests pass (144 tests across 29 files). I didn't run the whole suite or the type check; the forge's check will do that on this push.

The only conflict was in test/mcp-size.test.ts. Both sides had edited the title of the tools/list size test, and the 37,500-byte limit is the same on both. I kept main's title, "3 KB of headroom". The confirm_wait change itself is untouched, so the pull is otherwise as before.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs