Skip to main content
Glama
anthropic.nu519 B
#!/usr/bin/env nu # Retrieves Anthropic token # # Returns: # A record with token, and saves values to .env file def --env "main get anthropic" [] { mut anthropic_api_key = "" if "ANTHROPIC_API_KEY" in $env { $anthropic_api_key = $env.ANTHROPIC_API_KEY } else { let value = input $"(ansi green_bold)Enter Anthropic token:(ansi reset) " $anthropic_api_key = $value } $"export ANTHROPIC_API_KEY=($anthropic_api_key)\n" | save --append .env {token: $anthropic_api_key} }

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/vfarcic/dot-ai'

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