Class BowireMcpAppEndpoints

Namespace
Kuestenlogik.Bowire.Endpoints
Assembly
Kuestenlogik.Bowire.dll

#810 — where the workbench hosts an MCP App: the ui:// resource's HTML served from a URL of its own, under the policy its _meta.ui.csp asks for, in a sandbox.

public static class BowireMcpAppEndpoints
Inheritance
BowireMcpAppEndpoints
Inherited Members

Remarks

A document the page builds itself (srcdoc, blob:) inherits the workbench's policy, which refuses an app's inline script; so the workbench reads the resource the way it reads any (one invoke, the same rights and audit), hands its HTML and CSP here, and frames the URL it gets back.

The answer carries sandbox allow-scripts allow-forms in its own policy: opened in a tab of its own, the app still runs in an opaque origin, with no access to the workbench's cookies or storage. Its network reach is exactly the domains it declared — none when it declared none.

Views live in memory for an hour, at most MaxViews of them, the oldest going first; they are not shared between hosts.

Fields

MaxHtmlChars

Largest document accepted, in characters.

public const int MaxHtmlChars = 5242880

Field Value

int

MaxViews

Most views kept at once.

public const int MaxViews = 128

Field Value

int

Methods

MapBowireMcpAppEndpoints(IEndpointRouteBuilder, string)

Maps the view store and the vendored bridge.

public static IEndpointRouteBuilder MapBowireMcpAppEndpoints(this IEndpointRouteBuilder endpoints, string basePath)

Parameters

endpoints IEndpointRouteBuilder
basePath string

Returns

IEndpointRouteBuilder