(
shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>,
)
| 482 | * reach here; the only outcomes are an unreachable endpoint or a non-MCP one. |
| 483 | * Exported for tests. */ |
| 484 | export const userFacingProbeMessage = ( |
| 485 | shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>, |
| 486 | ): string => |
| 487 | shape.kind === "unreachable" |
| 488 | ? "Couldn't reach this URL. Check the address, your network, and that the server is running." |
| 489 | : "This URL doesn't appear to host an MCP server. Double-check the address, including the path."; |
| 490 | |
| 491 | // --------------------------------------------------------------------------- |
| 492 | // MCP-SDK OAuth provider adapter — wraps a pre-resolved access token so the |
no outgoing calls
no test coverage detected