We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/OleksandrKucherenko/mcp-obsidian-via-rest'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
#!/usr/bin/env bash
# Enhanced version with credential helper support
docker-whoami() {
local config_file="$HOME/.docker/config.json"
local registry="${1:-https://index.docker.io/v1/}"
if [ ! -f "$config_file" ]; then
echo "❌ Not authenticated - no config file found"
return 1
fi
# Check if using credential helper
local creds_store=$(jq -r '.credsStore // empty' "$config_file")
if [ -n "$creds_store" ]; then
# Try to get username from credential helper
local username=$(echo "$registry" | docker-credential-$creds_store get 2>/dev/null | jq -r '.Username // empty' 2>/dev/null)
if [ -n "$username" ] && [ "$username" != "null" ]; then
echo "✅ Authenticated as: $username (via credential helper: $creds_store)"
return 0
else
echo "ℹ️ Using credential helper: $creds_store (credentials assumed valid)"
echo " Run manually: echo '$registry' | docker-credential-$creds_store get | jq -r .Username"
# Return success - credential helper is configured, assume it works
return 0
fi
fi
# Parse direct auth
local username=$(jq -r ".auths[\"$registry\"].auth // empty" "$config_file" | base64 -d 2>/dev/null | cut -d: -f1)
if [ -n "$username" ]; then
echo "✅ Authenticated as: $username"
else
echo "❌ Not authenticated to $registry"
return 1
fi
}
docker-whoami "$@"