* Derive the Java class name for an API namespace class. * e.g., prefix="Server", path=["mcp","config"] → "ServerMcpConfigApi"
(prefix: string, path: string[])
| 1539 | * e.g., prefix="Server", path=["mcp","config"] → "ServerMcpConfigApi" |
| 1540 | */ |
| 1541 | function apiClassName(prefix: string, path: string[]): string { |
| 1542 | const parts = [prefix, ...path].map((p) => p.charAt(0).toUpperCase() + p.slice(1)); |
| 1543 | return parts.join("") + "Api"; |
| 1544 | } |
| 1545 | |
| 1546 | /** |
| 1547 | * Derive the Java result type for an RPC method. |
no test coverage detected
searching dependent graphs…