MCPcopy Index your code
hub / github.com/github/copilot-sdk / apiClassName

Function apiClassName

java/scripts/codegen/java.ts:1541–1544  ·  view source on GitHub ↗

* Derive the Java class name for an API namespace class. * e.g., prefix="Server", path=["mcp","config"] → "ServerMcpConfigApi"

(prefix: string, path: string[])

Source from the content-addressed store, hash-verified

1539 * e.g., prefix="Server", path=["mcp","config"] → "ServerMcpConfigApi"
1540 */
1541function 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.

Callers 2

generateNamespaceApiFileFunction · 0.85
generateRpcRootFileFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…