(
value: unknown,
name: string
)
| 35 | } |
| 36 | |
| 37 | protected validateObject( |
| 38 | value: unknown, |
| 39 | name: string |
| 40 | ): Record<string, unknown> { |
| 41 | if (!value || typeof value !== "object") { |
| 42 | throw new McpError(ErrorCode.InvalidRequest, `${name} must be an object`); |
| 43 | } |
| 44 | return value as Record<string, unknown>; |
| 45 | } |
| 46 | |
| 47 | protected handleError(error: unknown): ToolResponse { |
| 48 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected