Skip to main content
Glama

CentralMind/Gateway

http_helpers.go422 B
package oauth import ( "github.com/centralmind/gateway/cors" "net/http" ) // CORSMiddleware applies standard CORS headers to the response func CORSMiddleware(handler http.Handler) http.Handler { return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { cors.ApplyCORSHeaders(w, "GET, POST") if cors.HandlePreflight(w, r) { return } // Call the original handler handler.ServeHTTP(w, r) }) }

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/centralmind/gateway'

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