| 35 | } |
| 36 | |
| 37 | export interface McpTestOptions { |
| 38 | rootPath?: string; |
| 39 | /** Server mode. Defaults to `'read-write'` so existing tests exercise the |
| 40 | * full tool surface without opting in. */ |
| 41 | mode?: FoamMcpServerMode; |
| 42 | /** |
| 43 | * Telemetry reporter passed into `FoamMcpServer`. Tests that don't pass |
| 44 | * one get a noop (the default). Tests that do can assert on the events |
| 45 | * the reporter received. |
| 46 | */ |
| 47 | telemetry?: ITelemetryReporter; |
| 48 | /** |
| 49 | * Client info advertised on the MCP `initialize` handshake. Affects the |
| 50 | * `client` property on `mcp.session-started`. Defaults to a generic |
| 51 | * identity used by all existing tests. |
| 52 | */ |
| 53 | clientName?: string; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Builds an in-memory `Foam` + `FoamMcpServer` + `Client` triple wired over |
nothing calls this directly
no outgoing calls
no test coverage detected