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

Function recordMcpInvocation

src/utils/tool-registry.ts:236–248  ·  view source on GitHub ↗
(
  toolName: string,
  startedAt: number,
  outcome: 'completed' | 'infra_error',
)

Source from the content-addressed store, hash-verified

234type ImportedToolModule = Awaited<ReturnType<typeof importToolModule>>;
235
236function recordMcpInvocation(
237 toolName: string,
238 startedAt: number,
239 outcome: 'completed' | 'infra_error',
240): void {
241 recordToolInvocationMetric({
242 toolName,
243 runtime: 'mcp',
244 transport: 'direct',
245 outcome,
246 durationMs: Date.now() - startedAt,
247 });
248}
249
250async function invokeRegisteredTool(
251 toolName: string,

Callers 1

invokeRegisteredToolFunction · 0.85

Calls 1

Tested by

no test coverage detected