Class BowireMcpAppHarnessEndpoints
- Namespace
- Kuestenlogik.Bowire.Endpoints
- Assembly
- Kuestenlogik.Bowire.dll
#1071 — an MCP App run without the workbench around it: a harness page
(/api/ui/mcp-apps/harness?session=…) hosts the app with the tool's
input and result, exactly as the response pane does, and reports every
message it exchanges with the app to a session here. A test then waits for
the message it expects (POST …/sessions/{id}/expect): the wait ends
when the app sends it, or at the timeout, with every message the app did send.
public static class BowireMcpAppHarnessEndpoints
- Inheritance
-
BowireMcpAppHarnessEndpoints
- Inherited Members
Remarks
One mechanism for both browsers: bowire test opens the harness in a
headless (or visible) Chromium, the workbench's flow runner in the browser it
runs in. A session can carry a recorded exchange instead of a server: the
harness then answers the app's tools/call and resources/read
from it, so a recorded app session replays with the server stopped.
Methods
Create(JsonObject)
Open a session for spec (tool, serverUrl, arguments, result, optional replay); for a host in-process.
public static McpAppHarnessSession Create(JsonObject spec)
Parameters
specJsonObject
Returns
Find(string)
The session with id, or null when it is unknown or expired.
public static McpAppHarnessSession? Find(string id)
Parameters
idstring
Returns
MapBowireMcpAppHarnessEndpoints(IEndpointRouteBuilder, string)
Map the harness page and its session API under basePath.
public static IEndpointRouteBuilder MapBowireMcpAppHarnessEndpoints(this IEndpointRouteBuilder endpoints, string basePath)
Parameters
endpointsIEndpointRouteBuilderbasePathstring
Returns
Remove(string)
Forget a session.
public static void Remove(string id)
Parameters
idstring