UNPKG

url-builder-mcp

Version:

URL Builder MCP Server - Professional URL construction with intelligent parameter handling for Claude Desktop

44 lines (43 loc) 1.13 kB
/** * URL Builder MCP Types * * Types for URL construction following project-specific rules */ export interface UrlParams { checkIn: string; checkOut: string; adults?: number; children?: number; roomType?: string; guestName?: string; guestEmail?: string; guestPhone?: string; } export interface BookingUrlParams extends UrlParams { guestName: string; guestPhone: string; } export interface ValidationResult { valid: boolean; errors: string[]; } export interface UrlBuilderConfig { /** Base domain/URL for all URL generation. Replaces both BOOKING_URL_BASE and BASE_DOMAIN */ bookingUrlBase: string; /** Default currency for booking URLs */ defaultCurrency: string; /** Base domain for complete URLs (same as bookingUrlBase for consistency) */ baseDomain: string; } export interface UtmParams { utm_source?: string; utm_medium?: string; utm_campaign?: string; utm_term?: string; utm_content?: string; } export interface UrlOptions { useBaseDomain?: boolean; addUtmTracking?: boolean; customUtm?: Partial<UtmParams>; }