(url: string | URL, bearer: string | null, body: unknown)
| 38 | const emailOf = (identity: Identity): string => identity.credentials?.email ?? identity.label; |
| 39 | |
| 40 | const mcpPost = (url: string | URL, bearer: string | null, body: unknown): Promise<Response> => |
| 41 | fetch(url, { |
| 42 | method: "POST", |
| 43 | headers: { |
| 44 | accept: JSON_AND_SSE, |
| 45 | "content-type": "application/json", |
| 46 | ...(bearer ? { authorization: `Bearer ${bearer}` } : {}), |
| 47 | }, |
| 48 | body: JSON.stringify(body), |
| 49 | }); |
| 50 | |
| 51 | scenario( |
| 52 | "MCP telemetry · an authenticated initialize exports mcp.request with the client fingerprint", |
no test coverage detected