(
shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>,
)
| 467 | * reach here; the only outcomes are an unreachable endpoint or a non-MCP one. |
| 468 | * Exported for tests. */ |
| 469 | export const userFacingProbeMessage = ( |
| 470 | shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>, |
| 471 | ): string => |
| 472 | shape.kind === "unreachable" |
| 473 | ? "Couldn't reach this URL. Check the address, your network, and that the server is running." |
| 474 | : "This URL doesn't appear to host an MCP server. Double-check the address, including the path."; |
| 475 | |
| 476 | // --------------------------------------------------------------------------- |
| 477 | // MCP-SDK OAuth provider adapter — wraps a pre-resolved access token so the |
no outgoing calls
no test coverage detected