File tree Expand file tree Collapse file tree 6 files changed +22
-8
lines changed Expand file tree Collapse file tree 6 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,21 @@ permissions:
12
12
contents : read
13
13
14
14
jobs :
15
+ test-starting-node :
16
+ runs-on : ubuntu-latest
17
+ name : Test Starting Server
18
+ steps :
19
+ - uses : actions/checkout@v4
20
+ - uses : actions/setup-node@v4
21
+ with :
22
+ node-version-file : " .nvmrc"
23
+ - run : npm install
24
+ - run : npm run build
25
+ - run : npm run start
26
+ env :
27
+ GENESYSCLOUD_REGION : dummy
28
+ GENESYSCLOUD_OAUTHCLIENT_ID : dummy
29
+ GENESYSCLOUD_OAUTHCLIENT_SECRET : dummy
15
30
test-node :
16
31
runs-on : ubuntu-latest
17
32
name : Test
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @makingchatbots/genesys-cloud-mcp-server" ,
3
- "version" : " 0.0.5 " ,
3
+ "version" : " 0.0.6 " ,
4
4
"description" : " A MCP server for connecting LLMs to Genesys Cloud's Platform API" ,
5
5
"exports" : " ./dist/index.js" ,
6
6
"type" : " module" ,
Original file line number Diff line number Diff line change @@ -92,3 +92,4 @@ server.tool(
92
92
93
93
const transport = new StdioServerTransport ( ) ;
94
94
await server . connect ( transport ) ;
95
+ console . log ( "Started..." ) ;
Original file line number Diff line number Diff line change 1
1
import { z } from "zod" ;
2
2
import { createTool , type ToolFactory } from "./utils/createTool.js" ;
3
3
import { isUnauthorisedError } from "./utils/genesys/isUnauthorisedError.js" ;
4
- import {
4
+ import type {
5
+ SpeechTextAnalyticsApi ,
5
6
Models ,
6
- type SpeechTextAnalyticsApi ,
7
7
} from "purecloud-platform-client-v2" ;
8
8
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
9
- import ConversationMetrics = Models . ConversationMetrics ;
10
9
11
10
export interface ToolDependencies {
12
11
readonly speechTextAnalyticsApi : Pick <
@@ -63,7 +62,7 @@ export const conversationSentiment: ToolFactory<
63
62
paramsSchema,
64
63
} ,
65
64
call : async ( { conversationIds } ) => {
66
- const conversations : ConversationMetrics [ ] = [ ] ;
65
+ const conversations : Models . ConversationMetrics [ ] = [ ] ;
67
66
try {
68
67
conversations . push (
69
68
...( await Promise . all (
Original file line number Diff line number Diff line change 1
1
import { z } from "zod" ;
2
- import type { Models } from "purecloud-platform-client-v2" ;
3
- import { type RoutingApi } from "purecloud-platform-client-v2" ;
2
+ import type { Models , RoutingApi } from "purecloud-platform-client-v2" ;
4
3
import { isUnauthorisedError } from "./utils/genesys/isUnauthorisedError.js" ;
5
4
import { createTool , type ToolFactory } from "./utils/createTool.js" ;
6
5
Original file line number Diff line number Diff line change 1
1
import { z } from "zod" ;
2
2
import { createTool , type ToolFactory } from "./utils/createTool.js" ;
3
3
import { isUnauthorisedError } from "./utils/genesys/isUnauthorisedError.js" ;
4
- import { Models , type AnalyticsApi } from "purecloud-platform-client-v2" ;
4
+ import type { Models , AnalyticsApi } from "purecloud-platform-client-v2" ;
5
5
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js" ;
6
6
7
7
export interface ToolDependencies {
You can’t perform that action at this time.
0 commit comments