UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

10 lines (9 loc) 459 B
import type { JSONRPCMessage } from '@modelcontextprotocol/sdk/types.js'; import type { McpToolCallInfo } from './types'; export declare class MessageParser { static parse(body: string): JSONRPCMessage | undefined; static isToolCall(body: string): boolean; static isListToolsRequest(body: string): boolean; static getRequestId(message: unknown): string | undefined; static extractToolCallInfo(body: string): McpToolCallInfo | undefined; }