TypeScript API / contentia/server/mcp / ContentiaMcpServerOptions
Interface: ContentiaMcpServerOptions
Properties
apiUrl
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?
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
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?
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 combineOpenApiDocuments / buildContentiaApiOpenApi.
serverInfo?
serverInfo?: object;Server identity advertised to MCP clients. Defaults to contentia.
name
name: string;version
version: string;