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

Function getCanonicalWorkflow

src/cli/commands/tools.ts:153–159  ·  view source on GitHub ↗

* Get the canonical workflow for a tool based on its module path.

(tool: ToolManifestEntry)

Source from the content-addressed store, hash-verified

151 * Get the canonical workflow for a tool based on its module path.
152 */
153function getCanonicalWorkflow(tool: ToolManifestEntry): string | undefined {
154 const moduleParts = tool.module.split('/');
155 if (moduleParts.length >= 3) {
156 return moduleParts[2]; // mcp/tools/<workflow>/<tool>
157 }
158 return undefined;
159}
160
161/**
162 * Register the 'tools' command for listing available tools.

Callers 1

buildToolListFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected