MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / parserToolArgs

Function parserToolArgs

src/benchmarks/claude-ui/claude-invocation.ts:100–110  ·  view source on GitHub ↗
(toolAnalysis: ToolAnalysisConfig | undefined)

Source from the content-addressed store, hash-verified

98}
99
100export function parserToolArgs(toolAnalysis: ToolAnalysisConfig | undefined): string[] {
101 if (!toolAnalysis) return [`--tool-prefix=${mcpToolPrefix}`];
102 const args: string[] = [];
103 const toolNames = new Set<string>();
104 for (const matcher of toolAnalysis.matchers) {
105 if (matcher.kind === 'namePrefix') args.push(`--tool-prefix=${matcher.prefix}`);
106 if (matcher.kind === 'bashCommand') toolNames.add('Bash');
107 }
108 for (const toolName of toolNames) args.push(`--tool-name=${toolName}`);
109 return args;
110}

Callers 1

runParserFunction · 0.90

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected