@chirpie/mcp 1.0.16 → 1.0.18
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/dist/index.js +31 -4
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -44,7 +44,7 @@ function registerChirpieTools(server2, resolveClient) {
|
|
|
44
44
|
};
|
|
45
45
|
server2.tool(
|
|
46
46
|
"chirpie_post",
|
|
47
|
-
"Create a post on X/Twitter, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat with optional media. Posts immediately or at a scheduled time. Note: Instagram, Pinterest, TikTok, YouTube, and Snapchat REQUIRE media.",
|
|
47
|
+
"Create a post on X/Twitter, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat with optional media. Posts immediately or at a scheduled time. Note: Instagram, Pinterest, TikTok, YouTube, and Snapchat REQUIRE media. X posts whose text contains a link are billed at $0.25 each on paid plans and are rejected on the Free plan (x_link_posts_require_paid_plan); X accounts connected with your own X API keys are exempt.",
|
|
48
48
|
{
|
|
49
49
|
account_id: z.string().describe("Account ID to post from (X, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat)"),
|
|
50
50
|
text: z.string().max(63206).describe("Post text (max 280 chars for standard X, 25,000 for X Premium, 300 for Bluesky, 3,000 for LinkedIn, 500 for Threads, 500 for Mastodon, 2,200 for Instagram, 63,206 for Facebook, 4,096 for Telegram, 40,000 for Reddit, 500 for Pinterest, 2,200 for TikTok, 5,000 for YouTube, 1,500 for Google Business Profile, 160 for Snapchat)"),
|
|
@@ -55,7 +55,7 @@ function registerChirpieTools(server2, resolveClient) {
|
|
|
55
55
|
);
|
|
56
56
|
server2.tool(
|
|
57
57
|
"chirpie_thread",
|
|
58
|
-
"Create a thread (multiple posts) on X/Twitter, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat. X, Bluesky, Threads, Mastodon, and Telegram support native reply threading. Reddit threads via comments. Others degrade gracefully to standalone posts.",
|
|
58
|
+
"Create a thread (multiple posts) on X/Twitter, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat. X, Bluesky, Threads, Mastodon, and Telegram support native reply threading. Reddit threads via comments. Others degrade gracefully to standalone posts. On X, each post in the thread whose text contains a link is billed at $0.25 on paid plans; on the Free plan such threads are rejected (x_link_posts_require_paid_plan). X accounts connected with your own X API keys are exempt.",
|
|
59
59
|
{
|
|
60
60
|
account_id: z.string().describe("Account ID to post from (X, Bluesky, LinkedIn, Threads, Mastodon, Instagram, Facebook, Telegram, Reddit, Pinterest, TikTok, YouTube, Google Business Profile, or Snapchat). Some platforms degrade to standalone posts."),
|
|
61
61
|
posts: z.array(z.object({
|
|
@@ -162,6 +162,30 @@ function registerChirpieTools(server2, resolveClient) {
|
|
|
162
162
|
},
|
|
163
163
|
async ({ bot_token, chat_id }) => run((c) => c.connectTelegramAccount({ platform: "telegram", bot_token, chat_id }))
|
|
164
164
|
);
|
|
165
|
+
server2.tool(
|
|
166
|
+
"chirpie_set_x_keys",
|
|
167
|
+
"Register the user's OWN X developer app (from developer.x.com) so their X accounts connect through it and post against their X API credits instead of Chirpie's. Link posts from accounts connected this way are not surcharged. After setting keys, the user must add the returned redirect_uri as a callback URI on their X app and then reconnect each X account (chirpie_connect_x) to move it onto their app.",
|
|
168
|
+
{
|
|
169
|
+
client_id: z.string().describe("OAuth 2.0 Client ID from developer.x.com"),
|
|
170
|
+
client_secret: z.string().describe(
|
|
171
|
+
"OAuth 2.0 Client Secret from developer.x.com. Stored encrypted and never returned."
|
|
172
|
+
),
|
|
173
|
+
label: z.string().optional().describe("Optional human-readable name for the app")
|
|
174
|
+
},
|
|
175
|
+
async ({ client_id, client_secret, label }) => run((c) => c.setXKeys({ client_id, client_secret, ...label ? { label } : {} }))
|
|
176
|
+
);
|
|
177
|
+
server2.tool(
|
|
178
|
+
"chirpie_get_x_keys_status",
|
|
179
|
+
"Check whether the user has registered their own X developer app. Returns configuration status and the callback URI to register on the X app \u2014 never the client secret.",
|
|
180
|
+
{},
|
|
181
|
+
async () => run((c) => c.getXKeysStatus())
|
|
182
|
+
);
|
|
183
|
+
server2.tool(
|
|
184
|
+
"chirpie_remove_x_keys",
|
|
185
|
+
"Remove the user's own X developer app. X accounts connected through it stop refreshing until the keys are re-added or the accounts are reconnected through Chirpie's app.",
|
|
186
|
+
{},
|
|
187
|
+
async () => run((c) => c.removeXKeys())
|
|
188
|
+
);
|
|
165
189
|
}
|
|
166
190
|
var CHIRPIE_TOOL_NAMES = [
|
|
167
191
|
"chirpie_post",
|
|
@@ -177,7 +201,10 @@ var CHIRPIE_TOOL_NAMES = [
|
|
|
177
201
|
...oauthConnectTools.map((t) => t.name),
|
|
178
202
|
"chirpie_connect_bluesky",
|
|
179
203
|
"chirpie_connect_mastodon",
|
|
180
|
-
"chirpie_connect_telegram"
|
|
204
|
+
"chirpie_connect_telegram",
|
|
205
|
+
"chirpie_set_x_keys",
|
|
206
|
+
"chirpie_get_x_keys_status",
|
|
207
|
+
"chirpie_remove_x_keys"
|
|
181
208
|
];
|
|
182
209
|
|
|
183
210
|
// src/index.ts
|
|
@@ -191,7 +218,7 @@ function requireClient() {
|
|
|
191
218
|
}
|
|
192
219
|
return client;
|
|
193
220
|
}
|
|
194
|
-
var SERVER_VERSION = true ? "1.0.
|
|
221
|
+
var SERVER_VERSION = true ? "1.0.18" : "dev";
|
|
195
222
|
var server = new McpServer({
|
|
196
223
|
name: "chirpie",
|
|
197
224
|
version: SERVER_VERSION
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chirpie/mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.18",
|
|
4
4
|
"mcpName": "io.github.Firefloco/chirpie",
|
|
5
5
|
"description": "Chirpie MCP server — social media tools for AI agents",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
],
|
|
51
51
|
"license": "MIT",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@chirpie/sdk": "^1.0.
|
|
53
|
+
"@chirpie/sdk": "^1.0.13",
|
|
54
54
|
"@modelcontextprotocol/sdk": "^1",
|
|
55
55
|
"zod": "^4.3.6"
|
|
56
56
|
},
|