/** * URI Parser for Virtual Filesystem * Parses mcp:// URIs into components for resource resolution */ /** * Represents a parsed MCP URI */ export interface ParsedURI { protocol: 'mcp'; server: string; path: string; filename?: string; extension?: string; format?: 'csv' | 'json' | 'parquet' | 'arrow' | 'excel' | 'unknown'; isGlob: boolean; queryParams?: Map; } /** * Parser for MCP URIs in the format: mcp://server/path/to/resource.ext */ export declare class URIParser { private static readonly MCP_PROTOCOL; private static readonly FORMAT_MAP; /** * Parse an MCP URI into components * @param uri The URI to parse (e.g., mcp://weather-server/data/forecast.csv) * @returns Parsed URI components */ static parse(uri: string): ParsedURI; /** * Parse a query string into key-value pairs */ private static parseQueryString; /** * Validate if a string is a valid MCP URI */ static isValid(uri: string): boolean; /** * Extract all MCP URIs from a SQL query * @param sql The SQL query to scan * @returns Array of found MCP URIs */ static extractFromSQL(sql: string): string[]; /** * Build an MCP URI from components */ static build(components: { server: string; path: string; queryParams?: Record; }): string; /** * Check if a path matches a glob pattern */ static matchesGlob(pattern: string, path: string): boolean; /** * Expand a glob pattern to multiple URIs * @param globURI The glob URI pattern with wildcards * @param availableResources List of available resources * @returns Array of matching URIs */ static expandGlob(globURI: string, availableResources: Array<{ server: string; path: string; }>): string[]; } //# sourceMappingURL=URIParser.d.ts.map