TypeScript API / contentia/server/mcp / ContentiaMcpOptions
Interface: ContentiaMcpOptions
Properties
apiBasePath?
apiBasePath?: string;Base path of the JSON:API surface api_request may reach — the basePath the contentiaApi server was built with. Defaults to '' (the origin root).
authorizationServers?
authorizationServers?: string[];Authorization server URL(s) advertised in the protected-resource metadata. Defaults to [publicUrl] — correct when the deployment hosts its own contentia/server/oauth2 server on the same origin.
fetch
fetch: FetchHandler;In-process dispatch into the app serving apiBasePath — typically contentiaApi(...).fetch, or the composed app handler. No network hop.
instructions?
instructions?: string;Override the default usage instructions sent to the model.
maxToolResponseChars?
maxToolResponseChars?: number;Tool output cap in characters. Defaults to 100 000.
openApi
openApi: OpenApiDocument;The OpenAPI contract read_api_spec serves — see buildContentiaApiOpenApi.
publicUrl
publicUrl: string;Public origin of this deployment (scheme + host, no trailing slash), e.g. 'https://cms.example.com'. Used in the discovery metadata and to synthesize the internal Requests fetch receives.
serverInfo?
serverInfo?: object;Server identity advertised to MCP clients. Defaults to contentia.
name
name: string;version
version: string;verifyBearer
verifyBearer: (authorization, request) => unknown;The bearer gate: full Authorization header value in, the authenticated principal out, or null/undefined to reject with 401. Plug in the same verification the deployment's API uses (e.g. an OAuth session lookup).
Parameters
| Parameter | Type |
|---|---|
authorization | string | undefined |
request | Request |
Returns
unknown