Skip to content

@maxhealth.tech/prefab / mcp / RendererHtmlOptions

Interface: RendererHtmlOptions ​

Defined in: mcp/resource.ts:180

Properties ​

title? ​

ts
optional title?: string;

Defined in: mcp/resource.ts:182

Page title.

Default ​

ts
'Prefab'

scripts? ​

ts
optional scripts?: string[];

Defined in: mcp/resource.ts:184

Additional <script> URLs to load after the renderer.


stylesheets? ​

ts
optional stylesheets?: string[];

Defined in: mcp/resource.ts:186

Additional <link rel="stylesheet"> URLs.


cdnBase? ​

ts
optional cdnBase?: string;

Defined in: mcp/resource.ts:188

Override CDN base URL (no trailing slash).

Default ​

ts
jsdelivr CDN

themeBridge? ​

ts
optional themeBridge?: "vscode";

Defined in: mcp/resource.ts:197

Inject a theme bridge stylesheet after prefab.css.

'vscode' re-declares the tokens VS Code can supply with the --vscode-* variable first, dropping the MCP Apps --color-* layer that would otherwise shadow it, so the viewer follows the user's editor theme. Emitted before stylesheets, which stay the outermost override.

Released under the MIT License.