@chirpie/mcp 1.0.17 → 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 +29 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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
|
},
|