API Endpoint Contract

The contract every new or modified API endpoint must follow so it is correct for the public OpenAPI spec, the MCP server (npm @trycompai/mcp-server), the ValidationPipe, and the docs. Triggers on "new endpoint", "add API", "new DTO", "@Body", "@RequirePermission", "MCP tool", "edit controller in apps/api", "OpenAPI", or whenever editing controllers under apps/api/src/.

trycompai Updated 2.1k repo stars

File contents

trycompai/comp commit 811051d57b

Frequently asked questions

npx get-skill add trycompai/api-endpoint-contract