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

Function collectRpcMethods

scripts/codegen/typescript.ts:242–252  ·  view source on GitHub ↗
(node: Record<string, unknown>)

Source from the content-addressed store, hash-verified

240}
241
242function collectRpcMethods(node: Record<string, unknown>): RpcMethod[] {
243 const results: RpcMethod[] = [];
244 for (const value of Object.values(node)) {
245 if (isRpcMethod(value)) {
246 results.push(value);
247 } else if (typeof value === "object" && value !== null) {
248 results.push(...collectRpcMethods(value as Record<string, unknown>));
249 }
250 }
251 return results;
252}
253
254export function normalizeSchemaForTypeScript(schema: JSONSchema7): JSONSchema7 {
255 const root = structuredClone(schema) as JSONSchema7 & {

Callers 2

generateRpcFunction · 0.70
collectClientGroupsFunction · 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…