(
shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>,
)
| 604 | * reach here; the only outcomes are an unreachable endpoint or a non-MCP one. |
| 605 | * Exported for tests. */ |
| 606 | export const userFacingProbeMessage = ( |
| 607 | shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>, |
| 608 | ): string => |
| 609 | shape.kind === "unreachable" |
| 610 | ? "Couldn't reach this URL. Check the address, your network, and that the server is running." |
| 611 | : "This URL doesn't appear to host an MCP server. Double-check the address, including the path."; |
| 612 | |
| 613 | // --------------------------------------------------------------------------- |
| 614 | // MCP-SDK OAuth provider adapter — wraps a pre-resolved access token so the |
no outgoing calls
no test coverage detected