posterly-mcp-server 0.30.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.
- package/README.md +3 -5
- package/dist/index.js +84 -95
- package/dist/lib/api-client.d.ts +21 -46
- package/dist/lib/api-client.js +3 -14
- package/dist/lib/version.d.ts +1 -1
- package/dist/lib/version.js +1 -1
- package/dist/tools/add-google-business-media.d.ts +2 -2
- package/dist/tools/create-connect-session.d.ts +2 -2
- package/dist/tools/create-post.d.ts +42 -42
- package/dist/tools/create-post.js +10 -18
- package/dist/tools/create-posts-batch.d.ts +18 -18
- package/dist/tools/generate-image.d.ts +4 -4
- package/dist/tools/generate-image.js +3 -3
- package/dist/tools/generate-video.d.ts +3 -3
- package/dist/tools/generate-video.js +2 -2
- package/dist/tools/get-connect-link.d.ts +2 -2
- package/dist/tools/get-platform-schema.d.ts +2 -2
- package/dist/tools/get-post-analytics.js +3 -65
- package/dist/tools/list-posts.d.ts +2 -2
- package/dist/tools/submit-product-feedback.d.ts +88 -0
- package/dist/tools/submit-product-feedback.js +39 -0
- package/dist/tools/trigger-platform-helper.d.ts +2 -2
- package/dist/tools/trigger-platform-helper.js +1 -1
- package/dist/tools/update-post.d.ts +16 -41
- package/dist/tools/update-post.js +8 -16
- package/dist/tools/validate-post.d.ts +24 -24
- package/package.json +2 -4
- package/server.json +2 -2
- package/src/index.ts +15 -107
- package/src/lib/api-client.ts +26 -53
- package/src/lib/version.ts +1 -1
- package/src/tools/create-post.ts +10 -20
- package/src/tools/generate-image.ts +4 -4
- package/src/tools/generate-video.ts +2 -2
- package/src/tools/get-post-analytics.ts +3 -66
- package/src/tools/submit-product-feedback.ts +56 -0
- package/src/tools/trigger-platform-helper.ts +1 -1
- package/src/tools/update-post.ts +8 -16
- package/dist/lib/tool-annotations.d.ts +0 -2
- package/dist/lib/tool-annotations.js +0 -37
- package/dist/tools/get-credits.d.ts +0 -8
- package/dist/tools/get-credits.js +0 -33
- package/dist/tools/get-updates.d.ts +0 -24
- package/dist/tools/get-updates.js +0 -29
- package/scripts/test-payload-builders.mjs +0 -87
- package/scripts/test-tool-annotations.mjs +0 -32
- package/src/lib/tool-annotations.ts +0 -47
- package/src/tools/get-credits.ts +0 -38
- package/src/tools/get-updates.ts +0 -41
- package/tool-annotations.json +0 -202
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
|
|
3
3
|
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
4
4
|
import { PosterlyClient } from './lib/api-client.js';
|
|
5
5
|
import { POSTERLY_MCP_VERSION } from './lib/version.js';
|
|
6
|
-
import { getToolAnnotations } from './lib/tool-annotations.js';
|
|
7
6
|
import { getAgentSignupInfoTool } from './tools/get-agent-signup-info.js';
|
|
8
7
|
import { getSignupSessionTool } from './tools/get-signup-session.js';
|
|
9
8
|
import { startSignupTool } from './tools/start-signup.js';
|
|
@@ -22,6 +21,7 @@ import { dismissSuggestionTool } from './tools/dismiss-suggestion.js';
|
|
|
22
21
|
import { createPostTool } from './tools/create-post.js';
|
|
23
22
|
import { validatePostTool } from './tools/validate-post.js';
|
|
24
23
|
import { submitAgentFeedbackTool } from './tools/submit-agent-feedback.js';
|
|
24
|
+
import { submitProductFeedbackTool } from './tools/submit-product-feedback.js';
|
|
25
25
|
import { createPostsBatchTool } from './tools/create-posts-batch.js';
|
|
26
26
|
import { findSlotTool } from './tools/find-slot.js';
|
|
27
27
|
import { listPostsTool } from './tools/list-posts.js';
|
|
@@ -53,7 +53,6 @@ import { listGoogleBusinessMediaTool } from './tools/list-google-business-media.
|
|
|
53
53
|
import { addGoogleBusinessMediaTool } from './tools/add-google-business-media.js';
|
|
54
54
|
import { deleteGoogleBusinessMediaTool } from './tools/delete-google-business-media.js';
|
|
55
55
|
import { listActivityTool } from './tools/list-activity.js';
|
|
56
|
-
import { getUpdatesTool } from './tools/get-updates.js';
|
|
57
56
|
import { listWebhooksTool } from './tools/list-webhooks.js';
|
|
58
57
|
import { createWebhookTool } from './tools/create-webhook.js';
|
|
59
58
|
import { updateWebhookTool } from './tools/update-webhook.js';
|
|
@@ -70,7 +69,6 @@ import { createConnectSessionTool } from './tools/create-connect-session.js';
|
|
|
70
69
|
import { getConnectSessionTool } from './tools/get-connect-session.js';
|
|
71
70
|
import { createApiKeyTool } from './tools/create-api-key.js';
|
|
72
71
|
import { deleteApiKeyTool } from './tools/delete-api-key.js';
|
|
73
|
-
import { getCreditsTool } from './tools/get-credits.js';
|
|
74
72
|
import { getSubscriptionTool } from './tools/get-subscription.js';
|
|
75
73
|
import { cancelSubscriptionTool } from './tools/cancel-subscription.js';
|
|
76
74
|
import { pauseSubscriptionTool } from './tools/pause-subscription.js';
|
|
@@ -86,7 +84,7 @@ const server = new McpServer({
|
|
|
86
84
|
});
|
|
87
85
|
const client = new PosterlyClient();
|
|
88
86
|
// Register tools
|
|
89
|
-
server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, getAgentSignupInfoTool.inputSchema.shape,
|
|
87
|
+
server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, getAgentSignupInfoTool.inputSchema.shape, async () => {
|
|
90
88
|
try {
|
|
91
89
|
const text = await getAgentSignupInfoTool.execute(client);
|
|
92
90
|
return { content: [{ type: 'text', text }] };
|
|
@@ -95,7 +93,7 @@ server.tool(getAgentSignupInfoTool.name, getAgentSignupInfoTool.description, get
|
|
|
95
93
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
96
94
|
}
|
|
97
95
|
});
|
|
98
|
-
server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.inputSchema.shape,
|
|
96
|
+
server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.inputSchema.shape, async (input) => {
|
|
99
97
|
try {
|
|
100
98
|
const text = await startSignupTool.execute(client, input);
|
|
101
99
|
return { content: [{ type: 'text', text }] };
|
|
@@ -104,7 +102,7 @@ server.tool(startSignupTool.name, startSignupTool.description, startSignupTool.i
|
|
|
104
102
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
105
103
|
}
|
|
106
104
|
});
|
|
107
|
-
server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSignupSessionTool.inputSchema.shape,
|
|
105
|
+
server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSignupSessionTool.inputSchema.shape, async (input) => {
|
|
108
106
|
try {
|
|
109
107
|
const text = await getSignupSessionTool.execute(client, input);
|
|
110
108
|
return { content: [{ type: 'text', text }] };
|
|
@@ -113,7 +111,7 @@ server.tool(getSignupSessionTool.name, getSignupSessionTool.description, getSign
|
|
|
113
111
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
114
112
|
}
|
|
115
113
|
});
|
|
116
|
-
server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusTool.inputSchema.shape,
|
|
114
|
+
server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusTool.inputSchema.shape, async () => {
|
|
117
115
|
try {
|
|
118
116
|
const text = await getMcpStatusTool.execute(client);
|
|
119
117
|
return { content: [{ type: 'text', text }] };
|
|
@@ -122,7 +120,7 @@ server.tool(getMcpStatusTool.name, getMcpStatusTool.description, getMcpStatusToo
|
|
|
122
120
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
123
121
|
}
|
|
124
122
|
});
|
|
125
|
-
server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shape,
|
|
123
|
+
server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shape, async () => {
|
|
126
124
|
try {
|
|
127
125
|
const text = await whoamiTool.execute(client);
|
|
128
126
|
return { content: [{ type: 'text', text }] };
|
|
@@ -131,7 +129,7 @@ server.tool(whoamiTool.name, whoamiTool.description, whoamiTool.inputSchema.shap
|
|
|
131
129
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
132
130
|
}
|
|
133
131
|
});
|
|
134
|
-
server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsTool.inputSchema.shape,
|
|
132
|
+
server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsTool.inputSchema.shape, async (input) => {
|
|
135
133
|
try {
|
|
136
134
|
const text = await listAccountsTool.execute(client, input);
|
|
137
135
|
return { content: [{ type: 'text', text }] };
|
|
@@ -140,7 +138,7 @@ server.tool(listAccountsTool.name, listAccountsTool.description, listAccountsToo
|
|
|
140
138
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
141
139
|
}
|
|
142
140
|
});
|
|
143
|
-
server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disconnectAccountTool.inputSchema.shape,
|
|
141
|
+
server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disconnectAccountTool.inputSchema.shape, async (input) => {
|
|
144
142
|
try {
|
|
145
143
|
const text = await disconnectAccountTool.execute(client, input);
|
|
146
144
|
return { content: [{ type: 'text', text }] };
|
|
@@ -149,7 +147,7 @@ server.tool(disconnectAccountTool.name, disconnectAccountTool.description, disco
|
|
|
149
147
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
150
148
|
}
|
|
151
149
|
});
|
|
152
|
-
server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectLinkTool.inputSchema.shape,
|
|
150
|
+
server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectLinkTool.inputSchema.shape, async (input) => {
|
|
153
151
|
try {
|
|
154
152
|
const text = await getConnectLinkTool.execute(client, input);
|
|
155
153
|
return { content: [{ type: 'text', text }] };
|
|
@@ -158,7 +156,7 @@ server.tool(getConnectLinkTool.name, getConnectLinkTool.description, getConnectL
|
|
|
158
156
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
159
157
|
}
|
|
160
158
|
});
|
|
161
|
-
server.tool(createConnectSessionTool.name, createConnectSessionTool.description, createConnectSessionTool.inputSchema.shape,
|
|
159
|
+
server.tool(createConnectSessionTool.name, createConnectSessionTool.description, createConnectSessionTool.inputSchema.shape, async (input) => {
|
|
162
160
|
try {
|
|
163
161
|
const text = await createConnectSessionTool.execute(client, input);
|
|
164
162
|
return { content: [{ type: 'text', text }] };
|
|
@@ -167,7 +165,7 @@ server.tool(createConnectSessionTool.name, createConnectSessionTool.description,
|
|
|
167
165
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
168
166
|
}
|
|
169
167
|
});
|
|
170
|
-
server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getConnectSessionTool.inputSchema.shape,
|
|
168
|
+
server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getConnectSessionTool.inputSchema.shape, async (input) => {
|
|
171
169
|
try {
|
|
172
170
|
const text = await getConnectSessionTool.execute(client, input);
|
|
173
171
|
return { content: [{ type: 'text', text }] };
|
|
@@ -176,7 +174,7 @@ server.tool(getConnectSessionTool.name, getConnectSessionTool.description, getCo
|
|
|
176
174
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
177
175
|
}
|
|
178
176
|
});
|
|
179
|
-
server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyTool.inputSchema.shape,
|
|
177
|
+
server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyTool.inputSchema.shape, async (input) => {
|
|
180
178
|
try {
|
|
181
179
|
const text = await createApiKeyTool.execute(client, input);
|
|
182
180
|
return { content: [{ type: 'text', text }] };
|
|
@@ -185,7 +183,7 @@ server.tool(createApiKeyTool.name, createApiKeyTool.description, createApiKeyToo
|
|
|
185
183
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
186
184
|
}
|
|
187
185
|
});
|
|
188
|
-
server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyTool.inputSchema.shape,
|
|
186
|
+
server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyTool.inputSchema.shape, async (input) => {
|
|
189
187
|
try {
|
|
190
188
|
const text = await deleteApiKeyTool.execute(client, input);
|
|
191
189
|
return { content: [{ type: 'text', text }] };
|
|
@@ -194,16 +192,7 @@ server.tool(deleteApiKeyTool.name, deleteApiKeyTool.description, deleteApiKeyToo
|
|
|
194
192
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
195
193
|
}
|
|
196
194
|
});
|
|
197
|
-
server.tool(
|
|
198
|
-
try {
|
|
199
|
-
const text = await getCreditsTool.execute(client);
|
|
200
|
-
return { content: [{ type: 'text', text }] };
|
|
201
|
-
}
|
|
202
|
-
catch (err) {
|
|
203
|
-
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscriptionTool.inputSchema.shape, getToolAnnotations(getSubscriptionTool.name), async () => {
|
|
195
|
+
server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscriptionTool.inputSchema.shape, async () => {
|
|
207
196
|
try {
|
|
208
197
|
const text = await getSubscriptionTool.execute(client);
|
|
209
198
|
return { content: [{ type: 'text', text }] };
|
|
@@ -212,7 +201,7 @@ server.tool(getSubscriptionTool.name, getSubscriptionTool.description, getSubscr
|
|
|
212
201
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
213
202
|
}
|
|
214
203
|
});
|
|
215
|
-
server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, cancelSubscriptionTool.inputSchema.shape,
|
|
204
|
+
server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, cancelSubscriptionTool.inputSchema.shape, async (input) => {
|
|
216
205
|
try {
|
|
217
206
|
const text = await cancelSubscriptionTool.execute(client, input);
|
|
218
207
|
return { content: [{ type: 'text', text }] };
|
|
@@ -221,7 +210,7 @@ server.tool(cancelSubscriptionTool.name, cancelSubscriptionTool.description, can
|
|
|
221
210
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
222
211
|
}
|
|
223
212
|
});
|
|
224
|
-
server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pauseSubscriptionTool.inputSchema.shape,
|
|
213
|
+
server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pauseSubscriptionTool.inputSchema.shape, async (input) => {
|
|
225
214
|
try {
|
|
226
215
|
const text = await pauseSubscriptionTool.execute(client, input);
|
|
227
216
|
return { content: [{ type: 'text', text }] };
|
|
@@ -230,7 +219,7 @@ server.tool(pauseSubscriptionTool.name, pauseSubscriptionTool.description, pause
|
|
|
230
219
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
231
220
|
}
|
|
232
221
|
});
|
|
233
|
-
server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, resumeSubscriptionTool.inputSchema.shape,
|
|
222
|
+
server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, resumeSubscriptionTool.inputSchema.shape, async () => {
|
|
234
223
|
try {
|
|
235
224
|
const text = await resumeSubscriptionTool.execute(client);
|
|
236
225
|
return { content: [{ type: 'text', text }] };
|
|
@@ -239,7 +228,7 @@ server.tool(resumeSubscriptionTool.name, resumeSubscriptionTool.description, res
|
|
|
239
228
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
240
229
|
}
|
|
241
230
|
});
|
|
242
|
-
server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.description, downgradeSubscriptionTool.inputSchema.shape,
|
|
231
|
+
server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.description, downgradeSubscriptionTool.inputSchema.shape, async (input) => {
|
|
243
232
|
try {
|
|
244
233
|
const text = await downgradeSubscriptionTool.execute(client, input);
|
|
245
234
|
return { content: [{ type: 'text', text }] };
|
|
@@ -248,7 +237,7 @@ server.tool(downgradeSubscriptionTool.name, downgradeSubscriptionTool.descriptio
|
|
|
248
237
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
249
238
|
}
|
|
250
239
|
});
|
|
251
|
-
server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAuthClientsTool.inputSchema.shape,
|
|
240
|
+
server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAuthClientsTool.inputSchema.shape, async () => {
|
|
252
241
|
try {
|
|
253
242
|
const text = await listOAuthClientsTool.execute(client);
|
|
254
243
|
return { content: [{ type: 'text', text }] };
|
|
@@ -257,7 +246,7 @@ server.tool(listOAuthClientsTool.name, listOAuthClientsTool.description, listOAu
|
|
|
257
246
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
258
247
|
}
|
|
259
248
|
});
|
|
260
|
-
server.tool(createOAuthClientTool.name, createOAuthClientTool.description, createOAuthClientTool.inputSchema.shape,
|
|
249
|
+
server.tool(createOAuthClientTool.name, createOAuthClientTool.description, createOAuthClientTool.inputSchema.shape, async (input) => {
|
|
261
250
|
try {
|
|
262
251
|
const text = await createOAuthClientTool.execute(client, input);
|
|
263
252
|
return { content: [{ type: 'text', text }] };
|
|
@@ -266,7 +255,7 @@ server.tool(createOAuthClientTool.name, createOAuthClientTool.description, creat
|
|
|
266
255
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
267
256
|
}
|
|
268
257
|
});
|
|
269
|
-
server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updateOAuthClientTool.inputSchema.shape,
|
|
258
|
+
server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updateOAuthClientTool.inputSchema.shape, async (input) => {
|
|
270
259
|
try {
|
|
271
260
|
const text = await updateOAuthClientTool.execute(client, input);
|
|
272
261
|
return { content: [{ type: 'text', text }] };
|
|
@@ -275,7 +264,7 @@ server.tool(updateOAuthClientTool.name, updateOAuthClientTool.description, updat
|
|
|
275
264
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
276
265
|
}
|
|
277
266
|
});
|
|
278
|
-
server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, deleteOAuthClientTool.inputSchema.shape,
|
|
267
|
+
server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, deleteOAuthClientTool.inputSchema.shape, async (input) => {
|
|
279
268
|
try {
|
|
280
269
|
const text = await deleteOAuthClientTool.execute(client, input);
|
|
281
270
|
return { content: [{ type: 'text', text }] };
|
|
@@ -284,7 +273,7 @@ server.tool(deleteOAuthClientTool.name, deleteOAuthClientTool.description, delet
|
|
|
284
273
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
285
274
|
}
|
|
286
275
|
});
|
|
287
|
-
server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatformsTool.inputSchema.shape,
|
|
276
|
+
server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatformsTool.inputSchema.shape, async (input) => {
|
|
288
277
|
try {
|
|
289
278
|
const text = await listPlatformsTool.execute(client, input);
|
|
290
279
|
return { content: [{ type: 'text', text }] };
|
|
@@ -293,7 +282,7 @@ server.tool(listPlatformsTool.name, listPlatformsTool.description, listPlatforms
|
|
|
293
282
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
294
283
|
}
|
|
295
284
|
});
|
|
296
|
-
server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPlatformSchemaTool.inputSchema.shape,
|
|
285
|
+
server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPlatformSchemaTool.inputSchema.shape, async (input) => {
|
|
297
286
|
try {
|
|
298
287
|
const text = await getPlatformSchemaTool.execute(client, input);
|
|
299
288
|
return { content: [{ type: 'text', text }] };
|
|
@@ -302,7 +291,7 @@ server.tool(getPlatformSchemaTool.name, getPlatformSchemaTool.description, getPl
|
|
|
302
291
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
303
292
|
}
|
|
304
293
|
});
|
|
305
|
-
server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.description, triggerPlatformHelperTool.inputSchema.shape,
|
|
294
|
+
server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.description, triggerPlatformHelperTool.inputSchema.shape, async (input) => {
|
|
306
295
|
try {
|
|
307
296
|
const text = await triggerPlatformHelperTool.execute(client, input);
|
|
308
297
|
return { content: [{ type: 'text', text }] };
|
|
@@ -311,7 +300,7 @@ server.tool(triggerPlatformHelperTool.name, triggerPlatformHelperTool.descriptio
|
|
|
311
300
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
312
301
|
}
|
|
313
302
|
});
|
|
314
|
-
server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inputSchema.shape,
|
|
303
|
+
server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inputSchema.shape, async (input) => {
|
|
315
304
|
try {
|
|
316
305
|
const text = await listBrandsTool.execute(client, input);
|
|
317
306
|
return { content: [{ type: 'text', text }] };
|
|
@@ -320,7 +309,7 @@ server.tool(listBrandsTool.name, listBrandsTool.description, listBrandsTool.inpu
|
|
|
320
309
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
321
310
|
}
|
|
322
311
|
});
|
|
323
|
-
server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchema.shape,
|
|
312
|
+
server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchema.shape, async (input) => {
|
|
324
313
|
try {
|
|
325
314
|
const text = await getBrandTool.execute(client, input);
|
|
326
315
|
return { content: [{ type: 'text', text }] };
|
|
@@ -329,7 +318,7 @@ server.tool(getBrandTool.name, getBrandTool.description, getBrandTool.inputSchem
|
|
|
329
318
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
330
319
|
}
|
|
331
320
|
});
|
|
332
|
-
server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listBrandAccountsTool.inputSchema.shape,
|
|
321
|
+
server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listBrandAccountsTool.inputSchema.shape, async (input) => {
|
|
333
322
|
try {
|
|
334
323
|
const text = await listBrandAccountsTool.execute(client, input);
|
|
335
324
|
return { content: [{ type: 'text', text }] };
|
|
@@ -338,7 +327,7 @@ server.tool(listBrandAccountsTool.name, listBrandAccountsTool.description, listB
|
|
|
338
327
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
339
328
|
}
|
|
340
329
|
});
|
|
341
|
-
server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandProfileTool.inputSchema.shape,
|
|
330
|
+
server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandProfileTool.inputSchema.shape, async (input) => {
|
|
342
331
|
try {
|
|
343
332
|
const text = await getBrandProfileTool.execute(client, input);
|
|
344
333
|
return { content: [{ type: 'text', text }] };
|
|
@@ -347,7 +336,7 @@ server.tool(getBrandProfileTool.name, getBrandProfileTool.description, getBrandP
|
|
|
347
336
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
348
337
|
}
|
|
349
338
|
});
|
|
350
|
-
server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearnedVoiceTool.inputSchema.shape,
|
|
339
|
+
server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearnedVoiceTool.inputSchema.shape, async (input) => {
|
|
351
340
|
try {
|
|
352
341
|
const text = await getLearnedVoiceTool.execute(client, input);
|
|
353
342
|
return { content: [{ type: 'text', text }] };
|
|
@@ -356,7 +345,7 @@ server.tool(getLearnedVoiceTool.name, getLearnedVoiceTool.description, getLearne
|
|
|
356
345
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
357
346
|
}
|
|
358
347
|
});
|
|
359
|
-
server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.description, getPerformanceProfileTool.inputSchema.shape,
|
|
348
|
+
server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.description, getPerformanceProfileTool.inputSchema.shape, async (input) => {
|
|
360
349
|
try {
|
|
361
350
|
const text = await getPerformanceProfileTool.execute(client, input);
|
|
362
351
|
return { content: [{ type: 'text', text }] };
|
|
@@ -365,7 +354,7 @@ server.tool(getPerformanceProfileTool.name, getPerformanceProfileTool.descriptio
|
|
|
365
354
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
366
355
|
}
|
|
367
356
|
});
|
|
368
|
-
server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostInsightsTool.inputSchema.shape,
|
|
357
|
+
server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostInsightsTool.inputSchema.shape, async (input) => {
|
|
369
358
|
try {
|
|
370
359
|
const text = await getPostInsightsTool.execute(client, input);
|
|
371
360
|
return { content: [{ type: 'text', text }] };
|
|
@@ -374,7 +363,7 @@ server.tool(getPostInsightsTool.name, getPostInsightsTool.description, getPostIn
|
|
|
374
363
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
375
364
|
}
|
|
376
365
|
});
|
|
377
|
-
server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, listPostSuggestionsTool.inputSchema.shape,
|
|
366
|
+
server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, listPostSuggestionsTool.inputSchema.shape, async (input) => {
|
|
378
367
|
try {
|
|
379
368
|
const text = await listPostSuggestionsTool.execute(client, input);
|
|
380
369
|
return { content: [{ type: 'text', text }] };
|
|
@@ -383,7 +372,7 @@ server.tool(listPostSuggestionsTool.name, listPostSuggestionsTool.description, l
|
|
|
383
372
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
384
373
|
}
|
|
385
374
|
});
|
|
386
|
-
server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismissSuggestionTool.inputSchema.shape,
|
|
375
|
+
server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismissSuggestionTool.inputSchema.shape, async (input) => {
|
|
387
376
|
try {
|
|
388
377
|
const text = await dismissSuggestionTool.execute(client, input);
|
|
389
378
|
return { content: [{ type: 'text', text }] };
|
|
@@ -392,7 +381,7 @@ server.tool(dismissSuggestionTool.name, dismissSuggestionTool.description, dismi
|
|
|
392
381
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
393
382
|
}
|
|
394
383
|
});
|
|
395
|
-
server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, submitAgentFeedbackTool.inputSchema.shape,
|
|
384
|
+
server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, submitAgentFeedbackTool.inputSchema.shape, async (input) => {
|
|
396
385
|
try {
|
|
397
386
|
const text = await submitAgentFeedbackTool.execute(client, input);
|
|
398
387
|
return { content: [{ type: 'text', text }] };
|
|
@@ -401,7 +390,16 @@ server.tool(submitAgentFeedbackTool.name, submitAgentFeedbackTool.description, s
|
|
|
401
390
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
402
391
|
}
|
|
403
392
|
});
|
|
404
|
-
server.tool(
|
|
393
|
+
server.tool(submitProductFeedbackTool.name, submitProductFeedbackTool.description, submitProductFeedbackTool.inputSchema.shape, async (input) => {
|
|
394
|
+
try {
|
|
395
|
+
const text = await submitProductFeedbackTool.execute(client, input);
|
|
396
|
+
return { content: [{ type: 'text', text }] };
|
|
397
|
+
}
|
|
398
|
+
catch (err) {
|
|
399
|
+
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
server.tool(validatePostTool.name, validatePostTool.description, validatePostTool.inputSchema.shape, async (input) => {
|
|
405
403
|
try {
|
|
406
404
|
const text = await validatePostTool.execute(client, input);
|
|
407
405
|
return { content: [{ type: 'text', text }] };
|
|
@@ -410,7 +408,7 @@ server.tool(validatePostTool.name, validatePostTool.description, validatePostToo
|
|
|
410
408
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
411
409
|
}
|
|
412
410
|
});
|
|
413
|
-
server.tool(createPostTool.name, createPostTool.description, createPostTool.inputSchema.shape,
|
|
411
|
+
server.tool(createPostTool.name, createPostTool.description, createPostTool.inputSchema.shape, async (input) => {
|
|
414
412
|
try {
|
|
415
413
|
const text = await createPostTool.execute(client, input);
|
|
416
414
|
return { content: [{ type: 'text', text }] };
|
|
@@ -419,7 +417,7 @@ server.tool(createPostTool.name, createPostTool.description, createPostTool.inpu
|
|
|
419
417
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
420
418
|
}
|
|
421
419
|
});
|
|
422
|
-
server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createPostsBatchTool.inputSchema.shape,
|
|
420
|
+
server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createPostsBatchTool.inputSchema.shape, async (input) => {
|
|
423
421
|
try {
|
|
424
422
|
const text = await createPostsBatchTool.execute(client, input);
|
|
425
423
|
return { content: [{ type: 'text', text }] };
|
|
@@ -428,7 +426,7 @@ server.tool(createPostsBatchTool.name, createPostsBatchTool.description, createP
|
|
|
428
426
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
429
427
|
}
|
|
430
428
|
});
|
|
431
|
-
server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchema.shape,
|
|
429
|
+
server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchema.shape, async (input) => {
|
|
432
430
|
try {
|
|
433
431
|
const text = await findSlotTool.execute(client, input);
|
|
434
432
|
return { content: [{ type: 'text', text }] };
|
|
@@ -437,7 +435,7 @@ server.tool(findSlotTool.name, findSlotTool.description, findSlotTool.inputSchem
|
|
|
437
435
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
438
436
|
}
|
|
439
437
|
});
|
|
440
|
-
server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSchema.shape,
|
|
438
|
+
server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSchema.shape, async (input) => {
|
|
441
439
|
try {
|
|
442
440
|
const text = await listPostsTool.execute(client, input);
|
|
443
441
|
return { content: [{ type: 'text', text }] };
|
|
@@ -446,7 +444,7 @@ server.tool(listPostsTool.name, listPostsTool.description, listPostsTool.inputSc
|
|
|
446
444
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
447
445
|
}
|
|
448
446
|
});
|
|
449
|
-
server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.inputSchema.shape,
|
|
447
|
+
server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.inputSchema.shape, async (input) => {
|
|
450
448
|
try {
|
|
451
449
|
const text = await uploadMediaTool.execute(client, input);
|
|
452
450
|
return { content: [{ type: 'text', text }] };
|
|
@@ -455,7 +453,7 @@ server.tool(uploadMediaTool.name, uploadMediaTool.description, uploadMediaTool.i
|
|
|
455
453
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
456
454
|
}
|
|
457
455
|
});
|
|
458
|
-
server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, uploadMediaFromUrlTool.inputSchema.shape,
|
|
456
|
+
server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, uploadMediaFromUrlTool.inputSchema.shape, async (input) => {
|
|
459
457
|
try {
|
|
460
458
|
const text = await uploadMediaFromUrlTool.execute(client, input);
|
|
461
459
|
return { content: [{ type: 'text', text }] };
|
|
@@ -464,7 +462,7 @@ server.tool(uploadMediaFromUrlTool.name, uploadMediaFromUrlTool.description, upl
|
|
|
464
462
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
465
463
|
}
|
|
466
464
|
});
|
|
467
|
-
server.tool(createSignedUploadTool.name, createSignedUploadTool.description, createSignedUploadTool.inputSchema.shape,
|
|
465
|
+
server.tool(createSignedUploadTool.name, createSignedUploadTool.description, createSignedUploadTool.inputSchema.shape, async (input) => {
|
|
468
466
|
try {
|
|
469
467
|
const text = await createSignedUploadTool.execute(client, input);
|
|
470
468
|
return { content: [{ type: 'text', text }] };
|
|
@@ -473,7 +471,7 @@ server.tool(createSignedUploadTool.name, createSignedUploadTool.description, cre
|
|
|
473
471
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
474
472
|
}
|
|
475
473
|
});
|
|
476
|
-
server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoOptionsTool.inputSchema.shape,
|
|
474
|
+
server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoOptionsTool.inputSchema.shape, async () => {
|
|
477
475
|
try {
|
|
478
476
|
const text = await getVideoOptionsTool.execute(client);
|
|
479
477
|
return { content: [{ type: 'text', text }] };
|
|
@@ -482,7 +480,7 @@ server.tool(getVideoOptionsTool.name, getVideoOptionsTool.description, getVideoO
|
|
|
482
480
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
483
481
|
}
|
|
484
482
|
});
|
|
485
|
-
server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVideoFunctionTool.inputSchema.shape,
|
|
483
|
+
server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVideoFunctionTool.inputSchema.shape, async (input) => {
|
|
486
484
|
try {
|
|
487
485
|
const text = await runVideoFunctionTool.execute(client, input);
|
|
488
486
|
return { content: [{ type: 'text', text }] };
|
|
@@ -491,7 +489,7 @@ server.tool(runVideoFunctionTool.name, runVideoFunctionTool.description, runVide
|
|
|
491
489
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
492
490
|
}
|
|
493
491
|
});
|
|
494
|
-
server.tool(generateVideoTool.name, generateVideoTool.description, generateVideoTool.inputSchema.shape,
|
|
492
|
+
server.tool(generateVideoTool.name, generateVideoTool.description, generateVideoTool.inputSchema.shape, async (input) => {
|
|
495
493
|
try {
|
|
496
494
|
const text = await generateVideoTool.execute(client, input);
|
|
497
495
|
return { content: [{ type: 'text', text }] };
|
|
@@ -500,7 +498,7 @@ server.tool(generateVideoTool.name, generateVideoTool.description, generateVideo
|
|
|
500
498
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
501
499
|
}
|
|
502
500
|
});
|
|
503
|
-
server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.inputSchema.shape,
|
|
501
|
+
server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.inputSchema.shape, async (input) => {
|
|
504
502
|
try {
|
|
505
503
|
const text = await getVideoJobTool.execute(client, input);
|
|
506
504
|
return { content: [{ type: 'text', text }] };
|
|
@@ -509,7 +507,7 @@ server.tool(getVideoJobTool.name, getVideoJobTool.description, getVideoJobTool.i
|
|
|
509
507
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
510
508
|
}
|
|
511
509
|
});
|
|
512
|
-
server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generateCaptionsTool.inputSchema.shape,
|
|
510
|
+
server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generateCaptionsTool.inputSchema.shape, async (input) => {
|
|
513
511
|
try {
|
|
514
512
|
const text = await generateCaptionsTool.execute(client, input);
|
|
515
513
|
return { content: [{ type: 'text', text }] };
|
|
@@ -518,7 +516,7 @@ server.tool(generateCaptionsTool.name, generateCaptionsTool.description, generat
|
|
|
518
516
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
519
517
|
}
|
|
520
518
|
});
|
|
521
|
-
server.tool(generateImageTool.name, generateImageTool.description, generateImageTool.inputSchema.shape,
|
|
519
|
+
server.tool(generateImageTool.name, generateImageTool.description, generateImageTool.inputSchema.shape, async (input) => {
|
|
522
520
|
try {
|
|
523
521
|
const text = await generateImageTool.execute(client, input);
|
|
524
522
|
return { content: [{ type: 'text', text }] };
|
|
@@ -527,7 +525,7 @@ server.tool(generateImageTool.name, generateImageTool.description, generateImage
|
|
|
527
525
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
528
526
|
}
|
|
529
527
|
});
|
|
530
|
-
server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.shape,
|
|
528
|
+
server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.shape, async (input) => {
|
|
531
529
|
try {
|
|
532
530
|
const text = await getPostTool.execute(client, input);
|
|
533
531
|
return { content: [{ type: 'text', text }] };
|
|
@@ -536,7 +534,7 @@ server.tool(getPostTool.name, getPostTool.description, getPostTool.inputSchema.s
|
|
|
536
534
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
537
535
|
}
|
|
538
536
|
});
|
|
539
|
-
server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMissingTool.inputSchema.shape,
|
|
537
|
+
server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMissingTool.inputSchema.shape, async (input) => {
|
|
540
538
|
try {
|
|
541
539
|
const text = await getPostMissingTool.execute(client, input);
|
|
542
540
|
return { content: [{ type: 'text', text }] };
|
|
@@ -545,7 +543,7 @@ server.tool(getPostMissingTool.name, getPostMissingTool.description, getPostMiss
|
|
|
545
543
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
546
544
|
}
|
|
547
545
|
});
|
|
548
|
-
server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inputSchema.shape,
|
|
546
|
+
server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inputSchema.shape, async (input) => {
|
|
549
547
|
try {
|
|
550
548
|
const text = await askSupportTool.execute(client, input);
|
|
551
549
|
return { content: [{ type: 'text', text }] };
|
|
@@ -554,7 +552,7 @@ server.tool(askSupportTool.name, askSupportTool.description, askSupportTool.inpu
|
|
|
554
552
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
555
553
|
}
|
|
556
554
|
});
|
|
557
|
-
server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inputSchema.shape,
|
|
555
|
+
server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inputSchema.shape, async (input) => {
|
|
558
556
|
try {
|
|
559
557
|
const text = await updatePostTool.execute(client, input);
|
|
560
558
|
return { content: [{ type: 'text', text }] };
|
|
@@ -563,7 +561,7 @@ server.tool(updatePostTool.name, updatePostTool.description, updatePostTool.inpu
|
|
|
563
561
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
564
562
|
}
|
|
565
563
|
});
|
|
566
|
-
server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updatePostStatusTool.inputSchema.shape,
|
|
564
|
+
server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updatePostStatusTool.inputSchema.shape, async (input) => {
|
|
567
565
|
try {
|
|
568
566
|
const text = await updatePostStatusTool.execute(client, input);
|
|
569
567
|
return { content: [{ type: 'text', text }] };
|
|
@@ -572,7 +570,7 @@ server.tool(updatePostStatusTool.name, updatePostStatusTool.description, updateP
|
|
|
572
570
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
573
571
|
}
|
|
574
572
|
});
|
|
575
|
-
server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, updatePostReleaseIdTool.inputSchema.shape,
|
|
573
|
+
server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, updatePostReleaseIdTool.inputSchema.shape, async (input) => {
|
|
576
574
|
try {
|
|
577
575
|
const text = await updatePostReleaseIdTool.execute(client, input);
|
|
578
576
|
return { content: [{ type: 'text', text }] };
|
|
@@ -581,7 +579,7 @@ server.tool(updatePostReleaseIdTool.name, updatePostReleaseIdTool.description, u
|
|
|
581
579
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
582
580
|
}
|
|
583
581
|
});
|
|
584
|
-
server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inputSchema.shape,
|
|
582
|
+
server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inputSchema.shape, async (input) => {
|
|
585
583
|
try {
|
|
586
584
|
const text = await deletePostTool.execute(client, input);
|
|
587
585
|
return { content: [{ type: 'text', text }] };
|
|
@@ -590,7 +588,7 @@ server.tool(deletePostTool.name, deletePostTool.description, deletePostTool.inpu
|
|
|
590
588
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
591
589
|
}
|
|
592
590
|
});
|
|
593
|
-
server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePostGroupTool.inputSchema.shape,
|
|
591
|
+
server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePostGroupTool.inputSchema.shape, async (input) => {
|
|
594
592
|
try {
|
|
595
593
|
const text = await deletePostGroupTool.execute(client, input);
|
|
596
594
|
return { content: [{ type: 'text', text }] };
|
|
@@ -599,7 +597,7 @@ server.tool(deletePostGroupTool.name, deletePostGroupTool.description, deletePos
|
|
|
599
597
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
600
598
|
}
|
|
601
599
|
});
|
|
602
|
-
server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, getAccountAnalyticsTool.inputSchema.shape,
|
|
600
|
+
server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, getAccountAnalyticsTool.inputSchema.shape, async (input) => {
|
|
603
601
|
try {
|
|
604
602
|
const text = await getAccountAnalyticsTool.execute(client, input);
|
|
605
603
|
return { content: [{ type: 'text', text }] };
|
|
@@ -608,7 +606,7 @@ server.tool(getAccountAnalyticsTool.name, getAccountAnalyticsTool.description, g
|
|
|
608
606
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
609
607
|
}
|
|
610
608
|
});
|
|
611
|
-
server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPostAnalyticsTool.inputSchema.shape,
|
|
609
|
+
server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPostAnalyticsTool.inputSchema.shape, async (input) => {
|
|
612
610
|
try {
|
|
613
611
|
const text = await getPostAnalyticsTool.execute(client, input);
|
|
614
612
|
return { content: [{ type: 'text', text }] };
|
|
@@ -617,7 +615,7 @@ server.tool(getPostAnalyticsTool.name, getPostAnalyticsTool.description, getPost
|
|
|
617
615
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
618
616
|
}
|
|
619
617
|
});
|
|
620
|
-
server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.description, listGoogleBusinessReviewsTool.inputSchema.shape,
|
|
618
|
+
server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.description, listGoogleBusinessReviewsTool.inputSchema.shape, async (input) => {
|
|
621
619
|
try {
|
|
622
620
|
const text = await listGoogleBusinessReviewsTool.execute(client, input);
|
|
623
621
|
return { content: [{ type: 'text', text }] };
|
|
@@ -626,7 +624,7 @@ server.tool(listGoogleBusinessReviewsTool.name, listGoogleBusinessReviewsTool.de
|
|
|
626
624
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
627
625
|
}
|
|
628
626
|
});
|
|
629
|
-
server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkTool.description, getGoogleBusinessReviewLinkTool.inputSchema.shape,
|
|
627
|
+
server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkTool.description, getGoogleBusinessReviewLinkTool.inputSchema.shape, async (input) => {
|
|
630
628
|
try {
|
|
631
629
|
const text = await getGoogleBusinessReviewLinkTool.execute(client, input);
|
|
632
630
|
return { content: [{ type: 'text', text }] };
|
|
@@ -635,7 +633,7 @@ server.tool(getGoogleBusinessReviewLinkTool.name, getGoogleBusinessReviewLinkToo
|
|
|
635
633
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
636
634
|
}
|
|
637
635
|
});
|
|
638
|
-
server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.description, auditGoogleBusinessProfileTool.inputSchema.shape,
|
|
636
|
+
server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.description, auditGoogleBusinessProfileTool.inputSchema.shape, async (input) => {
|
|
639
637
|
try {
|
|
640
638
|
const text = await auditGoogleBusinessProfileTool.execute(client, input);
|
|
641
639
|
return { content: [{ type: 'text', text }] };
|
|
@@ -644,7 +642,7 @@ server.tool(auditGoogleBusinessProfileTool.name, auditGoogleBusinessProfileTool.
|
|
|
644
642
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
645
643
|
}
|
|
646
644
|
});
|
|
647
|
-
server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessReviewReplyTool.description, suggestGoogleBusinessReviewReplyTool.inputSchema.shape,
|
|
645
|
+
server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessReviewReplyTool.description, suggestGoogleBusinessReviewReplyTool.inputSchema.shape, async (input) => {
|
|
648
646
|
try {
|
|
649
647
|
const text = await suggestGoogleBusinessReviewReplyTool.execute(client, input);
|
|
650
648
|
return { content: [{ type: 'text', text }] };
|
|
@@ -653,7 +651,7 @@ server.tool(suggestGoogleBusinessReviewReplyTool.name, suggestGoogleBusinessRevi
|
|
|
653
651
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
654
652
|
}
|
|
655
653
|
});
|
|
656
|
-
server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.description, replyGoogleBusinessReviewTool.inputSchema.shape,
|
|
654
|
+
server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.description, replyGoogleBusinessReviewTool.inputSchema.shape, async (input) => {
|
|
657
655
|
try {
|
|
658
656
|
const text = await replyGoogleBusinessReviewTool.execute(client, input);
|
|
659
657
|
return { content: [{ type: 'text', text }] };
|
|
@@ -662,7 +660,7 @@ server.tool(replyGoogleBusinessReviewTool.name, replyGoogleBusinessReviewTool.de
|
|
|
662
660
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
663
661
|
}
|
|
664
662
|
});
|
|
665
|
-
server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReviewReplyTool.description, deleteGoogleBusinessReviewReplyTool.inputSchema.shape,
|
|
663
|
+
server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReviewReplyTool.description, deleteGoogleBusinessReviewReplyTool.inputSchema.shape, async (input) => {
|
|
666
664
|
try {
|
|
667
665
|
const text = await deleteGoogleBusinessReviewReplyTool.execute(client, input);
|
|
668
666
|
return { content: [{ type: 'text', text }] };
|
|
@@ -671,7 +669,7 @@ server.tool(deleteGoogleBusinessReviewReplyTool.name, deleteGoogleBusinessReview
|
|
|
671
669
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
672
670
|
}
|
|
673
671
|
});
|
|
674
|
-
server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.description, listGoogleBusinessMediaTool.inputSchema.shape,
|
|
672
|
+
server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.description, listGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
|
|
675
673
|
try {
|
|
676
674
|
const text = await listGoogleBusinessMediaTool.execute(client, input);
|
|
677
675
|
return { content: [{ type: 'text', text }] };
|
|
@@ -680,7 +678,7 @@ server.tool(listGoogleBusinessMediaTool.name, listGoogleBusinessMediaTool.descri
|
|
|
680
678
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
681
679
|
}
|
|
682
680
|
});
|
|
683
|
-
server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.description, addGoogleBusinessMediaTool.inputSchema.shape,
|
|
681
|
+
server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.description, addGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
|
|
684
682
|
try {
|
|
685
683
|
const text = await addGoogleBusinessMediaTool.execute(client, input);
|
|
686
684
|
return { content: [{ type: 'text', text }] };
|
|
@@ -689,7 +687,7 @@ server.tool(addGoogleBusinessMediaTool.name, addGoogleBusinessMediaTool.descript
|
|
|
689
687
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
690
688
|
}
|
|
691
689
|
});
|
|
692
|
-
server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.description, deleteGoogleBusinessMediaTool.inputSchema.shape,
|
|
690
|
+
server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.description, deleteGoogleBusinessMediaTool.inputSchema.shape, async (input) => {
|
|
693
691
|
try {
|
|
694
692
|
const text = await deleteGoogleBusinessMediaTool.execute(client, input);
|
|
695
693
|
return { content: [{ type: 'text', text }] };
|
|
@@ -698,7 +696,7 @@ server.tool(deleteGoogleBusinessMediaTool.name, deleteGoogleBusinessMediaTool.de
|
|
|
698
696
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
699
697
|
}
|
|
700
698
|
});
|
|
701
|
-
server.tool(listActivityTool.name, listActivityTool.description, listActivityTool.inputSchema.shape,
|
|
699
|
+
server.tool(listActivityTool.name, listActivityTool.description, listActivityTool.inputSchema.shape, async (input) => {
|
|
702
700
|
try {
|
|
703
701
|
const text = await listActivityTool.execute(client, input);
|
|
704
702
|
return { content: [{ type: 'text', text }] };
|
|
@@ -707,16 +705,7 @@ server.tool(listActivityTool.name, listActivityTool.description, listActivityToo
|
|
|
707
705
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
708
706
|
}
|
|
709
707
|
});
|
|
710
|
-
server.tool(
|
|
711
|
-
try {
|
|
712
|
-
const text = await getUpdatesTool.execute(client, input);
|
|
713
|
-
return { content: [{ type: 'text', text }] };
|
|
714
|
-
}
|
|
715
|
-
catch (err) {
|
|
716
|
-
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksTool.inputSchema.shape, getToolAnnotations(listWebhooksTool.name), async (input) => {
|
|
708
|
+
server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksTool.inputSchema.shape, async (input) => {
|
|
720
709
|
try {
|
|
721
710
|
const text = await listWebhooksTool.execute(client, input);
|
|
722
711
|
return { content: [{ type: 'text', text }] };
|
|
@@ -725,7 +714,7 @@ server.tool(listWebhooksTool.name, listWebhooksTool.description, listWebhooksToo
|
|
|
725
714
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
726
715
|
}
|
|
727
716
|
});
|
|
728
|
-
server.tool(createWebhookTool.name, createWebhookTool.description, createWebhookTool.inputSchema.shape,
|
|
717
|
+
server.tool(createWebhookTool.name, createWebhookTool.description, createWebhookTool.inputSchema.shape, async (input) => {
|
|
729
718
|
try {
|
|
730
719
|
const text = await createWebhookTool.execute(client, input);
|
|
731
720
|
return { content: [{ type: 'text', text }] };
|
|
@@ -734,7 +723,7 @@ server.tool(createWebhookTool.name, createWebhookTool.description, createWebhook
|
|
|
734
723
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
735
724
|
}
|
|
736
725
|
});
|
|
737
|
-
server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhookTool.inputSchema.shape,
|
|
726
|
+
server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhookTool.inputSchema.shape, async (input) => {
|
|
738
727
|
try {
|
|
739
728
|
const text = await updateWebhookTool.execute(client, input);
|
|
740
729
|
return { content: [{ type: 'text', text }] };
|
|
@@ -743,7 +732,7 @@ server.tool(updateWebhookTool.name, updateWebhookTool.description, updateWebhook
|
|
|
743
732
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
744
733
|
}
|
|
745
734
|
});
|
|
746
|
-
server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhookTool.inputSchema.shape,
|
|
735
|
+
server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhookTool.inputSchema.shape, async (input) => {
|
|
747
736
|
try {
|
|
748
737
|
const text = await deleteWebhookTool.execute(client, input);
|
|
749
738
|
return { content: [{ type: 'text', text }] };
|
|
@@ -752,7 +741,7 @@ server.tool(deleteWebhookTool.name, deleteWebhookTool.description, deleteWebhook
|
|
|
752
741
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
753
742
|
}
|
|
754
743
|
});
|
|
755
|
-
server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.inputSchema.shape,
|
|
744
|
+
server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.inputSchema.shape, async (input) => {
|
|
756
745
|
try {
|
|
757
746
|
const text = await testWebhookTool.execute(client, input);
|
|
758
747
|
return { content: [{ type: 'text', text }] };
|
|
@@ -761,7 +750,7 @@ server.tool(testWebhookTool.name, testWebhookTool.description, testWebhookTool.i
|
|
|
761
750
|
return { content: [{ type: 'text', text: `Error: ${err.message}` }], isError: true };
|
|
762
751
|
}
|
|
763
752
|
});
|
|
764
|
-
server.tool(getXPostingQuotaTool.name, getXPostingQuotaTool.description, getXPostingQuotaTool.inputSchema.shape,
|
|
753
|
+
server.tool(getXPostingQuotaTool.name, getXPostingQuotaTool.description, getXPostingQuotaTool.inputSchema.shape, async (input) => {
|
|
765
754
|
try {
|
|
766
755
|
const text = await getXPostingQuotaTool.execute(client, input);
|
|
767
756
|
return { content: [{ type: 'text', text }] };
|