windmill-api 1.683.2

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
# \McpOauthApi

All URIs are relative to */api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**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


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**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)