@agentauth/mcp
Version:
Universal payment-enabled MCP gateway for AI agents with native x402 protocol support.
21 lines • 752 B
TypeScript
/**
* MCP (Model Context Protocol) Utilities
*
* Shared utilities for parsing and extracting data from MCP messages.
* Consolidates duplicate logic previously scattered across multiple files.
*/
import type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js';
/**
* Extract response data from a JSON-RPC message
* Enhanced to handle MCP content format with embedded JSON
*/
export declare function extractMCPResponseData(message: JSONRPCMessage): any;
/**
* Check if response follows MCP content format
*/
export declare function isMCPContentFormat(result: any): boolean;
/**
* Extract and parse JSON from MCP content format
*/
export declare function extractFromMCPContent(result: any): any;
//# sourceMappingURL=mcpUtils.d.ts.map