Skip to content

Commit e3ceb9d

Browse files
committed
lint
1 parent 7d1f975 commit e3ceb9d

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

src/tools/atlas/createProject.ts

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
33
import { AtlasToolBase } from "./atlasTool.js";
44
import { ToolArgs, OperationType } from "../tool.js";
55
import { Group } from "../../common/atlas/openapi.js";
6-
import logger from "../../logger.js";
76

87
export class CreateProjectTool extends AtlasToolBase {
98
protected name = "atlas-create-project";
@@ -27,18 +26,27 @@ export class CreateProjectTool extends AtlasToolBase {
2726
const organizations = await this.session.apiClient.listOrganizations();
2827
if (!organizations?.results?.length) {
2928
return {
30-
content: [{ type: "text", text: "No organizations were found in your MongoDB Atlas account. Please create an organization first." }],
29+
content: [
30+
{
31+
type: "text",
32+
text: "No organizations were found in your MongoDB Atlas account. Please create an organization first.",
33+
},
34+
],
3135
isError: true,
3236
};
3337
}
3438
organizationId = organizations.results[0].id;
3539
assumedOrg = true;
36-
} catch (error) {
40+
} catch {
3741
return {
38-
content: [{ type: "text", text: "Could not search for organizations in your MongoDB Atlas account, please provide an organization ID or create one first." }],
42+
content: [
43+
{
44+
type: "text",
45+
text: "Could not search for organizations in your MongoDB Atlas account, please provide an organization ID or create one first.",
46+
},
47+
],
3948
isError: true,
4049
};
41-
4250
}
4351
}
4452

@@ -52,7 +60,12 @@ export class CreateProjectTool extends AtlasToolBase {
5260
});
5361

5462
return {
55-
content: [{ type: "text", text: `Project "${projectName}" created successfully${assumedOrg ? ` (using organizationId ${organizationId}).` : ""}.` }],
63+
content: [
64+
{
65+
type: "text",
66+
text: `Project "${projectName}" created successfully${assumedOrg ? ` (using organizationId ${organizationId}).` : ""}.`,
67+
},
68+
],
5669
};
5770
}
5871
}

0 commit comments

Comments
 (0)