Skip to main content
Glama

Next.js MCP Server Template

by hiltonbrown
vercel.json1.06 kB
{ "functions": { "app/api/mcp/route.ts": { "maxDuration": 300 }, "app/api/mcp/sse/route.ts": { "maxDuration": 300 }, "app/api/auth/**": { "maxDuration": 60 }, "app/api/webhooks/**": { "maxDuration": 30 } }, "crons": [ { "path": "/api/maintenance/cleanup-sessions", "schedule": "0 2 * * *" }, { "path": "/api/maintenance/refresh-tokens", "schedule": "0 */6 * * *" } ], "redirects": [ { "source": "/oauth/callback", "destination": "/api/auth/callback", "permanent": false } ], "headers": [ { "source": "/api/(.*)", "headers": [ { "key": "Access-Control-Allow-Origin", "value": "$ALLOWED_ORIGINS" }, { "key": "Access-Control-Allow-Methods", "value": "GET, POST, PUT, DELETE, OPTIONS" }, { "key": "Access-Control-Allow-Headers", "value": "Content-Type, Authorization, X-Requested-With" } ] } ] }

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/hiltonbrown/xero-mcp-with-next-js'

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