Help us shape the future of Go! Take the 2026 Go Developer Survey

oauth-proxy

command
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Command oauth-proxy is a generic, metadata-driven OAuth 2.0 credential manager for remote MCP servers. OAuth-only MCP servers (e.g. Slack's public MCP at https://mcp.slack.com/mcp) reject hand-pasted bearer tokens, so this sidecar discovers each server's OAuth config from its RFC 8414 metadata, exchanges a refresh token (or a one-time authorization code via PKCE) for an access token, and writes the access token into a Kubernetes Secret that an MCPServer's spec.auth.bearerToken already points the model-router at.

One binary serves any OAuth-only MCP — only the per-server Secret differs:

oauth-proxy login-url --server-url ... --client-id ... --redirect-uri ...
oauth-proxy seed      --server-url ... --oauth-secret ns/creds --code ... --code-verifier ...
oauth-proxy run       --server-url ... --oauth-secret ns/creds --access-token-secret ns/slack-mcp-token

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL