(value: unknown)
| 14 | } |
| 15 | |
| 16 | function jsonSize(value: unknown): number | null { |
| 17 | try { |
| 18 | const json = JSON.stringify(value) |
| 19 | return typeof json === 'string' ? utf8Size(json) : null |
| 20 | } catch { |
| 21 | return null |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | export interface McpToolMetadataSizes { |
| 26 | toolNameBytes: number |
no test coverage detected