Skip to content

Commit d0f4fb9

Browse files
authored
Fix typings and add npm run start to tests (#16)
1 parent a359ea8 commit d0f4fb9

File tree

6 files changed

+22
-8
lines changed

6 files changed

+22
-8
lines changed

.github/workflows/test.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ permissions:
1212
contents: read
1313

1414
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
1530
test-node:
1631
runs-on: ubuntu-latest
1732
name: Test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@makingchatbots/genesys-cloud-mcp-server",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "A MCP server for connecting LLMs to Genesys Cloud's Platform API",
55
"exports": "./dist/index.js",
66
"type": "module",

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,4 @@ server.tool(
9292

9393
const transport = new StdioServerTransport();
9494
await server.connect(transport);
95+
console.log("Started...");

src/tools/conversationSentiment.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { z } from "zod";
22
import { createTool, type ToolFactory } from "./utils/createTool.js";
33
import { isUnauthorisedError } from "./utils/genesys/isUnauthorisedError.js";
4-
import {
4+
import type {
5+
SpeechTextAnalyticsApi,
56
Models,
6-
type SpeechTextAnalyticsApi,
77
} from "purecloud-platform-client-v2";
88
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
9-
import ConversationMetrics = Models.ConversationMetrics;
109

1110
export interface ToolDependencies {
1211
readonly speechTextAnalyticsApi: Pick<
@@ -63,7 +62,7 @@ export const conversationSentiment: ToolFactory<
6362
paramsSchema,
6463
},
6564
call: async ({ conversationIds }) => {
66-
const conversations: ConversationMetrics[] = [];
65+
const conversations: Models.ConversationMetrics[] = [];
6766
try {
6867
conversations.push(
6968
...(await Promise.all(

src/tools/searchQueues.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
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";
43
import { isUnauthorisedError } from "./utils/genesys/isUnauthorisedError.js";
54
import { createTool, type ToolFactory } from "./utils/createTool.js";
65

src/tools/voiceCallQuality.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { z } from "zod";
22
import { createTool, type ToolFactory } from "./utils/createTool.js";
33
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";
55
import { type CallToolResult } from "@modelcontextprotocol/sdk/types.js";
66

77
export interface ToolDependencies {

0 commit comments

Comments
 (0)