UNPKG

mcp-cve-intelligence-server-lite-test

Version:

Lite Model Context Protocol server for comprehensive CVE intelligence gathering with multi-source exploit discovery, designed for security professionals and cybersecurity researchers - Alpha Release

60 lines 2.12 kB
import type { CVE, CVESearchFilters, CVESearchResult } from '../types/cve.js'; import { BaseCVESourceImplementation, SourceValidationResult, type RequestOptions } from './base.js'; export declare class GitHubSourceImplementation extends BaseCVESourceImplementation { buildSearchRequest(filters: CVESearchFilters): { url: string; options: RequestOptions; }; buildDetailsRequest(cveId: string): { url: string; options: RequestOptions; }; normalizeSearchResults(data: Record<string, unknown>): CVESearchResult; normalizeCVEData(data: Record<string, unknown>): CVE; private mapGitHubState; private normalizeGitHubMetrics; private normalizeGitHubWeaknesses; private normalizeGitHubReferences; testConnection(): Promise<boolean>; /** * Validates GitHub-specific configuration */ protected validateSourceSpecificConfig(): SourceValidationResult; /** * Validates GitHub token format and configuration */ protected validateSourceSpecificApiKey(): SourceValidationResult; /** * Validates GitHub-specific rate limiting configuration */ /** * GitHub-specific API key environment variable from configuration */ getApiKeyEnvironmentVariable(): string; /** * Alternative environment variables for GitHub token */ getAlternativeApiKeyEnvironmentVariables(): string[]; /** * GitHub API key identifier for mapping */ getApiKeyIdentifier(): string; /** * Check if this source matches GitHub-related identifiers */ matchesSourceIdentifier(identifier: string): boolean; /** * Validate if the API key can be used by GitHub */ canUseApiKey(apiKey: string): boolean; /** * Override base class authentication for GitHub-specific Bearer token */ protected getAuthHeaders(): Record<string, string>; private getRequestOptions; /** * Makes a GitHub API request with proper error handling for rate limits and permissions */ private makeGitHubApiRequest; } //# sourceMappingURL=github.d.ts.map