@fonoster/mcp 0.27.0 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,10 +40,10 @@ function createCallPrompt() {
40
40
  role: "assistant",
41
41
  content: {
42
42
  type: "text",
43
- text: `# Call Originator Assistant
43
+ text: `# Call Originator Agent
44
44
 
45
45
  ## Role
46
- You are a call originator assistant that helps users create calls through Fonoster's platform.
46
+ You are a call originator agent that helps users create calls through Fonoster's platform.
47
47
 
48
48
  ## Available Tools
49
49
  - 'listNumbers': Retrieves available service numbers from Fonoster
@@ -83,7 +83,7 @@ Ensure no additional prefixes or suffixes are added to the numbers.
83
83
  ## Example 1: Single Call
84
84
  User: I want to call +13105551212
85
85
 
86
- Assistant: Here are some numbers you can use for the call:
86
+ Agent: Here are some numbers you can use for the call:
87
87
  - +1234567890
88
88
  - +1234567891
89
89
  - +1234567892
@@ -92,11 +92,11 @@ Which one would you like to use?
92
92
 
93
93
  User: I want to use the number +1234567890
94
94
 
95
- Assistant: Perfect, I'll use +1234567890 for the call. Which application should handle this call?
95
+ Agent: Perfect, I'll use +1234567890 for the call. Which application should handle this call?
96
96
 
97
97
  User: I want to use the application called "My App"
98
98
 
99
- Assistant: Got it. Please confirm the following details:
99
+ Agent: Got it. Please confirm the following details:
100
100
  - Service Number: +1234567890
101
101
  - Recipient Number: +13105551212
102
102
  - Application: My App
@@ -106,12 +106,12 @@ Is this information correct?
106
106
 
107
107
  User: Yes, that's correct. Please create the call.
108
108
 
109
- Assistant: Call created successfully with REF: 586d7421-542f-49cc-b1ed-dc65378da01a
109
+ Agent: Call created successfully with REF: 586d7421-542f-49cc-b1ed-dc65378da01a
110
110
 
111
111
  ## Example 2: Batch Call
112
112
  User: I want to make some calls
113
113
 
114
- Assistant: Great! Here are the service numbers you can use:
114
+ Agent: Great! Here are the service numbers you can use:
115
115
  - +1234567890
116
116
  - +1234567891
117
117
  - +1234567892
@@ -120,7 +120,7 @@ Which one would you like to use?
120
120
 
121
121
  User: I want to use +1234567890
122
122
 
123
- Assistant: Perfect. Here are the applications available:
123
+ Agent: Perfect. Here are the applications available:
124
124
  - My App
125
125
  - My App 2
126
126
  - My App 3
@@ -129,14 +129,14 @@ Which application should handle these calls?
129
129
 
130
130
  User: I want to use the application called "My App"
131
131
 
132
- Assistant: Great choice. Now, please provide the list of numbers you want to call.
132
+ Agent: Great choice. Now, please provide the list of numbers you want to call.
133
133
 
134
134
  User: Here are the numbers:
135
135
  - +1234567890
136
136
  - +1234567891
137
137
  - +1234567892
138
138
 
139
- Assistant: Batch of 3 calls from +1234567890 initiated with ID: 1716604800000. Calls are being processed asynchronously at a rate of 10 calls per minute.`
139
+ Agent: Batch of 3 calls from +1234567890 initiated with ID: 1716604800000. Calls are being processed asynchronously at a rate of 10 calls per minute.`
140
140
  }
141
141
  }
142
142
  ]
package/dist/schemas.js CHANGED
@@ -38,7 +38,7 @@ const CreateCallSchema = zod_1.z.object({
38
38
  metadata: zod_1.z
39
39
  .record(zod_1.z.string(), zod_1.z.any())
40
40
  .optional()
41
- .describe("The metadata to send to the Voice Application")
41
+ .describe("The metadata to send to the application")
42
42
  });
43
43
  exports.CreateCallSchema = CreateCallSchema;
44
44
  const CreateCallBatchSchema = zod_1.z.object({
@@ -49,7 +49,7 @@ const CreateCallBatchSchema = zod_1.z.object({
49
49
  metadata: zod_1.z
50
50
  .record(zod_1.z.string(), zod_1.z.any())
51
51
  .optional()
52
- .describe("The metadata to send to the Voice Application"),
52
+ .describe("The metadata to send to the application"),
53
53
  calls_per_minute: zod_1.z.number().min(1).max(60).optional().default(20)
54
54
  });
55
55
  exports.CreateCallBatchSchema = CreateCallBatchSchema;
@@ -25,7 +25,7 @@ function registerTools(server) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  const client = yield (0, createClient_1.createClient)();
27
27
  server.tool("list_numbers", "Returns a list of numbers from Fonoster in a table format (using markdown)", schemas_1.ListNumbersSchema.shape, (0, createListNumbers_1.createListNumbers)(client));
28
- server.tool("list_applications", "Lists applications from Fonoster in a table format (using markdown)", schemas_1.ListApplicationsSchema.shape, (0, createListApplications_1.createListApplications)(client));
28
+ server.tool("list_applications", "Lists applications from Fonoster (streams, type STREAM, and Autopilot agents, type AUTOPILOT) in a table format (using markdown)", schemas_1.ListApplicationsSchema.shape, (0, createListApplications_1.createListApplications)(client));
29
29
  server.tool("create_call", "Creates a call from Fonoster", schemas_1.CreateCallSchema.shape, (0, createCreateCall_1.createCreateCall)(client));
30
30
  server.tool("create_call_batch", "Creates a batch of calls from Fonoster", schemas_1.CreateCallBatchSchema.shape, (0, createCreateCallBatch_1.createCreateCallBatch)(client));
31
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/mcp",
3
- "version": "0.27.0",
3
+ "version": "0.31.0",
4
4
  "description": "Model Context Protocol for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -18,13 +18,12 @@
18
18
  "prebuild": "rimraf ./dist tsconfig.tsbuildinfo",
19
19
  "build": "tsc -b tsconfig.json",
20
20
  "postbuild": "chmod +x ./dist/index.js",
21
- "clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo",
22
- "start:dev": "nodemon --exec tsx --watch src src/index.ts"
21
+ "dev": "nodemon --exec tsx --watch src src/index.ts"
23
22
  },
24
23
  "dependencies": {
25
- "@fonoster/common": "^0.27.0",
26
- "@fonoster/logger": "^0.27.0",
27
- "@fonoster/sdk": "^0.27.0",
24
+ "@fonoster/common": "^0.31.0",
25
+ "@fonoster/logger": "^0.31.0",
26
+ "@fonoster/sdk": "^0.31.0",
28
27
  "@modelcontextprotocol/sdk": "^1.4.0"
29
28
  },
30
29
  "files": [
@@ -40,5 +39,5 @@
40
39
  "bugs": {
41
40
  "url": "https://github.com/fonoster/fonoster/issues"
42
41
  },
43
- "gitHead": "1191b34677b51a36000177887ff82303ef2693e1"
42
+ "gitHead": "f0a5102dddeea0f70f659234108805bc10690f2e"
44
43
  }