(
shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>,
)
| 539 | * reach here; the only outcomes are an unreachable endpoint or a non-MCP one. |
| 540 | * Exported for tests. */ |
| 541 | export const userFacingProbeMessage = ( |
| 542 | shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>, |
| 543 | ): string => |
| 544 | shape.kind === "unreachable" |
| 545 | ? "Couldn't reach this URL. Check the address, your network, and that the server is running." |
| 546 | : "This URL doesn't appear to host an MCP server. Double-check the address, including the path."; |
| 547 | |
| 548 | // --------------------------------------------------------------------------- |
| 549 | // MCP-SDK OAuth provider adapter — wraps a pre-resolved access token so the |
no outgoing calls
no test coverage detected