MCPcopy Create free account
hub / github.com/compozy/agh / callbackURLWithCode

Function callbackURLWithCode

internal/cli/mcp_auth.go:592–602  ·  view source on GitHub ↗
(redirectURL string, code string, state string)

Source from the content-addressed store, hash-verified

590}
591
592func callbackURLWithCode(redirectURL string, code string, state string) string {
593 parsed, err := url.Parse(strings.TrimSpace(redirectURL))
594 if err != nil {
595 return strings.TrimSpace(redirectURL)
596 }
597 values := parsed.Query()
598 values.Set("code", strings.TrimSpace(code))
599 values.Set("state", strings.TrimSpace(state))
600 parsed.RawQuery = values.Encode()
601 return parsed.String()
602}
603
604type mcpAuthPendingLoginRecord struct {
605 ServerName string `json:"server_name"`

Callers 1

Calls 4

QueryMethod · 0.65
EncodeMethod · 0.65
SetMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected