• 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.15
/src/tools/atlas/read/listOrgs.ts
1
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
2
import { AtlasToolBase } from "../atlasTool.js";
31✔
3
import { OperationType } from "../../tool.js";
4

5
export class ListOrganizationsTool extends AtlasToolBase {
31✔
6
    protected name = "atlas-list-orgs";
23✔
7
    protected description = "List MongoDB Atlas organizations";
23✔
8
    protected operationType: OperationType = "read";
23✔
9
    protected argsShape = {};
23✔
10

11
    protected async execute(): Promise<CallToolResult> {
12
        const data = await this.session.apiClient.listOrganizations();
×
13

14
        if (!data?.results?.length) {
×
15
            throw new Error("No projects found in your MongoDB Atlas account.");
×
16
        }
17

18
        // Format projects as a table
19
        const output =
20
            `Organization Name | Organization ID
×
21
----------------| ----------------
22
` +
23
            data.results
24
                .map((org) => {
25
                    return `${org.name} | ${org.id}`;
×
26
                })
27
                .join("\n");
28
        return {
×
29
            content: [{ type: "text", text: output }],
30
        };
31
    }
32
}
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