Skip to main content
POST

Authorizations

Authorization
string
header
required

Primary authentication for the hosted MCP resource. Public clients use Authorization Code with PKCE S256. mcp:read covers discovery and resource reads; billed tools/call additionally requires mcp:execute; offline_access requests a rotating refresh token.

Headers

X-Locus-Session-Id
string

Required only when the end-user JWT carries sid. Send the original high-entropy session value; sid is its SHA-256 fingerprint. Ignored for secret-key authentication.

Required string length: 16 - 128
Pattern: ^[A-Za-z0-9][A-Za-z0-9._:-]{15,127}$
MCP-Protocol-Version
string

Negotiated MCP version on requests after initialize. The server also accepts 2025-03-26 clients.

Example:

"2025-06-18"

Accept
string
required

Streamable HTTP clients advertise both media types. This stateless server returns application/json.

Example:

"application/json, text/event-stream"

Body

application/json
jsonrpc
any
required
method
string
required
Examples:

"initialize"

"tools/list"

"tools/call"

"resources/read"

"prompts/get"

id
params
object

Response

JSON-RPC success or protocol error. A tools/call application failure is a success envelope whose result.isError is true.

jsonrpc
any
required
id
required
result
object
required

Success and application-failure result for tools/call. isError=true is failure even though the JSON-RPC promise resolved.