Skip to main content
kavachSolidStart(kavach, options?) returns named route handlers { GET, POST, PATCH, DELETE, OPTIONS }. Mount them in a catch-all API route file so all KavachOS paths are handled.

Install

Setup

1

Create the kavach instance

2

Create the catch-all route

Create src/routes/api/kavach/[...kavach].ts. The [...kavach] segment catches every sub-path under /api/kavach/.
SolidStart API routes receive a standard Web API Request, so the adapter delegates directly to the KavachOS dispatcher without any conversion.

Options

MCP endpoints

When mcp is passed, the MCP OAuth 2.1 endpoints are available at:

Endpoint reference

Full example

Last modified on April 29, 2026