The Powerduck Blog

API engineering, from the spec out

Product updates, engineering notes, and guides for designing, debugging, testing, mocking, and serving MCP tools from one OpenAPI spec.

Browse the guides
mcp 3 min read

Your MCP Server Is Wasting Your Agent's Context Window

Most MCP servers load everything eagerly, dump huge schemas into the system prompt, and make the agent pay for tools it will never call. The fix is boring: lazy, narrow, and spec-driven.

Read article
ai-coding 2 min read

Your AI Wrote a Test That Only It Can Pass

When the model writes both the handler and the test, green CI proves almost nothing. Here's the cheap structural fix that catches the failure mode.

Read article
ai 2 min read

Your API Bug Report Is Missing the Caller

A failing request needs its environment, caller, and starting state. Preserve those conditions when handing an API investigation to AI.

Read article
openapi 2 min read

Give Your API Agent a Definition of Done

A create-read-check scenario connects an API contract, MCP tools, and observable outcomes. Here is how to make completion something you can verify.

Read article
ai 4 min read

Turn an Existing REST API into an MCP Server Without Writing a Single Wrapper

You already have a working REST API. Hand-writing and maintaining a second, parallel set of AI tool wrappers is pure transcription that drifts. Generate MCP tools from your OpenAPI contract, start read-only, and keep authorization where it belongs - in your API.

Read article