Skip to content

Commit 41a8d81

Browse files
committed
fix: satisfy eslint (no-case-declarations, prettier)
1 parent 0c53d90 commit 41a8d81

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/mcp-server.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ export class BasecampMCPServer {
205205
}) || { method: 'GET', path: '' }
206206
);
207207

208-
default:
208+
default: {
209209
// Accept both original names like 'sdk:projects.list' and safe names like 'sdk_projects_list'
210210
let originalName: string | undefined;
211211
if (name?.startsWith('sdk:')) {
@@ -231,7 +231,9 @@ export class BasecampMCPServer {
231231
if (name === 'sdk_list_actions') {
232232
const list = sdkActions.map(a => ({
233233
original: a.name,
234-
safe: this.originalToSafe.get(a.name) || 'sdk_' + a.name.replace(/[^A-Za-z0-9_-]/g, '_'),
234+
safe:
235+
this.originalToSafe.get(a.name) ||
236+
'sdk_' + a.name.replace(/[^A-Za-z0-9_-]/g, '_'),
235237
description: a.description,
236238
schema: a.schema,
237239
}));
@@ -245,6 +247,7 @@ export class BasecampMCPServer {
245247
};
246248
}
247249
throw new Error(`Unknown tool: ${name}`);
250+
}
248251
}
249252
} catch (error) {
250253
return {

0 commit comments

Comments
 (0)