Skip to content

Commit 88abcdf

Browse files
refactor: remove logger boilerplate from 25 tool files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 58dec36 commit 88abcdf

25 files changed

Lines changed: 0 additions & 50 deletions

src/tools/auth-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
8-
import { logger } from "../utils/logger.js";
98

109
export function registerAuthTools(server: McpServer): void {
1110
// arcane_auth_login
@@ -215,5 +214,4 @@ export function registerAuthTools(server: McpServer): void {
215214
})
216215
);
217216

218-
logger.debug("Registered auth tools");
219217
}

src/tools/build-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
88
import { validatePath } from "../utils/format.js";
9-
import { logger } from "../utils/logger.js";
109
import type { Build, BuildDetails, WorkspaceFile } from "../types/arcane-types.js";
1110

1211
export function registerBuildTools(server: McpServer): void {
@@ -253,5 +252,4 @@ export function registerBuildTools(server: McpServer): void {
253252
})
254253
);
255254

256-
logger.debug("Registered build tools");
257255
}

src/tools/container-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
88
import { DOCKER_SHORT_ID_LENGTH, MAX_DISPLAY_LABELS, DEFAULT_PAGINATION_START, DEFAULT_PAGINATION_LIMIT } from "../constants.js";
9-
import { logger } from "../utils/logger.js";
109
import type { Container } from "../types/arcane-types.js";
1110

1211
export function registerContainerTools(server: McpServer): void {
@@ -352,5 +351,4 @@ export function registerContainerTools(server: McpServer): void {
352351
})
353352
);
354353

355-
logger.debug("Registered container tools");
356354
}

src/tools/dashboard-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
8-
import { logger } from "../utils/logger.js";
98
import type { DashboardSnapshot, ActionItem } from "../types/arcane-types.js";
109

1110
export function registerDashboardTools(server: McpServer): void {
@@ -95,5 +94,4 @@ export function registerDashboardTools(server: McpServer): void {
9594
})
9695
);
9796

98-
logger.debug("Registered dashboard tools");
9997
}

src/tools/environment-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
88
import { formatSizeGB } from "../utils/format.js";
9-
import { logger } from "../utils/logger.js";
109
import type { Environment } from "../types/arcane-types.js";
1110

1211
export function registerEnvironmentTools(server: McpServer): void {
@@ -325,5 +324,4 @@ export function registerEnvironmentTools(server: McpServer): void {
325324
})
326325
);
327326

328-
logger.debug("Registered environment tools");
329327
}

src/tools/event-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
88
import { MAX_DISPLAY_EVENTS } from "../constants.js";
9-
import { logger } from "../utils/logger.js";
109
import type { Event } from "../types/arcane-types.js";
1110

1211
export function registerEventTools(server: McpServer): void {
@@ -163,5 +162,4 @@ export function registerEventTools(server: McpServer): void {
163162
})
164163
);
165164

166-
logger.debug("Registered event tools");
167165
}

src/tools/gitops-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
77
import { z } from "zod";
88
import { toolHandler } from "../utils/tool-helpers.js";
99
import { validatePath } from "../utils/format.js";
10-
import { logger } from "../utils/logger.js";
1110
import type { GitOpsSync, GitRepository } from "../types/arcane-types.js";
1211

1312
export function registerGitopsTools(server: McpServer): void {
@@ -449,5 +448,4 @@ export function registerGitopsTools(server: McpServer): void {
449448
})
450449
);
451450

452-
logger.debug("Registered gitops tools");
453451
}

src/tools/image-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
88
import { formatSize, formatSizeMB, formatSizeGB } from "../utils/format.js";
99
import { DOCKER_DIGEST_PREFIX_LENGTH, DOCKER_SHORT_ID_LENGTH } from "../constants.js";
10-
import { logger } from "../utils/logger.js";
1110
import type { Image } from "../types/arcane-types.js";
1211

1312
export function registerImageTools(server: McpServer): void {
@@ -307,5 +306,4 @@ export function registerImageTools(server: McpServer): void {
307306
})
308307
);
309308

310-
logger.debug("Registered image tools");
311309
}

src/tools/image-update-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
8-
import { logger } from "../utils/logger.js";
98
import type { ImageUpdateResponse, BatchImageUpdateResponse, ImageUpdateSummary } from "../types/arcane-types.js";
109

1110
export function registerImageUpdateTools(server: McpServer): void {
@@ -182,5 +181,4 @@ export function registerImageUpdateTools(server: McpServer): void {
182181
})
183182
);
184183

185-
logger.debug("Registered image update tools");
186184
}

src/tools/job-tools.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
66
import { z } from "zod";
77
import { toolHandler } from "../utils/tool-helpers.js";
8-
import { logger } from "../utils/logger.js";
98
import type { Job } from "../types/arcane-types.js";
109

1110
export function registerJobTools(server: McpServer): void {
@@ -140,5 +139,4 @@ export function registerJobTools(server: McpServer): void {
140139
})
141140
);
142141

143-
logger.debug("Registered job tools");
144142
}

0 commit comments

Comments
 (0)