European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Function createDefaultContainer

    • Create a pre-configured DI container with the standard MCP server services registered as singletons.

      Registered services:

      • TOKENS.RateLimiterRateLimiter (standard EP API configuration)
      • TOKENS.MetricsServiceMetricsService
      • TOKENS.AuditLogger → AuditLogger (global singleton)
      • TOKENS.HealthServiceHealthService

      Returns DIContainer

      A fully configured DIContainer with all standard services registered

      const container = createDefaultContainer();
      const health = container.resolve<HealthService>(TOKENS.HealthService);
      console.log(health.checkHealth());

      0.8.0