@abhinavyadav/bolna-mcp 1.0.5 → 1.0.6
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.
|
@@ -27,7 +27,7 @@ function registerPhoneNumberTools(server) {
|
|
|
27
27
|
};
|
|
28
28
|
if (args.area_code !== undefined) params.area_code = args.area_code;
|
|
29
29
|
if (args.pattern !== undefined) params.pattern = args.pattern;
|
|
30
|
-
const response = await _client.bolnaClient.get("/
|
|
30
|
+
const response = await _client.bolnaClient.get("/phone-numbers/search", {
|
|
31
31
|
params
|
|
32
32
|
});
|
|
33
33
|
return {
|
|
@@ -50,7 +50,7 @@ function registerPhoneNumberTools(server) {
|
|
|
50
50
|
}
|
|
51
51
|
}, async (args)=>{
|
|
52
52
|
try {
|
|
53
|
-
const response = await _client.bolnaClient.post("/
|
|
53
|
+
const response = await _client.bolnaClient.post("/phone-numbers/buy", {
|
|
54
54
|
phone_number: args.phone_number,
|
|
55
55
|
telephony_provider: args.telephony_provider
|
|
56
56
|
});
|
|
@@ -71,7 +71,7 @@ function registerPhoneNumberTools(server) {
|
|
|
71
71
|
inputSchema: {}
|
|
72
72
|
}, async ()=>{
|
|
73
73
|
try {
|
|
74
|
-
const response = await _client.bolnaClient.get("/
|
|
74
|
+
const response = await _client.bolnaClient.get("/phone-numbers/all");
|
|
75
75
|
return {
|
|
76
76
|
content: [
|
|
77
77
|
{
|
|
@@ -85,18 +85,18 @@ function registerPhoneNumberTools(server) {
|
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
server.registerTool("bolna_delete_phone_number", {
|
|
88
|
-
description: "Delete a purchased phone number to stop billing and permanently remove it from your account",
|
|
88
|
+
description: "Delete a purchased phone number by its ID to stop billing and permanently remove it from your account",
|
|
89
89
|
inputSchema: {
|
|
90
|
-
|
|
90
|
+
phone_number_id: _zod.z.string().describe("The ID of the phone number to delete (UUID, from bolna_list_phone_numbers)")
|
|
91
91
|
}
|
|
92
92
|
}, async (args)=>{
|
|
93
93
|
try {
|
|
94
|
-
const response = await _client.bolnaClient.delete(`/
|
|
94
|
+
const response = await _client.bolnaClient.delete(`/phone-numbers/${args.phone_number_id}`);
|
|
95
95
|
return {
|
|
96
96
|
content: [
|
|
97
97
|
{
|
|
98
98
|
type: "text",
|
|
99
|
-
text: JSON.stringify(response.data, null, 2) || `Phone number ${args.
|
|
99
|
+
text: JSON.stringify(response.data, null, 2) || `Phone number ${args.phone_number_id} deleted successfully.`
|
|
100
100
|
}
|
|
101
101
|
]
|
|
102
102
|
};
|
|
@@ -91,7 +91,7 @@ function registerSubAccountTools(server) {
|
|
|
91
91
|
inputSchema: {}
|
|
92
92
|
}, async ()=>{
|
|
93
93
|
try {
|
|
94
|
-
const response = await _client.bolnaClient.get("/sub-accounts/usage");
|
|
94
|
+
const response = await _client.bolnaClient.get("/sub-accounts/all/usage");
|
|
95
95
|
return {
|
|
96
96
|
content: [
|
|
97
97
|
{
|
package/dist/tools/voice.js
CHANGED
|
@@ -22,7 +22,7 @@ function registerVoiceTools(server) {
|
|
|
22
22
|
const params = {};
|
|
23
23
|
if (args.provider) params.provider = args.provider;
|
|
24
24
|
if (args.language) params.language = args.language;
|
|
25
|
-
const response = await _client.bolnaClient.get("/
|
|
25
|
+
const response = await _client.bolnaClient.get("/me/voices", {
|
|
26
26
|
params: Object.keys(params).length > 0 ? params : undefined
|
|
27
27
|
});
|
|
28
28
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abhinavyadav/bolna-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "MCP server for the Bolna Voice AI platform — manage agents, calls, batches, knowledgebases, and phone numbers through natural language",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|