twitterapi-io-mcp 1.5.7 → 1.5.9

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [1.5.9](https://github.com/dorukardahan/twitterapi-io-mcp/compare/v1.5.8...v1.5.9) (2026-04-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * sync live OpenAPI write params ([4a9f8b4](https://github.com/dorukardahan/twitterapi-io-mcp/commit/4a9f8b4ef02c69e964634d780dae52a77a656a27))
7
+
8
+ ## [1.5.8](https://github.com/dorukardahan/twitterapi-io-mcp/compare/v1.5.7...v1.5.8) (2026-04-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * sync OpenAPI auth fields and multipart metadata ([255fcf9](https://github.com/dorukardahan/twitterapi-io-mcp/commit/255fcf9ec433724f7e3ab7da3fc0529819f2cf4d))
14
+
15
+ ## Unreleased
16
+
17
+ ### Bug Fixes
18
+
19
+ * sync `create_tweet_v2`, `send_dm_to_user`, and `upload_image` request params with the live OpenAPI
20
+ * add `npm audit --audit-level=high` back to `prepublishOnly` and pin transitive `npm` to 11.13.0 via `overrides`
21
+
1
22
  ## [1.5.7](https://github.com/dorukardahan/twitterapi-io-mcp/compare/v1.5.6...v1.5.7) (2026-04-19)
2
23
 
3
24
 
package/data/docs.json CHANGED
@@ -1577,7 +1577,17 @@
1577
1577
  "media_ids": {
1578
1578
  "type": "array",
1579
1579
  "required": false,
1580
- "description": "The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed)"
1580
+ "description": "List of media IDs (strings) to attach. Optional. Obtain each from /twitter/upload_media_v2."
1581
+ },
1582
+ "quote_tweet_id": {
1583
+ "type": "string",
1584
+ "required": false,
1585
+ "description": "ID of a tweet to quote. Optional. Alternative to attachment_url."
1586
+ },
1587
+ "schedule_for": {
1588
+ "type": "string",
1589
+ "required": false,
1590
+ "description": "Schedule the tweet to be sent at a future time. Optional. Format: ISO-8601 with milliseconds, e.g. 2026-01-20T10:00:00.000Z"
1581
1591
  },
1582
1592
  "proxy": {
1583
1593
  "type": "string",
@@ -1619,7 +1629,17 @@
1619
1629
  "media_ids": {
1620
1630
  "type": "array",
1621
1631
  "required": false,
1622
- "description": "The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed)"
1632
+ "description": "List of media IDs (strings) to attach. Optional. Obtain each from /twitter/upload_media_v2."
1633
+ },
1634
+ "quote_tweet_id": {
1635
+ "type": "string",
1636
+ "required": false,
1637
+ "description": "ID of a tweet to quote. Optional. Alternative to attachment_url."
1638
+ },
1639
+ "schedule_for": {
1640
+ "type": "string",
1641
+ "required": false,
1642
+ "description": "Schedule the tweet to be sent at a future time. Optional. Format: ISO-8601 with milliseconds, e.g. 2026-01-20T10:00:00.000Z"
1623
1643
  },
1624
1644
  "proxy": {
1625
1645
  "type": "string",
@@ -1645,7 +1665,89 @@
1645
1665
  "code_snippets": [
1646
1666
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/create_tweet_v2' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
1647
1667
  ],
1648
- "raw_text": "Create a tweet.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookies: The login cookies of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set tweet_text: The text of the tweet.Must be set reply_to_tweet_id: The id of the tweet to reply to.Optional attachment_url: The url of quote tweet.Optional.eg.https://x.com/sama/status/1947640330318156074 community_id: The id of the community to post to.Optional is_note_tweet: If this option is set to True, tweets longer than 280 characters can be posted (Twitter Premium only). media_ids: The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed) proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
1668
+ "raw_text": "Create a tweet.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookies: The login cookies of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set tweet_text: The text of the tweet.Must be set reply_to_tweet_id: The id of the tweet to reply to.Optional attachment_url: The url of quote tweet.Optional.eg.https://x.com/sama/status/1947640330318156074 community_id: The id of the community to post to.Optional is_note_tweet: If this option is set to True, tweets longer than 280 characters can be posted (Twitter Premium only). media_ids: The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed) proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504",
1669
+ "parameters": [
1670
+ {
1671
+ "name": "login_cookies",
1672
+ "in": "body",
1673
+ "type": "string",
1674
+ "format": null,
1675
+ "required": true,
1676
+ "description": "The login cookies of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
1677
+ },
1678
+ {
1679
+ "name": "tweet_text",
1680
+ "in": "body",
1681
+ "type": "string",
1682
+ "format": null,
1683
+ "required": true,
1684
+ "description": "The text of the tweet.Must be set"
1685
+ },
1686
+ {
1687
+ "name": "reply_to_tweet_id",
1688
+ "in": "body",
1689
+ "type": "string",
1690
+ "format": null,
1691
+ "required": false,
1692
+ "description": "The id of the tweet to reply to.Optional"
1693
+ },
1694
+ {
1695
+ "name": "attachment_url",
1696
+ "in": "body",
1697
+ "type": "string",
1698
+ "format": null,
1699
+ "required": false,
1700
+ "description": "The url of quote tweet.Optional.eg.https://x.com/sama/status/1947640330318156074"
1701
+ },
1702
+ {
1703
+ "name": "community_id",
1704
+ "in": "body",
1705
+ "type": "string",
1706
+ "format": null,
1707
+ "required": false,
1708
+ "description": "The id of the community to post to.Optional"
1709
+ },
1710
+ {
1711
+ "name": "is_note_tweet",
1712
+ "in": "body",
1713
+ "type": "boolean",
1714
+ "format": null,
1715
+ "required": false,
1716
+ "description": "If this option is set to True, tweets longer than 280 characters can be posted (Twitter Premium only)."
1717
+ },
1718
+ {
1719
+ "name": "media_ids",
1720
+ "in": "body",
1721
+ "type": "array",
1722
+ "format": null,
1723
+ "required": false,
1724
+ "description": "List of media IDs (strings) to attach. Optional. Obtain each from /twitter/upload_media_v2."
1725
+ },
1726
+ {
1727
+ "name": "quote_tweet_id",
1728
+ "in": "body",
1729
+ "type": "string",
1730
+ "format": null,
1731
+ "required": false,
1732
+ "description": "ID of a tweet to quote. Optional. Alternative to attachment_url."
1733
+ },
1734
+ {
1735
+ "name": "schedule_for",
1736
+ "in": "body",
1737
+ "type": "string",
1738
+ "format": null,
1739
+ "required": false,
1740
+ "description": "Schedule the tweet to be sent at a future time. Optional. Format: ISO-8601 with milliseconds, e.g. 2026-01-20T10:00:00.000Z"
1741
+ },
1742
+ {
1743
+ "name": "proxy",
1744
+ "in": "body",
1745
+ "type": "string",
1746
+ "format": null,
1747
+ "required": true,
1748
+ "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
1749
+ }
1750
+ ]
1649
1751
  },
1650
1752
  "upload_media_v2": {
1651
1753
  "name": "upload_media_v2",
@@ -1717,7 +1819,34 @@
1717
1819
  "required": false,
1718
1820
  "description": "Set to true for videos longer than 2:20 (Premium only)"
1719
1821
  }
1720
- }
1822
+ },
1823
+ "contentType": "multipart/form-data",
1824
+ "parameters": [
1825
+ {
1826
+ "name": "file",
1827
+ "type": "binary",
1828
+ "required": true,
1829
+ "description": "The media file to upload (image/video). Use multipart/form-data."
1830
+ },
1831
+ {
1832
+ "name": "login_cookies",
1833
+ "type": "string",
1834
+ "required": true,
1835
+ "description": "The login cookies from /twitter/user_login_v2"
1836
+ },
1837
+ {
1838
+ "name": "proxy",
1839
+ "type": "string",
1840
+ "required": true,
1841
+ "description": "Residential proxy URL. Example: http://username:password@ip:port"
1842
+ },
1843
+ {
1844
+ "name": "is_long_video",
1845
+ "type": "boolean",
1846
+ "required": false,
1847
+ "description": "Set to true for videos longer than 2:20 (Premium only)"
1848
+ }
1849
+ ]
1721
1850
  },
1722
1851
  "like_tweet_v2": {
1723
1852
  "name": "like_tweet_v2",
@@ -2091,10 +2220,10 @@
2091
2220
  "required": true,
2092
2221
  "description": "The text of the direct message.Must be set"
2093
2222
  },
2094
- "media_ids": {
2095
- "type": "array",
2223
+ "media_id": {
2224
+ "type": "string",
2096
2225
  "required": false,
2097
- "description": "The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed)"
2226
+ "description": "ID of a single media asset to attach. Optional. Obtain from /twitter/upload_media_v2."
2098
2227
  },
2099
2228
  "proxy": {
2100
2229
  "type": "string",
@@ -2123,10 +2252,10 @@
2123
2252
  "required": true,
2124
2253
  "description": "The text of the direct message.Must be set"
2125
2254
  },
2126
- "media_ids": {
2127
- "type": "array",
2255
+ "media_id": {
2256
+ "type": "string",
2128
2257
  "required": false,
2129
- "description": "The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed)"
2258
+ "description": "ID of a single media asset to attach. Optional. Obtain from /twitter/upload_media_v2."
2130
2259
  },
2131
2260
  "proxy": {
2132
2261
  "type": "string",
@@ -2157,7 +2286,57 @@
2157
2286
  "code_snippets": [
2158
2287
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/send_dm_to_user' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
2159
2288
  ],
2160
- "raw_text": "Send a direct message to a user.You must set the login_cookie..You can get the login_cookie from /twitter/user_login_v2.You can only send DMs to those who have enabled DMs. Sometimes it may fail, so be prepared to retry.Trial operation price: $0.003 per call. login_cookies: The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set user_id: The id of the user to send the direct message to.Must be set text: The text of the direct message.Must be set media_ids: The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed) proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504 reply_to_message_id: The id of the message to reply to.Optional"
2289
+ "raw_text": "Send a direct message to a user.You must set the login_cookie..You can get the login_cookie from /twitter/user_login_v2.You can only send DMs to those who have enabled DMs. Sometimes it may fail, so be prepared to retry.Trial operation price: $0.003 per call. login_cookies: The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set user_id: The id of the user to send the direct message to.Must be set text: The text of the direct message.Must be set media_ids: The ids of the media to post.Optional.You can get the media_ids from /twitter/upload_image_v2 (to be developed) proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504 reply_to_message_id: The id of the message to reply to.Optional",
2290
+ "parameters": [
2291
+ {
2292
+ "name": "login_cookies",
2293
+ "in": "body",
2294
+ "type": "string",
2295
+ "format": null,
2296
+ "required": true,
2297
+ "description": "The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set"
2298
+ },
2299
+ {
2300
+ "name": "user_id",
2301
+ "in": "body",
2302
+ "type": "string",
2303
+ "format": null,
2304
+ "required": true,
2305
+ "description": "The id of the user to send the direct message to.Must be set"
2306
+ },
2307
+ {
2308
+ "name": "text",
2309
+ "in": "body",
2310
+ "type": "string",
2311
+ "format": null,
2312
+ "required": true,
2313
+ "description": "The text of the direct message.Must be set"
2314
+ },
2315
+ {
2316
+ "name": "media_id",
2317
+ "in": "body",
2318
+ "type": "string",
2319
+ "format": null,
2320
+ "required": false,
2321
+ "description": "ID of a single media asset to attach. Optional. Obtain from /twitter/upload_media_v2."
2322
+ },
2323
+ {
2324
+ "name": "proxy",
2325
+ "in": "body",
2326
+ "type": "string",
2327
+ "format": null,
2328
+ "required": true,
2329
+ "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2330
+ },
2331
+ {
2332
+ "name": "reply_to_message_id",
2333
+ "in": "body",
2334
+ "type": "string",
2335
+ "format": null,
2336
+ "required": false,
2337
+ "description": "The id of the message to reply to.Optional"
2338
+ }
2339
+ ]
2161
2340
  },
2162
2341
  "create_community_v2": {
2163
2342
  "name": "create_community_v2",
@@ -2235,16 +2414,11 @@
2235
2414
  "name": "delete_community_v2",
2236
2415
  "url": "https://docs.twitterapi.io/api-reference/endpoint/delete_community_v2",
2237
2416
  "scraped_at": "2026-03-16T02:37:54.446Z",
2238
- "title": "Delete a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2239
- "description": "Delete a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2417
+ "title": "Delete a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2418
+ "description": "Delete a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2240
2419
  "method": "POST",
2241
2420
  "path": "/twitter/delete_community_v2",
2242
2421
  "body": {
2243
- "login_cookie": {
2244
- "type": "string",
2245
- "required": true,
2246
- "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2247
- },
2248
2422
  "community_id": {
2249
2423
  "type": "string",
2250
2424
  "required": true,
@@ -2259,14 +2433,14 @@
2259
2433
  "type": "string",
2260
2434
  "required": true,
2261
2435
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2262
- }
2263
- },
2264
- "body_parameters": {
2265
- "login_cookie": {
2436
+ },
2437
+ "login_cookies": {
2266
2438
  "type": "string",
2267
2439
  "required": true,
2268
2440
  "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2269
- },
2441
+ }
2442
+ },
2443
+ "body_parameters": {
2270
2444
  "community_id": {
2271
2445
  "type": "string",
2272
2446
  "required": true,
@@ -2281,6 +2455,11 @@
2281
2455
  "type": "string",
2282
2456
  "required": true,
2283
2457
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2458
+ },
2459
+ "login_cookies": {
2460
+ "type": "string",
2461
+ "required": true,
2462
+ "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2284
2463
  }
2285
2464
  },
2286
2465
  "response_schema": {
@@ -2297,7 +2476,7 @@
2297
2476
  "code_snippets": [
2298
2477
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/delete_community_v2' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
2299
2478
  ],
2300
- "raw_text": "Delete a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookie: The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set community_id: The id of the community to join.Must be set community_name: The name of the community to delete.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504",
2479
+ "raw_text": "Delete a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookies: The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set community_id: The id of the community to join.Must be set community_name: The name of the community to delete.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504",
2301
2480
  "parameters": [
2302
2481
  {
2303
2482
  "name": "login_cookies",
@@ -2329,16 +2508,11 @@
2329
2508
  "name": "join_community_v2",
2330
2509
  "url": "https://docs.twitterapi.io/api-reference/endpoint/join_community_v2",
2331
2510
  "scraped_at": "2026-03-16T02:37:54.446Z",
2332
- "title": "Join a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2333
- "description": "Join a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2511
+ "title": "Join a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2512
+ "description": "Join a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2334
2513
  "method": "POST",
2335
2514
  "path": "/twitter/join_community_v2",
2336
2515
  "body": {
2337
- "login_cookie": {
2338
- "type": "string",
2339
- "required": true,
2340
- "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2341
- },
2342
2516
  "community_id": {
2343
2517
  "type": "string",
2344
2518
  "required": true,
@@ -2348,14 +2522,14 @@
2348
2522
  "type": "string",
2349
2523
  "required": true,
2350
2524
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2351
- }
2352
- },
2353
- "body_parameters": {
2354
- "login_cookie": {
2525
+ },
2526
+ "login_cookies": {
2355
2527
  "type": "string",
2356
2528
  "required": true,
2357
2529
  "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2358
- },
2530
+ }
2531
+ },
2532
+ "body_parameters": {
2359
2533
  "community_id": {
2360
2534
  "type": "string",
2361
2535
  "required": true,
@@ -2365,6 +2539,11 @@
2365
2539
  "type": "string",
2366
2540
  "required": true,
2367
2541
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2542
+ },
2543
+ "login_cookies": {
2544
+ "type": "string",
2545
+ "required": true,
2546
+ "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2368
2547
  }
2369
2548
  },
2370
2549
  "response_schema": {
@@ -2389,22 +2568,17 @@
2389
2568
  "code_snippets": [
2390
2569
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/join_community_v2' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
2391
2570
  ],
2392
- "raw_text": "Join a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookie: The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set community_id: The id of the community to join.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2571
+ "raw_text": "Join a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookies: The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set community_id: The id of the community to join.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2393
2572
  },
2394
2573
  "leave_community_v2": {
2395
2574
  "name": "leave_community_v2",
2396
2575
  "url": "https://docs.twitterapi.io/api-reference/endpoint/leave_community_v2",
2397
2576
  "scraped_at": "2026-03-16T02:37:54.446Z",
2398
- "title": "Leave a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2399
- "description": "Leave a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2577
+ "title": "Leave a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2578
+ "description": "Leave a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. ",
2400
2579
  "method": "POST",
2401
2580
  "path": "/twitter/leave_community_v2",
2402
2581
  "body": {
2403
- "login_cookie": {
2404
- "type": "string",
2405
- "required": true,
2406
- "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2407
- },
2408
2582
  "community_id": {
2409
2583
  "type": "string",
2410
2584
  "required": true,
@@ -2414,14 +2588,14 @@
2414
2588
  "type": "string",
2415
2589
  "required": true,
2416
2590
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2417
- }
2418
- },
2419
- "body_parameters": {
2420
- "login_cookie": {
2591
+ },
2592
+ "login_cookies": {
2421
2593
  "type": "string",
2422
2594
  "required": true,
2423
2595
  "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2424
- },
2596
+ }
2597
+ },
2598
+ "body_parameters": {
2425
2599
  "community_id": {
2426
2600
  "type": "string",
2427
2601
  "required": true,
@@ -2431,6 +2605,11 @@
2431
2605
  "type": "string",
2432
2606
  "required": true,
2433
2607
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2608
+ },
2609
+ "login_cookies": {
2610
+ "type": "string",
2611
+ "required": true,
2612
+ "description": "The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set"
2434
2613
  }
2435
2614
  },
2436
2615
  "response_schema": {
@@ -2455,7 +2634,7 @@
2455
2634
  "code_snippets": [
2456
2635
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/leave_community_v2' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
2457
2636
  ],
2458
- "raw_text": "Leave a community.You must set the login_cookie.You can get the login_cookie from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookie: The login cookie of the user.You can get the login_cookie from /twitter/user_login_v2.Must be set community_id: The id of the community to leave.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2637
+ "raw_text": "Leave a community.You must set the login_cookies.You can get the login_cookies from /twitter/user_login_v2.Trial operation price: $0.003 per call. login_cookies: The login cookie of the user.You can get the login_cookies from /twitter/user_login_v2.Must be set community_id: The id of the community to leave.Must be set proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port . You can get proxy from: https://www.webshare.io/?referral_code=4e0q1n00a504"
2459
2638
  },
2460
2639
  "get_webhook_rules": {
2461
2640
  "name": "get_webhook_rules",
@@ -4093,7 +4272,7 @@
4093
4272
  "name": "auth_session",
4094
4273
  "in": "body",
4095
4274
  "type": "string",
4096
- "format": "string",
4275
+ "format": null,
4097
4276
  "required": true,
4098
4277
  "description": "The session of the login. It's returned by /twitter/login_by_2fa"
4099
4278
  },
@@ -4101,15 +4280,15 @@
4101
4280
  "name": "image_url",
4102
4281
  "in": "body",
4103
4282
  "type": "string",
4104
- "format": "string",
4105
- "required": false,
4283
+ "format": null,
4284
+ "required": true,
4106
4285
  "description": "The url of the image to upload"
4107
4286
  },
4108
4287
  {
4109
4288
  "name": "proxy",
4110
4289
  "in": "body",
4111
4290
  "type": "string",
4112
- "format": "string",
4291
+ "format": null,
4113
4292
  "required": true,
4114
4293
  "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port"
4115
4294
  }
@@ -4120,7 +4299,41 @@
4120
4299
  "code_snippets": [
4121
4300
  "curl --request POST \\\n --url 'https://api.twitterapi.io/twitter/upload_image' \\\n --header 'X-API-Key: <api-key>' \\\n --header 'Content-Type: application/json'"
4122
4301
  ],
4123
- "raw_text": "upload image to twitter.Need to login first. Trial operation price: $0.001 per call. auth_session: The session of the login. It's returned by /twitter/login_by_2fa image_url: The url of the image to upload proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port"
4302
+ "raw_text": "upload image to twitter.Need to login first. Trial operation price: $0.001 per call. auth_session: The session of the login. It's returned by /twitter/login_by_2fa image_url: The url of the image to upload proxy: The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port",
4303
+ "body": {
4304
+ "auth_session": {
4305
+ "type": "string",
4306
+ "required": true,
4307
+ "description": "The session of the login. It's returned by /twitter/login_by_2fa"
4308
+ },
4309
+ "image_url": {
4310
+ "type": "string",
4311
+ "required": true,
4312
+ "description": "The url of the image to upload"
4313
+ },
4314
+ "proxy": {
4315
+ "type": "string",
4316
+ "required": true,
4317
+ "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port"
4318
+ }
4319
+ },
4320
+ "body_parameters": {
4321
+ "auth_session": {
4322
+ "type": "string",
4323
+ "required": true,
4324
+ "description": "The session of the login. It's returned by /twitter/login_by_2fa"
4325
+ },
4326
+ "image_url": {
4327
+ "type": "string",
4328
+ "required": true,
4329
+ "description": "The url of the image to upload"
4330
+ },
4331
+ "proxy": {
4332
+ "type": "string",
4333
+ "required": true,
4334
+ "description": "The proxy to use.Please use high-quality residential proxies and avoid free proxies.Required.Example: http://username:password@ip:port"
4335
+ }
4336
+ }
4124
4337
  },
4125
4338
  "create_tweet": {
4126
4339
  "name": "create_tweet",
@@ -14329,4 +14542,4 @@
14329
14542
  }
14330
14543
  }
14331
14544
  }
14332
- }
14545
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "twitterapi-io-mcp",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "mcpName": "io.github.dorukardahan/twitterapi-io-mcp",
5
5
  "description": "TwitterAPI.io MCP server providing offline access to docs (endpoints, pages, blogs) for Claude and other AI assistants",
6
6
  "main": "index.js",
@@ -14,7 +14,7 @@
14
14
  "build": "echo 'No build step required - pure ES Module'",
15
15
  "scrape": "node scrape-all.cjs",
16
16
  "generate:docs": "node generate-context7-docs.cjs",
17
- "prepublishOnly": "npm test"
17
+ "prepublishOnly": "npm audit --audit-level=high && npm test"
18
18
  },
19
19
  "keywords": [
20
20
  "mcp",
@@ -71,5 +71,8 @@
71
71
  "@semantic-release/exec": "^7.1.0",
72
72
  "@semantic-release/git": "^10.0.1",
73
73
  "semantic-release": "^25.0.3"
74
+ },
75
+ "overrides": {
76
+ "npm": "11.13.0"
74
77
  }
75
78
  }