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

Function collectRpcMethods

scripts/codegen/python.ts:1294–1304  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1292}
1293
1294function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
1295 const results: RpcMethod[] = [];
1296 for (const value of Object.values(node)) {
1297 if (isRpcMethod(value)) {
1298 results.push(value);
1299 } else if (typeof value === "object" && value !== null) {
1300 results.push(...collectRpcMethods(value as Record<string, unknown>));
1301 }
1302 }
1303 return results;
1304}
1305
1306let rpcDefinitions: DefinitionCollections = { definitions: {}, $defs: {} };
1307

Callers 3

generateRpcFunction · 0.70

Calls 2

isRpcMethodFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…