Skip to main content
Glama

MongoDB MCP Server

Official
by mongodb-js
Apache 2.0
9,526
730
  • Apple
  • Linux
vitest.config.ts2.29 kB
import { defineConfig } from "vitest/config"; // Shared exclusions for all projects // Ref: https://vitest.dev/config/#exclude const vitestDefaultExcludes = [ "**/node_modules/**", "**/dist/**", "**/cypress/**", "**/.{idea,git,cache,output,temp}/**", "**/{karma,rollup,webpack,vite,vitest,jest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*", ]; const longRunningTests = ["tests/integration/tools/atlas/performanceAdvisor.test.ts"]; if (process.env.SKIP_ATLAS_TESTS === "true") { vitestDefaultExcludes.push("**/atlas/**"); } if (process.env.SKIP_ATLAS_LOCAL_TESTS === "true") { vitestDefaultExcludes.push("**/atlas-local/**"); } export default defineConfig({ test: { environment: "node", testTimeout: 3600000, hookTimeout: 3600000, setupFiles: ["./tests/setup.ts"], coverage: { exclude: ["node_modules", "tests", "dist", "vitest.config.ts", "scripts"], reporter: ["lcov"], }, projects: [ { extends: true, test: { name: "unit-and-integration", include: ["**/*.test.ts"], exclude: [...vitestDefaultExcludes, "scripts/**", "tests/accuracy/**", ...longRunningTests], }, }, { extends: true, test: { name: "accuracy", include: ["**/accuracy/*.test.ts"], }, }, { extends: true, test: { name: "eslint-rules", include: ["eslint-rules/*.test.js"], }, }, { extends: true, test: { name: "atlas-cleanup", include: ["scripts/cleanupAtlasTestLeftovers.test.ts"], }, }, { extends: true, test: { name: "long-running-tests", include: [...longRunningTests], testTimeout: 7200000, // 2 hours for long-running tests hookTimeout: 7200000, }, }, ], }, });

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