diff --git a/.env.example b/.env.example index b465111..7dba4d6 100644 --- a/.env.example +++ b/.env.example @@ -5,8 +5,6 @@ MCP_REGISTRY_SERVER_ADDRESS=:8080 MCP_REGISTRY_VERSION=dev # Database configuration -# Supported types: postgresql -MCP_REGISTRY_DATABASE_TYPE=postgresql MCP_REGISTRY_DATABASE_URL=postgres://username:password@localhost:5432/mcp-registry # Path or URL to import seed data (supports local files and HTTP URLs) diff --git a/internal/config/config.go b/internal/config/config.go index f43dceb..c864c09 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -4,17 +4,10 @@ import ( env "github.com/caarlos0/env/v11" ) -type DatabaseType string - -const ( - DatabaseTypePostgreSQL DatabaseType = "postgresql" -) - // Config holds the application configuration // See .env.example for more documentation type Config struct { ServerAddress string `env:"SERVER_ADDRESS" envDefault:":8080"` - DatabaseType DatabaseType `env:"DATABASE_TYPE" envDefault:"postgresql"` DatabaseURL string `env:"DATABASE_URL" envDefault:"postgres://localhost:5432/mcp-registry?sslmode=disable"` SeedFrom string `env:"SEED_FROM" envDefault:""` Version string `env:"VERSION" envDefault:"dev"` diff --git a/tests/integration/run.sh b/tests/integration/run.sh index 4025a27..5a0718b 100755 --- a/tests/integration/run.sh +++ b/tests/integration/run.sh @@ -2,8 +2,6 @@ set -e -# No persistent state with ephemeral database - cleanup() { echo "========== registry logs ==========" docker logs registry || true