You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(oauth): add OAuth authentication for MCP HTTP mode
- discover oauth server metadata, expose protected resource metadata, and introspect bearer tokens for incoming requests
- pass auth'd access tokens through to Socket API calls returning 401/403 when auth fails
|`SOCKET_API_KEY`| Required unless OAuth is enabled | None | Socket API key used for outbound API calls. |
190
+
|`SOCKET_OAUTH_ISSUER`| Set together with the two introspection vars to enable OAuth | None | OAuth issuer URL used for metadata discovery and incoming bearer-token validation. |
191
+
|`SOCKET_OAUTH_INTROSPECTION_CLIENT_ID`| With OAuth | None | Client ID used for token introspection. |
192
+
|`SOCKET_OAUTH_INTROSPECTION_CLIENT_SECRET`| With OAuth | None | Client secret used for token introspection. |
193
+
|`SOCKET_OAUTH_REQUIRED_SCOPES`| No |`packages:list`| Space-delimited scopes required on incoming access tokens. |
194
+
|`SOCKET_API_URL`| No | Production Socket API URL, or localhost when `SOCKET_DEBUG=true`| Override the upstream Socket API endpoint. Useful for local development and testing. |
195
+
|`SOCKET_DEBUG`| No |`false`| Switches the default upstream Socket API endpoint to localhost when `SOCKET_API_URL` is unset. |
196
+
|`MCP_PORT`| No |`3000`| Port to bind the HTTP server to. |
197
+
198
+
To enable OAuth-backed auth for incoming MCP requests:
0 commit comments