UNPKG

mcp-adr-analysis-server

Version:

MCP server for analyzing Architectural Decision Records and project architecture

60 lines 1.87 kB
/** * Pattern Contribution Helper * * Helps users contribute missing patterns to the validatedpatterns project * by creating well-formatted GitHub issues with detection evidence. */ import type { PlatformDetectionResult } from './platform-detector.js'; /** * GitHub issue creation result */ export interface GitHubIssueResult { success: boolean; issueUrl?: string; issueNumber?: number; issueTitle: string; issueBody: string; error?: string; } /** * Helper for creating GitHub issues for missing patterns */ export declare class PatternContributionHelper { private logger; constructor(); /** * Prompt user to contribute missing pattern */ promptUserForContribution(platform: string, detection: PlatformDetectionResult): string; /** * Prepare GitHub issue content for missing pattern */ prepareIssueContent(platform: string, detection: PlatformDetectionResult): { title: string; body: string; }; /** * Create GitHub issue (placeholder for actual GitHub API integration) * * In production, this would use Octokit to create the issue. * For now, it returns the issue content for manual creation. */ createGitHubIssue(platform: string, detection: PlatformDetectionResult, _options?: { githubToken?: string; repository?: string; owner?: string; }): Promise<GitHubIssueResult>; /** * Generate summary message for user after issue creation */ generateSuccessMessage(result: GitHubIssueResult, platform: string): string; /** * Check if GitHub token is configured for automatic issue creation */ isGitHubConfigured(): boolean; /** * Get GitHub configuration status message */ getConfigurationStatus(): string; } //# sourceMappingURL=pattern-contribution-helper.d.ts.map