We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/yamadashy/repomix'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { cors } from 'hono/cors';
export const corsMiddleware = cors({
origin: (origin) => {
const allowedOrigins = ['http://localhost:5173', 'https://repomix.com', 'https://api.repomix.com'];
if (!origin || allowedOrigins.includes(origin)) {
return origin;
}
if (origin.endsWith('.repomix.pages.dev')) {
return origin;
}
return null;
},
allowMethods: ['GET', 'POST', 'OPTIONS'],
allowHeaders: ['Content-Type'],
maxAge: 86400,
credentials: true,
});