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

Function namesJsonRpcMethod

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

Source from the content-addressed store, hash-verified

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

Callers 1

handleMcpRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected