MCPcopy
hub / github.com/ChatGPTNextWeb/NextChat / McpRequestMessage

Interface McpRequestMessage

app/mcp/types.ts:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4import { Client } from "@modelcontextprotocol/sdk/client/index.js";
5
6export interface McpRequestMessage {
7 jsonrpc?: "2.0";
8 id?: string | number;
9 method: "tools/call" | string;
10 params?: {
11 [key: string]: unknown;
12 };
13}
14
15export const McpRequestMessageSchema: z.ZodType<McpRequestMessage> = z.object({
16 jsonrpc: z.literal("2.0").optional(),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected