(baseUrl: string)
| 46 | // One-operation OpenAPI spec for the control identity: a real toolkit session, |
| 47 | // minimal catalog, so its connect time is "the handshake without the walk". |
| 48 | const tinySpec = (baseUrl: string): string => |
| 49 | JSON.stringify({ |
| 50 | openapi: "3.0.3", |
| 51 | info: { title: "Tiny API", version: "1.0.0" }, |
| 52 | servers: [{ url: baseUrl }], |
| 53 | paths: { |
| 54 | "/ping/{id}": { |
| 55 | get: { |
| 56 | operationId: "getPing", |
| 57 | security: [{ apiKey: [] }], |
| 58 | parameters: [{ name: "id", in: "path", required: true, schema: { type: "string" } }], |
| 59 | responses: { "200": { description: "ok" } }, |
| 60 | }, |
| 61 | }, |
| 62 | }, |
| 63 | components: { securitySchemes: { apiKey: { type: "apiKey", in: "header", name: "x-tok" } } }, |
| 64 | }); |
| 65 | |
| 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). */ |
no outgoing calls
no test coverage detected