• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mongodb-js / mongodb-mcp-server / 14671892165

25 Apr 2025 07:17PM UTC coverage: 67.88% (-14.6%) from 82.446%
14671892165

Pull #136

github

web-flow
chore(deps-dev): bump @types/node from 22.14.1 to 22.15.2

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.14.1 to 22.15.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 22.15.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #136: chore(deps-dev): bump @types/node from 22.14.1 to 22.15.2

99 of 212 branches covered (46.7%)

Branch coverage included in aggregate %.

628 of 859 relevant lines covered (73.11%)

43.31 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

70.0
/src/tools/atlas/create/createFreeCluster.ts
1
import { z } from "zod";
31✔
2
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
3
import { AtlasToolBase } from "../atlasTool.js";
31✔
4
import { ToolArgs, OperationType } from "../../tool.js";
5
import { ClusterDescription20240805 } from "../../../common/atlas/openapi.js";
6

7
export class CreateFreeClusterTool extends AtlasToolBase {
31✔
8
    protected name = "atlas-create-free-cluster";
23✔
9
    protected description = "Create a free MongoDB Atlas cluster";
23✔
10
    protected operationType: OperationType = "create";
23✔
11
    protected argsShape = {
23✔
12
        projectId: z.string().describe("Atlas project ID to create the cluster in"),
13
        name: z.string().describe("Name of the cluster"),
14
        region: z.string().describe("Region of the cluster").default("US_EAST_1"),
15
    };
16

17
    protected async execute({ projectId, name, region }: ToolArgs<typeof this.argsShape>): Promise<CallToolResult> {
18
        const input = {
×
19
            groupId: projectId,
20
            name,
21
            clusterType: "REPLICASET",
22
            replicationSpecs: [
23
                {
24
                    zoneName: "Zone 1",
25
                    regionConfigs: [
26
                        {
27
                            providerName: "TENANT",
28
                            backingProviderName: "AWS",
29
                            regionName: region,
30
                            electableSpecs: {
31
                                instanceSize: "M0",
32
                            },
33
                        },
34
                    ],
35
                },
36
            ],
37
            terminationProtectionEnabled: false,
38
        } as unknown as ClusterDescription20240805;
39

40
        await this.session.apiClient.createCluster({
×
41
            params: {
42
                path: {
43
                    groupId: projectId,
44
                },
45
            },
46
            body: input,
47
        });
48

49
        return {
×
50
            content: [{ type: "text", text: `Cluster "${name}" has been created in region "${region}".` }],
51
        };
52
    }
53
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc