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

Function argsRecord

packages/plugins/mcp/src/sdk/invoke.ts:46–47  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

44const decodeArgsRecord = Schema.decodeUnknownOption(ArgsRecord);
45
46const argsRecord = (value: unknown): Record<string, unknown> =>
47 Option.getOrElse(decodeArgsRecord(value), () => ({}));
48
49// The spec answers `tools/call` for a tool the server no longer advertises
50// with a protocol error (`-32602 Invalid params`, example message

Callers 1

invokeMcpToolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected