McpToolLogging Module
The tool-call logging filter: wraps every `tools/call` request the SDK dispatches, whichever
`[
Functions and values
| Function or value |
Description
|
Full Usage:
callToolLoggingFilter logger
Parameters:
Logger
Returns: McpRequestFilter<CallToolRequestParams, CallToolResult>
|
SDK-shaped adapter around `logToolCall`: reads `ctx.Params`, converts `ValueTask` to `Task` and back. Registered once at the composition root via `WithRequestFilters`.
|
|
The loggable decision, free of any SDK type: what to log, in what order, given a tool name, its argument keys, and a thunk that performs the call. Argument KEYS only, never values - clinical parameters (age/weight/sex/generic/indication) live in the values.
|
GenPRES