Skip to content

Commit db5eb19

Browse files
committed
Add docs
1 parent e12cac4 commit db5eb19

File tree

6 files changed

+579
-413
lines changed

6 files changed

+579
-413
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A Model Context Protocol (MCP) server for Genesys Cloud's Platform API.
88
## Features
99

1010
| Tool | Description |
11-
| ----------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
11+
|-------------------------------------------------------------------------------|--------------------------------------------------------------------------|
1212
| [Search Queues](/docs/tools.md#search-queues) | Searches for queues by their name (supports wildcards) |
1313
| [Query Queue Volumes](/docs/tools.md#query-queue-volumes) | Retrieves conversation volumes and member count by Queue IDs |
1414
| [Sample Conversations By Queue](/docs/tools.md#sample-conversations-by-queue) | Retrieves a representative sample of Conversation IDs for a Queue ID |
@@ -17,6 +17,8 @@ A Model Context Protocol (MCP) server for Genesys Cloud's Platform API.
1717
| [Conversation Topics](/docs/tools.md#conversation-topics) | Retrieves the topics for a conversation by ID |
1818
| [Search Voice Conversation](/docs/tools.md#search-voice-conversations) | Searches voice conversations by optional criteria |
1919
| [Conversation Transcript](/docs/tools.md#conversation-transcript) | Retrieves conversation transcript |
20+
| [OAuth Clients](/docs/tools.md#oauth-clients) | Retrieves a list of all the OAuth clients |
21+
| [OAuth Client Usage](/docs/tools.md#oauth-client-usage) | Retrieves usage of an OAuth client |
2022

2123
## Usage with Claude Desktop
2224

docs/tools.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,3 +215,53 @@ Platform API endpoints used:
215215

216216
- [GET /api/v2/conversations/{conversationId}/recordings](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-conversations--conversationId--recordings)
217217
- [GET /api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturl](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-speechandtextanalytics-conversations--conversationId--communications--communicationId--transcripturl)
218+
219+
## OAuth Clients
220+
221+
**Tool name:** `oauth_clients`
222+
223+
Retrieves a list of all OAuth clients, including their associated roles and divisions. This tool is useful for auditing and managing OAuth clients in the Genesys Cloud organization.
224+
225+
[Source file](/src/tools/oauthClients/oauthClients.ts).
226+
227+
### Security
228+
229+
Required Permissions:
230+
231+
- `oauth:client:view`
232+
- `authorization:role:view`
233+
- Optional: Used to populate names of roles used by OAuth Client
234+
235+
Platform API endpoints used:
236+
237+
- [GET /api/v2/oauth/clients](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-oauth-clients)
238+
- [GET /api/v2/authorization/divisions](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-authorization-divisions)
239+
- [GET /api/v2/authorization/roles](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-authorization-roles)
240+
241+
## OAuth Client Usage
242+
243+
**Tool name:** `oauth_client_usage`
244+
245+
Retrieves the usage of an OAuth Client for a given period. It returns the total number of requests and a breakdown of requests per organization
246+
247+
[Source file](/src/tools/oauthClientUsage/oauthClientUsage.ts).
248+
249+
### Input
250+
251+
- `oauthClientId`
252+
- The UUID of the OAuth Client to retrieve the usage for (e.g., 00000000-0000-0000-0000-000000000000)
253+
- `startDate`
254+
- The start date/time in ISO-8601 format (e.g., '2024-01-01T00:00:00Z')
255+
- `endDate`
256+
- The end date/time in ISO-8601 format (e.g., '2024-01-07T23:59:59Z')
257+
258+
### Security
259+
260+
Required Permissions:
261+
262+
- `usage:client:view`
263+
264+
Platform API endpoints used:
265+
266+
- [POST /api/v2/oauth/clients/{clientId}/usage/query](https://developer.genesys.cloud/devapps/api-explorer-standalone#post-api-v2-oauth-clients--clientId--usage-query)
267+
- [GET /api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}](https://developer.genesys.cloud/devapps/api-explorer-standalone#get-api-v2-oauth-clients--clientId--usage-query-results--executionId-)

0 commit comments

Comments
 (0)