MCPcopy Create free account
hub / github.com/bytebase/bytebase / buildResourceURL

Method buildResourceURL

backend/api/mcp/tool_change.go:506–512  ·  view source on GitHub ↗

buildResourceURL constructs a URL from externalURL and resource name.

(resourceName string)

Source from the content-addressed store, hash-verified

504
505// buildResourceURL constructs a URL from externalURL and resource name.
506func (s *Server) buildResourceURL(resourceName string) string {
507 base := strings.TrimRight(s.profile.ExternalURL, "/")
508 if base == "" {
509 return resourceName
510 }
511 return base + "/" + resourceName
512}
513
514// formatChangeOutput produces a text header + JSON body.
515func formatChangeOutput(output *ChangeOutput, warnings []string) string {

Callers 1

handleChangeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected