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

Function createTool

src/cli/__tests__/register-tool-commands.test.ts:11–30  ·  view source on GitHub ↗
(overrides: Partial<ToolDefinition> = {})

Source from the content-addressed store, hash-verified

9import * as simulatorResolver from '../../utils/simulator-resolver.ts';
10
11function createTool(overrides: Partial<ToolDefinition> = {}): ToolDefinition {
12 return {
13 cliName: 'run-tool',
14 mcpName: 'run_tool',
15 workflow: 'simulator',
16 description: 'Run test tool',
17 annotations: { readOnlyHint: true },
18 cliSchema: {
19 workspacePath: z.string().describe('Workspace path'),
20 scheme: z.string().optional(),
21 },
22 mcpSchema: {
23 workspacePath: z.string().describe('Workspace path'),
24 scheme: z.string().optional(),
25 },
26 stateful: false,
27 handler: vi.fn(async () => {}) as ToolDefinition['handler'],
28 ...overrides,
29 };
30}
31
32function createCatalog(tools: ToolDefinition[]): ToolCatalog {
33 return {

Callers 3

createBuildResultToolFunction · 0.70
createAppPathToolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected