Skip to content

POST

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/apps/web/src/app/p/[slugId]/mcp/route.ts

Slug-fronted, same-origin MCP endpoint: POST /p//mcp — proxies the API's public, urlId-keyed MCP server (docs + entity graph over technical + user manuals). Coding agents (Claude, Cursor, …) add this URL directly. Stateless: each POST is a self-contained JSON-RPC exchange, so no session state crosses the proxy.

Signature

ts
async function POST(req: Request, ctx: { params: Promise<{ slugId: string }> })

Parameters

NameType
reqRequest
ctx{ params: Promise<{ slugId: string }> }

Was this page helpful?

Download as PDF