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

GET /api/v1/forges lists each forge's size, and the MCP spawn tool accepts size #4382

Closed opened this
opened this

Second half of #3094.

Done:

  • [ ] GET /api/v1/forges (src/http/api.ts, near line 5199) includes size for each forge.
  • [ ] The MCP spawn tool in src/http/mcp.ts takes an optional size, validated by parseSize from src/spawn/sizes.ts. An invalid size gives the same refusal sentence that POST /api/v1/forges gives.
  • [ ] Every test that pins the exact keys of the forges list or the MCP tool schema gains size. Name each one in the pull.
  • [ ] Tests: the list shows size, MCP spawn with size: "large" records it, and MCP spawn with size: "huge" is refused.
  • [ ] bun x tsc --noEmit and bun test test/spawn-api.test.ts test/mcp*.test.ts pass.

Files: src/http/api.ts, src/http/mcp.ts, test/spawn-sizes.test.ts.

commented

Done on main already, waiting for you to close it: 2d1581c3c5b1f29581b0ba97f9a9c20f27fffad5

commented

Closed: already done on main in 2d1581c. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs