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

mongodb-js / mongodb-mcp-server / 18916192837

29 Oct 2025 05:08PM UTC coverage: 80.256% (+0.03%) from 80.223%
18916192837

Pull #708

github

web-flow
Merge de618d490 into d25a9ed0c
Pull Request #708: fix(atlas-local): improve error message when Docker is unavailable

1352 of 1826 branches covered (74.04%)

Branch coverage included in aggregate %.

2 of 4 new or added lines in 1 file covered. (50.0%)

6355 of 7777 relevant lines covered (81.72%)

71.17 hits per line

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

40.0
/src/common/atlasLocal.ts
1
import type { Client } from "@mongodb-js/atlas-local";
2

3
export type AtlasLocalClientFactoryFn = () => Promise<Client | undefined>;
4

5
export const defaultCreateAtlasLocalClient: AtlasLocalClientFactoryFn = async () => {
3✔
6
    try {
85✔
7
        // Import Atlas Local client asyncronously
8
        // This will fail on unsupported platforms
9
        const { Client: AtlasLocalClient } = await import("@mongodb-js/atlas-local");
85✔
10

11
        try {
85✔
12
            // Connect to Atlas Local client
13
            // This will fail if docker is not running
14
            return AtlasLocalClient.connect();
85✔
15
        } catch {
85!
16
            console.warn(
×
NEW
17
                "Cannot connect to Docker. Atlas Local tools are disabled. All other tools continue to work normally."
×
18
            );
×
19
        }
×
20
    } catch {
85!
21
        console.warn(
×
NEW
22
            "Atlas Local is not supported on this platform. Atlas Local tools are disabled. All other tools continue to work normally."
×
23
        );
×
24
    }
×
25

26
    return undefined;
×
27
};
×
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