MCP TypeScript SDK (V2)
    Preparing search index...
    • Checks if a value is a valid JSONRPCResultResponse.

      Parameters

      • value: unknown

        The value to check.

      Returns value is {
          id: string | number;
          jsonrpc: "2.0";
          result: {
              _meta?: {
                  "io.modelcontextprotocol/related-task"?: { taskId: string };
                  progressToken?: string | number;
                  [key: string]: unknown;
              };
              [key: string]: unknown;
          };
      }

      True if the value is a valid JSONRPCResultResponse, false otherwise.