MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / userFacingProbeMessage

Function userFacingProbeMessage

packages/plugins/mcp/src/sdk/plugin.ts:485–490  ·  view source on GitHub ↗
(
  shape: Extract<McpShapeProbeResult, { readonly kind: "unreachable" | "not-mcp" }>,
)

Source from the content-addressed store, hash-verified

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

Callers 2

plugin.test.tsFile · 0.90
probeEndpointFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected