MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / namesJsonRpcMethod

Function namesJsonRpcMethod

packages/plugins/mcp/src/testing/server.ts:119–127  ·  view source on GitHub ↗
(parsedBody: unknown, method: string)

Source from the content-addressed store, hash-verified

117 );
118
119 const namesJsonRpcMethod = (parsedBody: unknown, method: string): boolean => {
120 const messages = Array.isArray(parsedBody) ? parsedBody : [parsedBody];
121 return messages.some(
122 (message) =>
123 typeof message === "object" &&
124 message !== null &&
125 (message as { readonly method?: unknown }).method === method,
126 );
127 };
128
129 const handleMcpRequest = (
130 request: http.IncomingMessage,

Callers 1

handleMcpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected