Skip to main content
Glama
instance_provider.go680 B
package credentials import ( "os" "strings" "github.com/alibabacloud-go/tea/tea" ) type instanceCredentialsProvider struct{} var providerInstance = new(instanceCredentialsProvider) func newInstanceCredentialsProvider() Provider { return &instanceCredentialsProvider{} } func (p *instanceCredentialsProvider) resolve() (*Config, error) { roleName, ok := os.LookupEnv(ENVEcsMetadata) if !ok { return nil, nil } enableIMDSv2, _ := os.LookupEnv(ENVEcsMetadataIMDSv2Enable) config := &Config{ Type: tea.String("ecs_ram_role"), RoleName: tea.String(roleName), EnableIMDSv2: tea.Bool(strings.ToLower(enableIMDSv2) == "true"), } return config, nil }

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/mozillazg/kube-audit-mcp'

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