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

mongodb-js / mongodb-mcp-server / 14617009034

23 Apr 2025 11:28AM UTC coverage: 76.414% (-0.3%) from 76.675%
14617009034

Pull #96

github

fmenezes
fix: ignore connectionString on atlas tools
Pull Request #96: feat: hide atlas tools when not configured

83 of 155 branches covered (53.55%)

Branch coverage included in aggregate %.

6 of 7 new or added lines in 2 files covered. (85.71%)

2 existing lines in 2 files now uncovered.

552 of 676 relevant lines covered (81.66%)

27.22 hits per line

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

83.33
/src/tools/atlas/atlasTool.ts
1
import { ToolBase, ToolCategory } from "../tool.js";
16✔
2
import { Session } from "../../session.js";
3
import config from "../../config.js";
16✔
4

5
export abstract class AtlasToolBase extends ToolBase {
16✔
6
    constructor(protected readonly session: Session) {
160✔
7
        super(session);
160✔
8
    }
9

10
    protected category: ToolCategory = "atlas";
160✔
11

12
    protected verifyAllowed(): boolean {
13
        if (!config.apiClientId || !config.apiClientSecret) {
160!
NEW
14
            return false;
×
15
        }
16
        return super.verifyAllowed();
160✔
17
    }
18
}
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