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

Function createCatalog

src/cli/__tests__/register-tool-commands.test.ts:32–43  ·  view source on GitHub ↗
(tools: ToolDefinition[])

Source from the content-addressed store, hash-verified

30}
31
32function createCatalog(tools: ToolDefinition[]): ToolCatalog {
33 return {
34 tools,
35 getByCliName: (name) => tools.find((tool) => tool.cliName === name) ?? null,
36 getByMcpName: (name) => tools.find((tool) => tool.mcpName === name) ?? null,
37 getByToolId: (toolId) => tools.find((tool) => tool.id === toolId) ?? null,
38 resolve: (input) => {
39 const tool = tools.find((candidate) => candidate.cliName === input);
40 return tool ? { tool } : { notFound: true };
41 },
42 };
43}
44
45const baseRuntimeConfig: ResolvedRuntimeConfig = {
46 enabledWorkflows: [],

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected