@chirpie/mcp 0.1.0 → 1.0.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/dist/index.js +6 -4
- package/package.json +20 -6
package/dist/index.js
CHANGED
|
@@ -33,15 +33,16 @@ var server = new McpServer({
|
|
|
33
33
|
});
|
|
34
34
|
server.tool(
|
|
35
35
|
"chirpie_post",
|
|
36
|
-
"Create a post on X/Twitter. Posts immediately or at a scheduled time.",
|
|
36
|
+
"Create a post on X/Twitter with optional media (images/video). Posts immediately or at a scheduled time.",
|
|
37
37
|
{
|
|
38
38
|
account_id: z.string().describe("X account ID to post from"),
|
|
39
39
|
text: z.string().max(280).describe("Post text (max 280 chars)"),
|
|
40
|
+
media_urls: z.array(z.string()).max(4).optional().describe("Up to 4 public image/video URLs (JPEG, PNG, WebP, GIF up to 5MB; MP4/MOV up to 512MB)"),
|
|
40
41
|
schedule_at: z.string().optional().describe("ISO 8601 datetime to schedule the post")
|
|
41
42
|
},
|
|
42
|
-
async ({ account_id, text, schedule_at }) => {
|
|
43
|
+
async ({ account_id, text, media_urls, schedule_at }) => {
|
|
43
44
|
try {
|
|
44
|
-
const result = await requireClient().createPost({ account_id, text, schedule_at });
|
|
45
|
+
const result = await requireClient().createPost({ account_id, text, media_urls, schedule_at });
|
|
45
46
|
return formatResult(result);
|
|
46
47
|
} catch (err) {
|
|
47
48
|
return formatError(err);
|
|
@@ -54,7 +55,8 @@ server.tool(
|
|
|
54
55
|
{
|
|
55
56
|
account_id: z.string().describe("X account ID to post from"),
|
|
56
57
|
posts: z.array(z.object({
|
|
57
|
-
text: z.string().max(280).describe("Post text")
|
|
58
|
+
text: z.string().max(280).describe("Post text"),
|
|
59
|
+
media_urls: z.array(z.string()).max(4).optional().describe("Up to 4 public image/video URLs")
|
|
58
60
|
})).min(2).max(25).describe("Array of posts in the thread"),
|
|
59
61
|
schedule_at: z.string().optional().describe("ISO 8601 datetime to schedule")
|
|
60
62
|
},
|
package/package.json
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chirpie/mcp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Chirpie MCP server — social media tools for AI agents",
|
|
5
|
-
"repository": {
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Firefloco/chirpie",
|
|
8
|
+
"directory": "packages/mcp"
|
|
9
|
+
},
|
|
6
10
|
"homepage": "https://chirpie.ai/docs/mcp",
|
|
7
|
-
"publishConfig": {
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
8
14
|
"type": "module",
|
|
9
15
|
"bin": {
|
|
10
16
|
"chirpie-mcp": "./dist/index.js"
|
|
11
17
|
},
|
|
12
|
-
"files": [
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
13
21
|
"scripts": {
|
|
14
22
|
"build": "tsup",
|
|
15
23
|
"dev": "tsup --watch"
|
|
16
24
|
},
|
|
17
|
-
"keywords": [
|
|
25
|
+
"keywords": [
|
|
26
|
+
"chirpie",
|
|
27
|
+
"mcp",
|
|
28
|
+
"ai",
|
|
29
|
+
"social-media",
|
|
30
|
+
"claude"
|
|
31
|
+
],
|
|
18
32
|
"license": "MIT",
|
|
19
33
|
"dependencies": {
|
|
20
|
-
"@chirpie/sdk": "^
|
|
34
|
+
"@chirpie/sdk": "^1.0.0",
|
|
21
35
|
"@modelcontextprotocol/sdk": "^1",
|
|
22
36
|
"zod": "^3.24.4"
|
|
23
37
|
},
|