Hi, I'm testing the MCP oauth proxy with the official Grafana MCP, but when trying to use it through a client like Cline, I get this error:
[ { "validation": "url", "code": "invalid_string", "message": "Invalid url", "path": [ "jwks_uri" ] },
{ "code": "custom", "message": "URL must be parseable", "fatal": true, "path": [ "jwks_uri" ] } ]
This is my docker-compose file:
services:
grafana-mcp:
image: mcp/grafana:latest
container_name: grafana-mcp
ports:
- 8000:8000
env_file: .env
command: ["-t", "streamable-http"]
postgres:
image: postgres:15
environment:
POSTGRES_DB: oauth_proxy
POSTGRES_USER: oauth_user
POSTGRES_PASSWORD: oauth_password
volumes:
- ./volumes/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"
mcp-oauth-proxy:
image: ghcr.io/obot-platform/mcp-oauth-proxy:latest
container_name: mcp-oauth-proxy
ports:
- 8080:8080
env_file: .env
environment:
OAUTH_AUTHORIZE_URL: https://accounts.google.com
SCOPES_SUPPORTED: openid,email,profile,https://www.googleapis.com/auth/cloud-platform
MCP_SERVER_URL: http://localhost:8000
DATABASE_DSN: "postgres://oauth_user:oauth_password@postgres:5432/oauth_proxy?sslmode=disable"
depends_on:
- postgres
restart: on-failure:10
PS: I'm testing with PostgreSQL because the current image fails with this error:
mcp-oauth-proxy | 2025/12/04 16:14:12 DATABASE_DSN not set, using SQLite database at data/oauth_proxy.db
mcp-oauth-proxy | 2025/12/04 16:14:12 Failed to create OAuth proxy: failed to initialize database: failed to open database: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub
Hi, I'm testing the MCP oauth proxy with the official Grafana MCP, but when trying to use it through a client like Cline, I get this error:
This is my docker-compose file:
PS: I'm testing with PostgreSQL because the current image fails with this error: