# \McpOauthApi
All URIs are relative to */api*
[**discover_mcp_o_auth**](McpOauthApi.md#discover_mcp_o_auth) | **POST** /mcp/oauth/discover | discover MCP server OAuth metadata
[**mcp_o_auth_callback**](McpOauthApi.md#mcp_o_auth_callback) | **GET** /mcp/oauth/callback | MCP OAuth callback
[**start_mcp_o_auth_popup**](McpOauthApi.md#start_mcp_o_auth_popup) | **GET** /mcp/oauth/start | start MCP OAuth popup flow
## discover_mcp_o_auth
> models::DiscoverMcpOAuth200Response discover_mcp_o_auth(discover_mcp_o_auth_request)
discover MCP server OAuth metadata
### Parameters
**discover_mcp_o_auth_request** | [**DiscoverMcpOAuthRequest**](DiscoverMcpOAuthRequest.md) | | [required] |
### Return type
[**models::DiscoverMcpOAuth200Response**](discoverMcpOAuth_200_response.md)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## mcp_o_auth_callback
> String mcp_o_auth_callback(code, state)
MCP OAuth callback
Handles OAuth callback, exchanges code for tokens, returns HTML that posts message to opener
### Parameters
**code** | **String** | OAuth authorization code | [required] |
**state** | **String** | CSRF state token | [required] |
### Return type
**String**
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: text/html
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## start_mcp_o_auth_popup
> start_mcp_o_auth_popup(mcp_server_url, scopes)
start MCP OAuth popup flow
Opens in a popup, discovers OAuth metadata, registers client, and redirects to OAuth provider
### Parameters
**mcp_server_url** | **String** | URL of the MCP server to connect to | [required] |
**scopes** | Option<**String**> | Comma-separated list of OAuth scopes to request | |
### Return type
(empty response body)
### Authorization
[cookieAuth](../README.md#cookieAuth), [bearerAuth](../README.md#bearerAuth)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)