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

mongodb-js / mongodb-mcp-server / 16646753322

31 Jul 2025 10:39AM UTC coverage: 80.911%. First build
16646753322

Pull #413

github

web-flow
Merge 235ffcf80 into b24fe5e12
Pull Request #413: chore: Probe of concept for reactive resources based on the session MCP-80

609 of 792 branches covered (76.89%)

Branch coverage included in aggregate %.

133 of 159 new or added lines in 6 files covered. (83.65%)

3265 of 3996 relevant lines covered (81.71%)

52.5 hits per line

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

51.35
/src/resources/common/config.ts
1
import { ReactiveResource } from "../resource.js";
2✔
2
import { config } from "../../common/config.js";
2✔
3
import type { UserConfig } from "../../common/config.js";
4

5
export class ConfigResource extends ReactiveResource(
2✔
6
    {
2✔
7
        name: "config",
2✔
8
        uri: "config://config",
2✔
9
        config: {
2✔
10
            description:
2✔
11
                "Server configuration, supplied by the user either as environment variables or as startup arguments",
2✔
12
        },
2✔
13
    },
2✔
14
    {
2✔
15
        initial: { ...config },
2✔
16
        events: [],
2✔
17
    }
2✔
18
) {
2✔
19
    reduce(eventName: undefined, event: undefined): UserConfig {
2✔
NEW
20
        void eventName;
×
NEW
21
        void event;
×
22

NEW
23
        return this.current;
×
NEW
24
    }
×
25

26
    toOutput(): string {
2✔
NEW
27
        const result = {
×
NEW
28
            telemetry: this.current.telemetry,
×
NEW
29
            logPath: this.current.logPath,
×
NEW
30
            connectionString: this.current.connectionString
×
NEW
31
                ? "set; access to MongoDB tools are currently available to use"
×
NEW
32
                : "not set; before using any MongoDB tool, you need to configure a connection string, alternatively you can setup MongoDB Atlas access, more info at 'https://github.com/mongodb-js/mongodb-mcp-server'.",
×
NEW
33
            connectOptions: this.current.connectOptions,
×
NEW
34
            atlas:
×
NEW
35
                this.current.apiClientId && this.current.apiClientSecret
×
NEW
36
                    ? "set; MongoDB Atlas tools are currently available to use"
×
NEW
37
                    : "not set; MongoDB Atlas tools are currently unavailable, to have access to MongoDB Atlas tools like creating clusters or connecting to clusters make sure to setup credentials, more info at 'https://github.com/mongodb-js/mongodb-mcp-server'.",
×
NEW
38
        };
×
39

NEW
40
        return JSON.stringify(result);
×
NEW
41
    }
×
42
}
2✔
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