Skip to content

TypeScript API / contentia/server/mcp / ContentiaMcpOptions

Interface: ContentiaMcpOptions ​

Properties ​

apiBasePath? ​

ts
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? ​

ts
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 ​

ts
fetch: FetchHandler;

In-process dispatch into the app serving apiBasePath — typically contentiaApi(...).fetch, or the composed app handler. No network hop.


instructions? ​

ts
instructions?: string;

Override the default usage instructions sent to the model.


maxToolResponseChars? ​

ts
maxToolResponseChars?: number;

Tool output cap in characters. Defaults to 100 000.


openApi ​

ts
openApi: OpenApiDocument;

The OpenAPI contract read_api_spec serves — see buildContentiaApiOpenApi.


publicUrl ​

ts
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? ​

ts
serverInfo?: object;

Server identity advertised to MCP clients. Defaults to contentia.

name ​

ts
name: string;

version ​

ts
version: string;

verifyBearer ​

ts
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 ​

ParameterType
authorizationstring | undefined
requestRequest

Returns ​

unknown