u
This commit is contained in:
33
API.mcp.md
33
API.mcp.md
@@ -127,6 +127,22 @@ Retrieves an OAuth 2.1 refresh token.
|
||||
|
||||
`Promise<object|null>` — The refresh token record or null.
|
||||
|
||||
## `mcp.listAuthorizations`
|
||||
|
||||
*Source: `src/store/mcp/listAuthorizations.js`*
|
||||
|
||||
Lists active authorizations for a Google Auth user.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `googleAuthId` | `number` | The user ID. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<Array<object>>` — List of authorized clients and token counts.
|
||||
|
||||
## `mcp.listClients`
|
||||
|
||||
*Source: `src/store/mcp/listClients.js`*
|
||||
@@ -160,6 +176,23 @@ Registers a new OAuth MCP client.
|
||||
|
||||
`Promise<object>` — The created client record.
|
||||
|
||||
## `mcp.revokeAuthorizations`
|
||||
|
||||
*Source: `src/store/mcp/revokeAuthorizations.js`*
|
||||
|
||||
Revokes all active authorizations (tokens) for a user and MCP client.
|
||||
|
||||
**Parameters**
|
||||
|
||||
| Name | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| `googleAuthId` | `number` | The user ID. |
|
||||
| `clientId` | `string` | The MCP client ID. |
|
||||
|
||||
**Returns**
|
||||
|
||||
`Promise<boolean>` — True once revoked.
|
||||
|
||||
## `mcp.revokeRefreshToken`
|
||||
|
||||
*Source: `src/store/mcp/revokeRefreshToken.js`*
|
||||
|
||||
Reference in New Issue
Block a user