MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / convertArgvToToolParams

Function convertArgvToToolParams

src/runtime/naming.ts:40–50  ·  view source on GitHub ↗
(argv: Record<string, unknown>)

Source from the content-addressed store, hash-verified

38 * Convert CLI argv keys (kebab-case) back to tool param keys (camelCase).
39 */
40export function convertArgvToToolParams(argv: Record<string, unknown>): Record<string, unknown> {
41 const result: Record<string, unknown> = {};
42 for (const [key, value] of Object.entries(argv)) {
43 // Skip yargs internal keys
44 if (key === '_' || key === '$0') continue;
45 // Convert kebab-case to camelCase
46 const camelKey = toCamelCase(key);
47 result[camelKey] = value;
48 }
49 return result;
50}

Callers 1

registerToolSubcommandFunction · 0.90

Calls 1

toCamelCaseFunction · 0.85

Tested by

no test coverage detected