@@ -22,27 +22,42 @@ func generateDefaultConfig(path string) error {
2222 "addr" : ":8080" ,
2323 "name" : "mcp-front" ,
2424 "auth" : map [string ]any {
25- "kind" : "oauth" ,
26- "issuer" : "https://mcp.yourcompany.com" ,
27- "allowedDomains" : []string {"yourcompany.com" },
28- "allowedOrigins" : []string {"https://claude.ai" },
29- "tokenTtl" : "24h" ,
30- "storage" : "memory" ,
31- "googleClientId" : map [string ]string {"$env" : "GOOGLE_CLIENT_ID" },
32- "googleClientSecret" : map [string ]string {"$env" : "GOOGLE_CLIENT_SECRET" },
33- "googleRedirectUri" : "https://mcp.yourcompany.com/oauth/callback" ,
34- "jwtSecret" : map [string ]string {"$env" : "JWT_SECRET" },
35- "encryptionKey" : map [string ]string {"$env" : "ENCRYPTION_KEY" },
25+ "kind" : "oauth" ,
26+ "issuer" : "https://mcp.yourcompany.com" ,
27+ "allowedDomains" : []string {"yourcompany.com" },
28+ "allowedOrigins" : []string {"https://claude.ai" },
29+ "tokenTtl" : "24h" ,
30+ "storage" : "memory" ,
31+ "idp" : map [string ]any {
32+ "provider" : "google" ,
33+ "clientId" : map [string ]string {"$env" : "GOOGLE_CLIENT_ID" },
34+ "clientSecret" : map [string ]string {"$env" : "GOOGLE_CLIENT_SECRET" },
35+ "redirectUri" : "https://mcp.yourcompany.com/oauth/callback" ,
36+ },
37+ "jwtSecret" : map [string ]string {"$env" : "JWT_SECRET" },
38+ "encryptionKey" : map [string ]string {"$env" : "ENCRYPTION_KEY" },
3639 },
3740 },
3841 "mcpServers" : map [string ]any {
3942 "postgres" : map [string ]any {
4043 "transportType" : "stdio" ,
4144 "command" : "docker" ,
4245 "args" : []any {
43- "run" , "--rm" , "-i" ,
44- "mcp/postgres:latest" ,
45- map [string ]string {"$env" : "POSTGRES_URL" },
46+ "run" , "--rm" , "-i" , "--network" , "host" ,
47+ "-e" , "POSTGRES_HOST" ,
48+ "-e" , "POSTGRES_PORT" ,
49+ "-e" , "POSTGRES_DATABASE" ,
50+ "-e" , "POSTGRES_USER" ,
51+ "-e" , "POSTGRES_PASSWORD" ,
52+ "us-central1-docker.pkg.dev/database-toolbox/toolbox/toolbox:latest" ,
53+ "--stdio" , "--prebuilt" , "postgres" ,
54+ },
55+ "env" : map [string ]any {
56+ "POSTGRES_HOST" : map [string ]string {"$env" : "POSTGRES_HOST" },
57+ "POSTGRES_PORT" : map [string ]string {"$env" : "POSTGRES_PORT" },
58+ "POSTGRES_DATABASE" : map [string ]string {"$env" : "POSTGRES_DATABASE" },
59+ "POSTGRES_USER" : map [string ]string {"$env" : "POSTGRES_USER" },
60+ "POSTGRES_PASSWORD" : map [string ]string {"$env" : "POSTGRES_PASSWORD" },
4661 },
4762 },
4863 },
0 commit comments