MCP Streamable HTTP endpoint
const url = 'https://example.com/api/v1/mcp';const options = {method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/mcp \ --header 'Content-Type: application/json' \ --data '{}'Model Context Protocol (MCP) endpoint over Streamable HTTP, stateless. The request body is a
single JSON-RPC 2.0 request or notification: a request returns a single JSON-RPC response, a
notification returns 202 with no body. The tool/resource/prompt surface is discovered at
runtime via tools/list, resources/list, and prompts/list rather than modeled here.
Read-only: exposes Praxrr’s configuration and observability surface (instances, drift, config
health, security posture, PCD databases and resolved entities, sync history, and the redacted
feature-aware list_plugins tool) plus a write-free preview_sync. list_plugins exposes no
plugin source directory, raw manifest, credential, or mutation handler. Authenticate with the
X-Api-Key header (required under AUTH=on); there is no OAuth/Bearer support. Disabled (404)
when MCP_ENABLED is off.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Praxrr API key. Required for non-browser clients under AUTH=on.
Negotiated MCP protocol version. An unsupported value returns 400.
Request Bodyrequired
Section titled “Request Bodyrequired”A single JSON-RPC 2.0 request or notification object.
object
Examplegenerated
{}Responses
Section titled “Responses”A single JSON-RPC 2.0 response object.
A single JSON-RPC 2.0 response object (result or error).
object
Examplegenerated
{}A JSON-RPC notification was accepted; no response body.
Unsupported MCP-Protocol-Version header.
object
Error message
Examplegenerated
{ "error": "example"}Unauthenticated (missing or invalid API key).
Rejected cross-origin request (DNS-rebinding defense).
The MCP endpoint is disabled (MCP_ENABLED is off).
Request body too large.