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

Function toCatalogTool

src/utils/tool-registry.ts:391–410  ·  view source on GitHub ↗
(
  toolManifest: ToolManifestEntry,
  workflow: WorkflowManifestEntry,
  toolModule: ImportedToolModule,
)

Source from the content-addressed store, hash-verified

389}
390
391function toCatalogTool(
392 toolManifest: ToolManifestEntry,
393 workflow: WorkflowManifestEntry,
394 toolModule: ImportedToolModule,
395): ToolDefinition {
396 return {
397 id: toolManifest.id,
398 cliName: getEffectiveCliName(toolManifest),
399 mcpName: toolManifest.names.mcp,
400 workflow: workflow.id,
401 description: toolManifest.description,
402 annotations: toolManifest.annotations,
403 outputSchema: toolManifest.outputSchema,
404 nextStepTemplates: toolManifest.nextSteps,
405 mcpSchema: toolModule.schema,
406 cliSchema: toolModule.schema,
407 stateful: toolManifest.routing?.stateful ?? false,
408 handler: toolModule.handler as ToolDefinition['handler'],
409 };
410}
411
412async function enumerateAndRegisterTools(
413 manifest: ResolvedManifest,

Callers 1

Calls 1

getEffectiveCliNameFunction · 0.90

Tested by

no test coverage detected