Files
klz-cables.com/.pnpm-store/v10/files/fe/965255b2052bc477be247bc63106d606e4b9a400564ae6c14eba5d2c9469965159e447698e7ad7059661ab5e432287bc817e22d9005eb3fc1a7371db2a8efc
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

38 lines
1.5 KiB
Plaintext

/**
* Message validation functions for MCP server instrumentation
*
* Provides JSON-RPC 2.0 message type validation and MCP server instance validation.
*/
import { JsonRpcNotification, JsonRpcRequest, JsonRpcResponse } from './types';
/**
* Validates if a message is a JSON-RPC request
* @param message - Message to validate
* @returns True if message is a JSON-RPC request
*/
export declare function isJsonRpcRequest(message: unknown): message is JsonRpcRequest;
/**
* Validates if a message is a JSON-RPC notification
* @param message - Message to validate
* @returns True if message is a JSON-RPC notification
*/
export declare function isJsonRpcNotification(message: unknown): message is JsonRpcNotification;
/**
* Validates if a message is a JSON-RPC response
* @param message - Message to validate
* @returns True if message is a JSON-RPC response
*/
export declare function isJsonRpcResponse(message: unknown): message is JsonRpcResponse;
/**
* Validates MCP server instance with type checking
* @param instance - Object to validate as MCP server instance
* @returns True if instance has required MCP server methods
*/
export declare function validateMcpServerInstance(instance: unknown): boolean;
/**
* Check if the item is a valid content item
* @param item - The item to check
* @returns True if the item is a valid content item, false otherwise
*/
export declare function isValidContentItem(item: unknown): item is Record<string, unknown>;
//# sourceMappingURL=validation.d.ts.map