UNPKG

deepsource-mcp-server

Version:
39 lines (38 loc) 1.29 kB
/** * @fileoverview Configuration management for DeepSource MCP Server * @packageDocumentation */ /** * Configuration interface for the DeepSource MCP Server */ export interface DeepSourceConfig { /** DeepSource API key for authentication */ apiKey: string; /** Base URL for DeepSource API */ apiBaseUrl: string; /** Request timeout in milliseconds */ requestTimeout: number; /** Log file path (optional) */ logFile?: string; /** Log level */ logLevel: string; } /** * Gets the current configuration * @returns The validated configuration * @throws MCPError if configuration is invalid */ export declare function getConfig(): DeepSourceConfig; /** * Checks if the API key is configured * @returns True if API key is set */ export declare function hasApiKey(): boolean; /** * Gets the API key from configuration * @returns The API key * @throws MCPError if API key is not set */ export declare function getApiKey(): string; export { getFeatureFlags, isFeatureEnabled, getEnabledFeatures, type FeatureFlags, } from './features.js'; export { DEFAULT_SERVER_CONFIG, DEFAULT_API_CONFIG, DEFAULT_DISCOVERY_CONFIG, getEnvironmentConfig, ToolCategory, ToolTag, type ServerConfig, type ApiConfig, type DiscoveryConfig, } from './default.js';