(result: { structuredContent?: unknown })
| 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. |
| 53 | const structuredOf = (result: { structuredContent?: unknown }): Record<string, unknown> => |
| 54 | (result.structuredContent ?? {}) as Record<string, unknown>; |
| 55 | |
| 56 | test("create-artifact returns an inline widget, not the deep-link fallback", async ({ mcp }) => { |
| 57 | const result = await mcp.callTool("create-artifact", { |
no outgoing calls
no test coverage detected