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

mongodb-js / mongodb-mcp-server / 14671884465

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

Pull #134

github

web-flow
chore(deps-dev): bump mongodb-runner from 5.8.2 to 5.8.3

Bumps [mongodb-runner](https://github.com/mongodb-js/devtools-shared) from 5.8.2 to 5.8.3.
- [Commits](https://github.com/mongodb-js/devtools-shared/commits)

---
updated-dependencies:
- dependency-name: mongodb-runner
  dependency-version: 5.8.3
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #134: chore(deps-dev): bump mongodb-runner from 5.8.2 to 5.8.3

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

46.67
/src/tools/atlas/read/inspectAccessList.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

6
export class InspectAccessListTool extends AtlasToolBase {
31✔
7
    protected name = "atlas-inspect-access-list";
23✔
8
    protected description = "Inspect Ip/CIDR ranges with access to your MongoDB Atlas clusters.";
23✔
9
    protected operationType: OperationType = "read";
23✔
10
    protected argsShape = {
23✔
11
        projectId: z.string().describe("Atlas project ID"),
12
    };
13

14
    protected async execute({ projectId }: ToolArgs<typeof this.argsShape>): Promise<CallToolResult> {
15
        const accessList = await this.session.apiClient.listProjectIpAccessLists({
×
16
            params: {
17
                path: {
18
                    groupId: projectId,
19
                },
20
            },
21
        });
22

23
        if (!accessList?.results?.length) {
×
24
            throw new Error("No access list entries found.");
×
25
        }
26

27
        return {
×
28
            content: [
29
                {
30
                    type: "text",
31
                    text: `IP ADDRESS | CIDR | COMMENT
32
------|------|------
33
${(accessList.results || [])
×
34
    .map((entry) => {
35
        return `${entry.ipAddress} | ${entry.cidrBlock} | ${entry.comment}`;
×
36
    })
37
    .join("\n")}`,
38
                },
39
            ],
40
        };
41
    }
42
}
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