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

Function getAccessToken

backend/api/mcp/tool_http.go:106–111  ·  view source on GitHub ↗

getAccessToken retrieves the access token from the context.

(ctx context.Context)

Source from the content-addressed store, hash-verified

104
105// getAccessToken retrieves the access token from the context.
106func getAccessToken(ctx context.Context) string {
107 if token, ok := ctx.Value(accessTokenKey{}).(string); ok {
108 return token
109 }
110 return ""
111}
112
113// Context key for storing the workspace ID.
114type workspaceIDKey struct{}

Callers 2

apiRequestMethod · 0.85

Calls

no outgoing calls

Tested by 1