MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / SetAPIURL

Method SetAPIURL

internal/agent/api.go:551–555  ·  view source on GitHub ↗

SetAPIURL overrides the API/issuer base URL (default: publicURL). Set it when the programmatic API + MCP are served on a different host than the web app — that host becomes the OAuth issuer and the base for the token/ registration/revocation/jwks endpoints, while authorization_endpoint and the login

(u string)

Source from the content-addressed store, hash-verified

549// the login/consent pages stay on publicURL. A no-op for the empty string so
550// callers can pass an unset config value safely.
551func (a *API) SetAPIURL(u string) {
552 if u != "" {
553 a.apiURL = u
554 }
555}
556
557func (a *API) RegisterRoutes(r *mux.Router) {
558 // Catch-all 404/405 handlers so every error response leaves the

Callers 2

mainFunction · 0.95

Calls

no outgoing calls

Tested by 1