Skip to main content
Glama
evalstate

Hugging Face MCP Server

by evalstate
constants.ts905 B
/** * 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'];

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/evalstate/hf-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server