/**
* Shared constants for the HF-MCP-Server application
*/
// Transport types
export type TransportType = 'stdio' | 'sse' | 'streamableHttp' | 'streamableHttpJson' | 'unknown';
export const OAUTH_RESOURCE_BASE_URL = 'https://huggingface.co/.well-known/oauth-protected-resource/mcp';
export const OAUTH_RESOURCE = `Bearer resource_metadata="${OAUTH_RESOURCE_BASE_URL}"`;
// Server port (now using single port for both web app and MCP API)
export const DEFAULT_WEB_APP_PORT = 3000;
/** make this referenceable */
export const GRADIO_PREFIX = 'gr';
export const GRADIO_PRIVATE_PREFIX = 'grp';
// CORS configuration
// Note: Origins are scheme+host(+port). No paths allowed.
export const CORS_ALLOWED_ORIGINS = ['https://huggingface.co', 'https://hf.co'];
// Headers that should be exposed to the browser (readable from JS)
export const CORS_EXPOSED_HEADERS = ['Mcp-Session-Id', 'WWW-Authenticate'];