mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
150 lines • 6.59 kB
TypeScript
/**
* MCP Tool for guided troubleshooting workflow
* Provides systematic troubleshooting with ADR/TODO alignment
* Integrates with other MCP tools for comprehensive analysis
*/
import { z } from 'zod';
declare const TroubleshootSchema: z.ZodObject<{
operation: z.ZodEnum<["analyze_failure", "generate_test_plan", "full_workflow"]>;
failure: z.ZodOptional<z.ZodObject<{
failureType: z.ZodEnum<["test_failure", "deployment_failure", "build_failure", "runtime_error", "performance_issue", "security_issue", "other"]>;
failureDetails: z.ZodObject<{
command: z.ZodOptional<z.ZodString>;
exitCode: z.ZodOptional<z.ZodNumber>;
errorMessage: z.ZodString;
stackTrace: z.ZodOptional<z.ZodString>;
logOutput: z.ZodOptional<z.ZodString>;
environment: z.ZodOptional<z.ZodString>;
timestamp: z.ZodOptional<z.ZodString>;
affectedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
}, "strip", z.ZodTypeAny, {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
}, {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
}>;
context: z.ZodOptional<z.ZodObject<{
recentChanges: z.ZodOptional<z.ZodString>;
reproducible: z.ZodOptional<z.ZodBoolean>;
frequency: z.ZodOptional<z.ZodString>;
impact: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
}, "strip", z.ZodTypeAny, {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
}, {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
}>>;
}, "strip", z.ZodTypeAny, {
failureDetails: {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
};
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
context?: {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
} | undefined;
}, {
failureDetails: {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
};
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
context?: {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
} | undefined;
}>>;
projectPath: z.ZodOptional<z.ZodString>;
adrDirectory: z.ZodDefault<z.ZodString>;
todoPath: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
adrDirectory: string;
operation: "analyze_failure" | "generate_test_plan" | "full_workflow";
todoPath: string;
projectPath?: string | undefined;
failure?: {
failureDetails: {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
};
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
context?: {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
} | undefined;
} | undefined;
}, {
operation: "analyze_failure" | "generate_test_plan" | "full_workflow";
projectPath?: string | undefined;
adrDirectory?: string | undefined;
todoPath?: string | undefined;
failure?: {
failureDetails: {
errorMessage: string;
timestamp?: string | undefined;
environment?: string | undefined;
command?: string | undefined;
exitCode?: number | undefined;
stackTrace?: string | undefined;
logOutput?: string | undefined;
affectedFiles?: string[] | undefined;
};
failureType: "other" | "test_failure" | "deployment_failure" | "build_failure" | "runtime_error" | "performance_issue" | "security_issue";
context?: {
impact?: "medium" | "low" | "high" | "critical" | undefined;
recentChanges?: string | undefined;
reproducible?: boolean | undefined;
frequency?: string | undefined;
} | undefined;
} | undefined;
}>;
type TroubleshootArgs = z.infer<typeof TroubleshootSchema>;
/**
* Main troubleshooting workflow function
*/
export declare function troubleshootGuidedWorkflow(args: TroubleshootArgs): Promise<any>;
export {};
//# sourceMappingURL=troubleshoot-guided-workflow-tool.d.ts.map