Skip to main content
Glama

Bitrise MCP Server

Official
by bitrise-io
context.go749 B
package bitrise import ( "context" "fmt" ) type ctxKey int const ( keyPAT ctxKey = iota keyEnabledGroups ) func patFromCtx(ctx context.Context) (string, error) { v := ctx.Value(keyPAT) u, ok := v.(string) if !ok { return "", fmt.Errorf("unexpected type %T", v) } return u, nil } func ContextWithPAT(ctx context.Context, s string) context.Context { return context.WithValue(ctx, keyPAT, s) } func EnabledGroupsFromCtx(ctx context.Context) ([]string, error) { v := ctx.Value(keyEnabledGroups) u, ok := v.([]string) if !ok { return nil, fmt.Errorf("unexpected type %T", v) } return u, nil } func ContextWithEnabledGroups(ctx context.Context, a []string) context.Context { return context.WithValue(ctx, keyEnabledGroups, a) }

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/bitrise-io/bitrise-mcp'

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