kadenzo-mcp 1.0.0 → 1.3.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 +4 -0
- package/index.js +49 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,6 +20,10 @@ just *draft* content — it can **ship** it.
|
|
|
20
20
|
| `upload_media` | Upload a local image/video file, get a URL for `media_urls` |
|
|
21
21
|
| `get_account_analytics` | Recent posts + engagement metrics for an account |
|
|
22
22
|
| `get_post_analytics` | Per-channel metrics for a post you scheduled |
|
|
23
|
+
| `generate_content` | Generate post copy for a platform from a topic ("generate then schedule") |
|
|
24
|
+
| `get_best_times` | Personalized best posting times for an account (Professional+) |
|
|
25
|
+
| `list_mentions` | Social-listening mentions (who's talking about your keywords) |
|
|
26
|
+
| `post_comment` | Post a comment/reply to your post (instagram/facebook/linkedin) |
|
|
23
27
|
|
|
24
28
|
## Setup
|
|
25
29
|
|
package/index.js
CHANGED
|
@@ -145,6 +145,54 @@ server.tool(
|
|
|
145
145
|
async ({ id }) => { try { return ok(await api('GET', `/posts/${id}/analytics`)) } catch (e) { return fail(e) } },
|
|
146
146
|
)
|
|
147
147
|
|
|
148
|
+
server.tool(
|
|
149
|
+
'generate_content',
|
|
150
|
+
'Generate post copy for a platform from a topic — great for a "generate then schedule" flow. Returns a caption/post/description you can feed into schedule_post. Platform must be one of: instagram, tiktok, snapchat, facebook, youtube.',
|
|
151
|
+
{
|
|
152
|
+
topic: z.string().describe('What the post is about (2-500 characters).'),
|
|
153
|
+
platform: z.enum(['instagram', 'tiktok', 'snapchat', 'facebook', 'youtube']),
|
|
154
|
+
goal: z.enum(['story', 'educate', 'promote']).optional().describe('Angle for the copy. Defaults to "story".'),
|
|
155
|
+
},
|
|
156
|
+
async (a) => { try { return ok(await api('POST', '/generate', { body: a })) } catch (e) { return fail(e) } },
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
server.tool(
|
|
160
|
+
'get_best_times',
|
|
161
|
+
'Personalized best posting times for one connected account, computed from its own engagement history. Requires the Professional plan or higher. Hours are UTC; shift to the poster’s timezone. Use it to pick scheduled_for.',
|
|
162
|
+
{ account_id: z.string() },
|
|
163
|
+
async ({ account_id }) => { try { return ok(await api('GET', `/accounts/${account_id}/best-times`)) } catch (e) { return fail(e) } },
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
server.tool(
|
|
167
|
+
'list_mentions',
|
|
168
|
+
'Your social-listening mentions — who is talking about the keywords you track (reddit/bluesky/youtube/hackernews/…), newest first. Filter by platform, since (ISO), or unread.',
|
|
169
|
+
{
|
|
170
|
+
platform: z.string().optional(),
|
|
171
|
+
since: z.string().optional().describe('ISO datetime; only mentions published after this.'),
|
|
172
|
+
unread: z.boolean().optional(),
|
|
173
|
+
limit: z.number().optional(),
|
|
174
|
+
offset: z.number().optional(),
|
|
175
|
+
},
|
|
176
|
+
async (a) => {
|
|
177
|
+
try {
|
|
178
|
+
const query = { platform: a.platform, since: a.since, limit: a.limit, offset: a.offset }
|
|
179
|
+
if (a.unread) query.unread = 'true'
|
|
180
|
+
return ok(await api('GET', '/mentions', { query }))
|
|
181
|
+
} catch (e) { return fail(e) }
|
|
182
|
+
},
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
server.tool(
|
|
186
|
+
'post_comment',
|
|
187
|
+
'Post a comment/reply to one of your posts. account_id from list_accounts; target_id is the platform post/media/comment id to comment on. Supported: instagram, facebook, linkedin.',
|
|
188
|
+
{
|
|
189
|
+
account_id: z.string(),
|
|
190
|
+
target_id: z.string().describe('The platform post/media/comment id to comment on.'),
|
|
191
|
+
text: z.string(),
|
|
192
|
+
},
|
|
193
|
+
async (a) => { try { return ok(await api('POST', '/comments', { body: a })) } catch (e) { return fail(e) } },
|
|
194
|
+
)
|
|
195
|
+
|
|
148
196
|
const transport = new StdioServerTransport()
|
|
149
197
|
await server.connect(transport)
|
|
150
|
-
console.error('Kadenzo MCP server running (stdio).
|
|
198
|
+
console.error('Kadenzo MCP server running (stdio). 13 tools available.')
|
package/package.json
CHANGED