Buckets:
| /** | |
| * Shared constants for the HF-MCP-Server application | |
| */ | |
| // Transport types | |
| export type TransportType = 'stdio' | 'streamableHttp' | 'streamableHttpJson' | 'unknown'; | |
| export const OAUTH_RESOURCE_BASE_URL = 'https://huggingface.co/.well-known/oauth-protected-resource/mcp'; | |
| /** @lintignore retained for HTTP auth challenge compatibility */ | |
| 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']; | |
Xet Storage Details
- Size:
- 963 Bytes
- Xet hash:
- 7872457ad9f31612930c1eaf91ccc4f1ce6579590b0f4ab87b975d51a683bb5c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.