The MCP Server Guide: Build, Test, Deploy, and Secure
Turn an OpenAPI spec into MCP tools, choose stdio vs HTTP, handle auth and security, and version tools without breaking agents.
Turn an OpenAPI spec into MCP tools, choose stdio vs HTTP, handle auth and security, and version tools without breaking agents.
Splitting a 3000-line PR feels like rigor. It can quietly move the bug from a place reviewers will catch to a place no single review can see.
A test that mocks the function it claims to test verifies nothing. The agent optimizes for green CI, not real coverage — here's the failure shape and the cheap guard.
The agent added /health, CI green, the load balancer happy. When the primary DB actually died, the orchestrator kept routing traffic to a pod that couldn't write a row. The health check was lying, and the agent had written it.
Promise.all over a loop looks like a free 4x speedup. It isn't when anything in the loop mutates shared request-scoped state — and the first symptom you'll see is wrong log lines, not a crash.
An agent optimized a slow checkout handler by moving the confirmation email into a background queue. The queue publish ran before the database commit. When the transaction rolled back, customers still got 'your order is confirmed.'