bc-code-intelligence-mcp
Version:
BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows
234 lines • 7.75 kB
TypeScript
/**
* Configuration Diagnostic Tools
*
* Tools for Chris Config to diagnose configuration and layer issues,
* particularly git authentication and Azure DevOps connectivity.
*/
import { CallToolRequest, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
import { MultiContentLayerService } from '../services/multi-content-layer-service.js';
import { ConfigurationLoader } from '../config/config-loader.js';
export declare class ConfigDiagnosticTools {
private layerService;
private configLoader?;
constructor(layerService: MultiContentLayerService, configLoader?: ConfigurationLoader);
getToolDefinitions(): ({
name: string;
description: string;
inputSchema: {
type: string;
properties: {
git_url: {
type: string;
description: string;
};
auth_type: {
type: string;
enum: string[];
description: string;
};
token_env_var: {
type: string;
description: string;
};
branch: {
type: string;
description: string;
default: string;
};
test_type: {
type: string;
enum: string[];
description: string;
default: string;
};
config_path?: undefined;
check_type?: undefined;
organization?: undefined;
project?: undefined;
repository?: undefined;
pat_env_var?: undefined;
layer_name?: undefined;
include_metrics?: undefined;
layer_path?: undefined;
reload_config?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
config_path: {
type: string;
description: string;
};
check_type: {
type: string;
enum: string[];
description: string;
default: string;
};
git_url?: undefined;
auth_type?: undefined;
token_env_var?: undefined;
branch?: undefined;
test_type?: undefined;
organization?: undefined;
project?: undefined;
repository?: undefined;
pat_env_var?: undefined;
layer_name?: undefined;
include_metrics?: undefined;
layer_path?: undefined;
reload_config?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
organization: {
type: string;
description: string;
};
project: {
type: string;
description: string;
};
repository: {
type: string;
description: string;
};
pat_env_var: {
type: string;
description: string;
};
git_url?: undefined;
auth_type?: undefined;
token_env_var?: undefined;
branch?: undefined;
test_type?: undefined;
config_path?: undefined;
check_type?: undefined;
layer_name?: undefined;
include_metrics?: undefined;
layer_path?: undefined;
reload_config?: undefined;
};
required: string[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
layer_name: {
type: string;
description: string;
};
include_metrics: {
type: string;
description: string;
default: boolean;
};
git_url?: undefined;
auth_type?: undefined;
token_env_var?: undefined;
branch?: undefined;
test_type?: undefined;
config_path?: undefined;
check_type?: undefined;
organization?: undefined;
project?: undefined;
repository?: undefined;
pat_env_var?: undefined;
layer_path?: undefined;
reload_config?: undefined;
};
required: any[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
layer_path: {
type: string;
description: string;
default: string;
};
git_url?: undefined;
auth_type?: undefined;
token_env_var?: undefined;
branch?: undefined;
test_type?: undefined;
config_path?: undefined;
check_type?: undefined;
organization?: undefined;
project?: undefined;
repository?: undefined;
pat_env_var?: undefined;
layer_name?: undefined;
include_metrics?: undefined;
reload_config?: undefined;
};
required: any[];
};
} | {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
layer_name: {
type: string;
description: string;
};
reload_config: {
type: string;
description: string;
default: boolean;
};
git_url?: undefined;
auth_type?: undefined;
token_env_var?: undefined;
branch?: undefined;
test_type?: undefined;
config_path?: undefined;
check_type?: undefined;
organization?: undefined;
project?: undefined;
repository?: undefined;
pat_env_var?: undefined;
include_metrics?: undefined;
layer_path?: undefined;
};
required: any[];
};
})[];
handleToolCall(request: CallToolRequest): Promise<CallToolResult>;
private diagnoseGitLayer;
private validateGitUrl;
private testAuthConfiguration;
private testGitConnectivity;
private testGitClone;
private generateDiagnosticSummary;
private generateRecommendations;
private testAzureDevOpsPAT;
private validateLayerConfig;
private getLayerDiagnostics;
private diagnoseLocalLayer;
private countMarkdownFiles;
private findSampleMarkdownFiles;
private validateMarkdownFile;
private generateLocalLayerRecommendations;
private reloadLayers;
}
//# sourceMappingURL=config-diagnostic-tools.d.ts.map