@wangkanai/devops-mcp
Version:
Dynamic Azure DevOps MCP Server for directory-based environment switching
34 lines • 1.09 kB
TypeScript
/**
* Environment Detection Service
* Detects current working directory and maps to appropriate Azure DevOps configuration
* @deprecated Use DirectoryDetector instead
*/
import { AzureDevOpsConfig, ProjectMapping } from '../types/index.js';
export declare class EnvironmentDetector {
private directoryDetector;
constructor(mappings: ProjectMapping[], defaultConfig?: AzureDevOpsConfig);
/**
* Detect Azure DevOps configuration based on current directory
*/
detectEnvironment(currentDirectory: string): AzureDevOpsConfig | null;
/**
* Add a new project mapping
*/
addMapping(mapping: ProjectMapping): void;
/**
* Get all configured mappings
*/
getMappings(): string[];
/**
* Get project context for directory
*/
getProjectContext(currentDirectory?: string): {
projectName: string;
organizationUrl: string;
} | null;
/**
* Check if directory is configured
*/
isConfiguredDirectory(currentDirectory?: string): boolean;
}
//# sourceMappingURL=environment-detector.d.ts.map