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

Function createCliXcodeProxyTool

src/cli/cli-tool-catalog.ts:98–115  ·  view source on GitHub ↗
(remoteTool: DynamicBridgeTool)

Source from the content-addressed store, hash-verified

96}
97
98function createCliXcodeProxyTool(remoteTool: DynamicBridgeTool): ToolDefinition {
99 const cliSchema = jsonSchemaToToolSchemaShape(remoteTool.inputSchema);
100
101 return {
102 cliName: toKebabCase(remoteTool.name),
103 mcpName: toLocalToolName(remoteTool.name),
104 workflow: 'xcode-ide',
105 description: remoteTool.description ?? '',
106 annotations: remoteTool.annotations,
107 mcpSchema: cliSchema,
108 cliSchema,
109 stateful: false,
110 xcodeIdeRemoteToolName: remoteTool.name,
111 handler: async (params, ctx): Promise<void> => {
112 return invokeRemoteToolOneShot(remoteTool.name, params, ctx);
113 },
114 };
115}
116
117async function loadDaemonBackedXcodeProxyTools(
118 opts: BuildCliToolCatalogOptions,

Callers 1

Calls 4

toKebabCaseFunction · 0.90
toLocalToolNameFunction · 0.90
invokeRemoteToolOneShotFunction · 0.85

Tested by

no test coverage detected