repo_description: An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
repo_topics: agents ai api-gateway asyncio authentication-middleware devops docker fastapi federation gateway generative-ai jwt kubernetes llm-agents mcp model-context-protocol observability prompt-engineering python tools
code: import { defineConfig } from "vitest/config";
  
  export default defineConfig({
    test: {
      environment: "jsdom",
      globals: true,
      include: [
        // "tests/js/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
        "tests/unit/js/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}",
      ],
      exclude: [
        "**/node_modules/**",
        "**/tests/playwright/**",
        "**/tests/integration/**",
        "**/tests/e2e/**",
        "**/tests/performance/**",
        "**/tests/security/**",
        "**/tests/fuzz/**",
        "**/tests/load/**",
        "**/tests/loadtest/**",
        "**/tests/jmeter/**",
      ],
      coverage: {
        provider: "istanbul",
        reporter: ["text", "json", "html", "lcov"],
        include: ["mcpgateway/admin_ui/**/*.js", "mcpgateway/static/flame-graph.js", "mcpgateway/static/gantt-chart.js"],
        exclude: ["mcpgateway/static/bundle-*.js", "**/node_modules/**"],
        reportOnFailure: true,
      },
    },
  });
  