(args: Record<string, unknown>, key: string)
| 508 | } |
| 509 | |
| 510 | function requiredString(args: Record<string, unknown>, key: string) { |
| 511 | const value = optionalString(args, key) |
| 512 | if (value) return value |
| 513 | throw new Error(`${key} is required`) |
| 514 | } |
| 515 | |
| 516 | function formatMcpResource(resource: MCP.Resource) { |
| 517 | const result = Object.fromEntries(Object.entries(resource).filter((entry) => entry[0] !== "client")) |
no test coverage detected