Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
orgs.test.ts1.08 kB
import { expectDefined, getResponseContent } from "../../helpers.js"; import { describeWithAtlas, withCredentials } from "./atlasHelpers.js"; import { describe, expect, it } from "vitest"; describeWithAtlas("orgs", (integration) => { withCredentials(integration, () => { describe("atlas-list-orgs", () => { it("should have correct metadata", async () => { const { tools } = await integration.mcpClient().listTools(); const listOrgs = tools.find((tool) => tool.name === "atlas-list-orgs"); expectDefined(listOrgs); }); it("returns org names", async () => { const response = await integration.mcpClient().callTool({ name: "atlas-list-orgs", arguments: {} }); const content = getResponseContent(response.content); expect(content).toContain("Found 1 organizations"); expect(content).toContain("<untrusted-user-data-"); expect(content).toContain("MongoDB MCP Test"); }); }); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mongodb-js/mongodb-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server