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

    Function createDefaultContainer

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

      Registered services:

      • TOKENS.RateLimiter → RateLimiter (standard EP API configuration)
      • TOKENS.MetricsService → MetricsService
      • TOKENS.AuditLogger → AuditLogger (global singleton)
      • TOKENS.HealthService → HealthService

      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