Skip to main content
Glama
server.go602 B
package http import ( "net/http" "go-biz-engine/internal/config" ) // Handler хранит зависимости (config и т.д.) type Handler struct { cfg *config.Config } // NewHandler создаёт HTTP-хендлер с конфигом. func NewHandler(cfg *config.Config) *Handler { return &Handler{cfg: cfg} } // Router регистрирует маршруты и возвращает http.Handler. func (h *Handler) Router() http.Handler { mux := http.NewServeMux() mux.HandleFunc("/health", h.handleHealth) mux.HandleFunc("/execute-tool", h.handleExecuteTool) return mux }

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/Vovchansky6/mcp_OVS'

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