@@ -48,13 +48,22 @@ Basic transparent proxy:
48
48
49
49
thv proxy my-server --target-uri http://localhost:8080
50
50
51
- Proxy with OAuth authentication to remote server:
51
+ Proxy with OIDC authentication to remote server:
52
52
53
53
thv proxy my-server --target-uri https://api.example.com \
54
54
--remote-auth --remote-auth-issuer https://auth.example.com \
55
55
--remote-auth-client-id my-client-id \
56
56
--remote-auth-client-secret-file /path/to/secret
57
57
58
+ Proxy with non-OIDC OAuth authentication to remote server:
59
+
60
+ thv proxy my-server --target-uri https://api.example.com \
61
+ --remote-auth \
62
+ --remote-auth-authorize-url https://auth.example.com/oauth/authorize \
63
+ --remote-auth-token-url https://auth.example.com/oauth/token \
64
+ --remote-auth-client-id my-client-id \
65
+ --remote-auth-client-secret-file /path/to/secret
66
+
58
67
Proxy with OIDC protection for incoming requests:
59
68
60
69
thv proxy my-server --target-uri http://localhost:8080 \
@@ -77,19 +86,23 @@ thv proxy [flags] SERVER_NAME
77
86
--host string Host for the HTTP proxy to listen on (IP or hostname) (default "127.0.0.1")
78
87
--oidc-audience string Expected audience for the token
79
88
--oidc-client-id string OIDC client ID
89
+ --oidc-client-secret string OIDC client secret (optional, for introspection)
90
+ --oidc-introspection-url string URL for token introspection endpoint
80
91
--oidc-issuer string OIDC issuer URL (e.g., https://accounts.google.com)
81
92
--oidc-jwks-url string URL to fetch the JWKS from
82
- --oidc-skip-opaque-token-validation Allow skipping validation of opaque tokens
83
93
--port int Port for the HTTP proxy to listen on (host port)
84
94
--remote-auth Enable OAuth authentication to remote MCP server
95
+ --remote-auth-authorize-url string OAuth authorization endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
85
96
--remote-auth-callback-port int Port for OAuth callback server during remote authentication (default: 8666) (default 8666)
86
97
--remote-auth-client-id string OAuth client ID for remote server authentication
87
98
--remote-auth-client-secret string OAuth client secret for remote server authentication (optional for PKCE)
88
99
--remote-auth-client-secret-file string Path to file containing OAuth client secret (alternative to --remote-auth-client-secret)
89
100
--remote-auth-issuer string OAuth/OIDC issuer URL for remote server authentication (e.g., https://accounts.google.com)
90
- --remote-auth-scopes strings OAuth scopes to request for remote server authentication (default [ openid,profile,email] )
101
+ --remote-auth-scopes strings OAuth scopes to request for remote server authentication (defaults: OIDC uses ' openid,profile,email' )
91
102
--remote-auth-skip-browser Skip opening browser for remote server OAuth flow
92
103
--remote-auth-timeout duration Timeout for OAuth authentication flow (e.g., 30s, 1m, 2m30s) (default 30s)
104
+ --remote-auth-token-url string OAuth token endpoint URL (alternative to --remote-auth-issuer for non-OIDC OAuth)
105
+ --resource-url string Explicit resource URL for OAuth discovery endpoint (RFC 9728)
93
106
--target-uri string URI for the target MCP server (e.g., http://localhost:8080) (required)
94
107
```
95
108
0 commit comments