(mcp: McpSurface, identity: Identity, url: string)
| 66 | /** Time how long a fresh MCP client takes to connect to a toolkit endpoint and |
| 67 | * read its advertised tools (the path that pays the catalog-walk cost). */ |
| 68 | const timeToolkitConnect = (mcp: McpSurface, identity: Identity, url: string) => |
| 69 | Effect.gen(function* () { |
| 70 | const session = mcp.session(identity, { url }); |
| 71 | const startedAt = Date.now(); |
| 72 | const defs = yield* session.describeTools(); |
| 73 | const elapsedMs = Date.now() - startedAt; |
| 74 | return { elapsedMs, toolNames: defs.map((d) => d.name) }; |
| 75 | }); |
| 76 | |
| 77 | scenario( |
| 78 | "Toolkits · connect time does not scale with catalog size", |
no outgoing calls
no test coverage detected