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

Function clientRpcOf

packages/plugins/mcp/src/sdk/plugin.test.ts:149–152  ·  view source on GitHub ↗
(request: HttpClientRequest.HttpClientRequest)

Source from the content-addressed store, hash-verified

147};
148
149const clientRpcOf = (request: HttpClientRequest.HttpClientRequest): JsonRpcRequest | undefined =>
150 Predicate.isTagged(request.body, "Uint8Array")
151 ? Option.getOrUndefined(decodeJsonRpcRequest(new TextDecoder().decode(request.body.body)))
152 : undefined;
153
154/** Streamable-http fixture for the post-handshake auth wall: the handshake
155 * methods succeed and `tools/list` answers 401 for the first

Callers 1

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected