MCPcopy
hub / github.com/foambubble/foam / McpTestOptions

Interface McpTestOptions

packages/foam-mcp/src/test-setup.ts:37–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37export 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected