Skip to content

TypeScript API / contentia/server/mcp / ContentiaMcpServerOptions

Interface: ContentiaMcpServerOptions ​

Properties ​

apiUrl ​

ts
apiUrl: string;

Absolute URL of the JSON:API root the tools may reach — origin plus base path, e.g. 'https://cms.example.com/api'. api_request paths resolve against its origin and are gated to its path; for a purely in-process handler any private origin works (the CLI uses 'http://contentia.local').


authorization? ​

ts
authorization?: string;

Authorization header value attached to every api_request dispatch — the HTTP mount forwards the MCP caller's own bearer, the CLI passes Bearer <token> for remote targets, and in-process handlers with their own auth seam may need none.


fetch ​

ts
fetch: FetchHandler;

Where api_request sends its requests: an in-process handler (contentiaApi(...).fetch) for zero-hop dispatch, or a real network fetch when proxying a remote deployment.


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 combineOpenApiDocuments / buildContentiaApiOpenApi.


serverInfo? ​

ts
serverInfo?: object;

Server identity advertised to MCP clients. Defaults to contentia.

name ​

ts
name: string;

version ​

ts
version: string;