MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / structuredOf

Function structuredOf

e2e/mcp-apps/tests/create-artifact.spec.ts:53–54  ·  view source on GitHub ↗
(result: { structuredContent?: unknown })

Source from the content-addressed store, hash-verified

51// Protocol-level assertions go through the `mcp` fixture: `inspector` models
52// what a *host* shows the user and does not surface the raw tool result.
53const structuredOf = (result: { structuredContent?: unknown }): Record<string, unknown> =>
54 (result.structuredContent ?? {}) as Record<string, unknown>;
55
56test("create-artifact returns an inline widget, not the deep-link fallback", async ({ mcp }) => {
57 const result = await mcp.callTool("create-artifact", {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected