@sketric/favstash-mcp 0.4.1 → 0.6.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/CHANGELOG.md +27 -0
- package/bin/contracts.js +18 -0
- package/bin/contracts.json +261 -6
- package/bin/favstash.js +5 -2
- package/bin/remote.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @sketric/favstash-mcp
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c13b1be: Stash, account, analytics and social-post tools accept an optional `teamId` to work in a Team workspace the user belongs to. `get_account_plan_and_usage` lists those Teams.
|
|
8
|
+
|
|
9
|
+
## 0.5.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 8729428: Preserve analytics refresh-capacity diagnostics in the generated MCP contract, including retry guidance on cached results.
|
|
14
|
+
- 052b5f4: Compare hosted output schemas as well as input schemas in `favstash doctor`. Report incompatible tools and skip the count-only read when either schema differs, including analytics freshness metadata.
|
|
15
|
+
- Identify the bridge to the hosted server with `X-FavStash-Bridge` and advertise open output schemas, so fields the server adds later no longer make hosts reject every reply.
|
|
16
|
+
|
|
17
|
+
## 0.5.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 25e5d25: Document shared Free posting and analytics allowances and additive analytics usage/reset fields returned by the hosted plan-usage tool. Cached analytics remain readable after the fresh-refresh allowance is exhausted.
|
|
22
|
+
- e34e5d1: Document verified saved-content search and remove uncalibrated match percentages from its ChatGPT gallery. Search ranking values remain available without implying probability.
|
|
23
|
+
|
|
24
|
+
## 0.5.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- 74dc546: Social analytics results can include `freshness` (`fetchedAt`, `stale`, `refreshDeferred`) when FavStash serves cached analytics to stay within provider rate limits.
|
|
29
|
+
|
|
3
30
|
## 0.4.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/bin/contracts.js
CHANGED
|
@@ -80,10 +80,28 @@ function importSchema(schema) {
|
|
|
80
80
|
return result;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
// Hosts validate replies against the advertised output schema. Leave objects
|
|
84
|
+
// open so fields the hosted server adds later do not reject every reply, as
|
|
85
|
+
// closed schemas did for 0.4.x when analytics gained `freshness`.
|
|
86
|
+
export function openOutputSchema(schema) {
|
|
87
|
+
if (Array.isArray(schema)) return schema.map(openOutputSchema);
|
|
88
|
+
if (!schema || typeof schema !== "object") return schema;
|
|
89
|
+
const result = Object.fromEntries(
|
|
90
|
+
Object.entries(schema).map(([key, value]) => [
|
|
91
|
+
key,
|
|
92
|
+
openOutputSchema(value),
|
|
93
|
+
]),
|
|
94
|
+
);
|
|
95
|
+
if (result.additionalProperties === false) delete result.additionalProperties;
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
|
|
83
99
|
const extend = (name, schema) =>
|
|
84
100
|
name === "import_post_media" ? importSchema(schema) : withLocalMedia(schema);
|
|
85
101
|
export const localTools = contracts.tools.map((tool) => {
|
|
86
102
|
const result = { ...tool, inputSchema: extend(tool.name, tool.inputSchema) };
|
|
103
|
+
if (tool.outputSchema)
|
|
104
|
+
result.outputSchema = openOutputSchema(tool.outputSchema);
|
|
87
105
|
if (["create_social_post", "update_social_post"].includes(tool.name)) {
|
|
88
106
|
result.description =
|
|
89
107
|
tool.description +
|
package/bin/contracts.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"contractHash": "
|
|
2
|
+
"contractHash": "4ad4dc797e3ded953fd6db704daec4acd979d7dd658b2163b5f70d5aa5619b7e",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "list_connected_social_accounts",
|
|
@@ -7,7 +7,13 @@
|
|
|
7
7
|
"description": "Use first when a request depends on Instagram, YouTube, TikTok, LinkedIn, or X. Returns owner-scoped connection IDs, account identity, safe health state, available capabilities, plan locks, and a FavStash setup URL. If connectionRequired is true, direct the user to connect an account before analytics or scheduling. Sensitive token, scope, provider-metadata, and internal media fields are omitted. Do not use it for analytics or post history. LinkedIn self-serve connections support publishing but not account analytics or post-history sync. For a question spanning multiple matching analytics-capable accounts, pass every relevant connectionId and platform in analyze_social_content_performance.queries instead of stopping after the first empty account.",
|
|
8
8
|
"inputSchema": {
|
|
9
9
|
"type": "object",
|
|
10
|
-
"properties": {
|
|
10
|
+
"properties": {
|
|
11
|
+
"teamId": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
14
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
11
17
|
"additionalProperties": false
|
|
12
18
|
},
|
|
13
19
|
"outputSchema": {
|
|
@@ -73,7 +79,7 @@
|
|
|
73
79
|
{
|
|
74
80
|
"name": "get_account_plan_and_usage",
|
|
75
81
|
"title": "Get account plan and usage",
|
|
76
|
-
"description": "Use when plan capacity matters. Returns unlimited save/search status, transcript + AI enrichment allowance and usage, channel/post usage, analytics-history allowance,
|
|
82
|
+
"description": "Use when plan capacity matters. Returns unlimited save/search status, transcript + AI enrichment allowance and usage, channel/post usage, analytics-history allowance, an account-management destination, and `teams` (teamId, name, role, readOnly) when the user belongs to a Team; pass a teamId to Team-capable tools to work in that Team. Do not call for ordinary single-item reads.",
|
|
77
83
|
"inputSchema": {
|
|
78
84
|
"type": "object",
|
|
79
85
|
"properties": {},
|
|
@@ -189,6 +195,11 @@
|
|
|
189
195
|
"inputSchema": {
|
|
190
196
|
"type": "object",
|
|
191
197
|
"properties": {
|
|
198
|
+
"teamId": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
201
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
202
|
+
},
|
|
192
203
|
"query": {
|
|
193
204
|
"type": "string",
|
|
194
205
|
"description": "Natural-language query."
|
|
@@ -319,6 +330,11 @@
|
|
|
319
330
|
"inputSchema": {
|
|
320
331
|
"type": "object",
|
|
321
332
|
"properties": {
|
|
333
|
+
"teamId": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
336
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
337
|
+
},
|
|
322
338
|
"since": {
|
|
323
339
|
"type": "string",
|
|
324
340
|
"format": "date-time",
|
|
@@ -422,6 +438,11 @@
|
|
|
422
438
|
"inputSchema": {
|
|
423
439
|
"type": "object",
|
|
424
440
|
"properties": {
|
|
441
|
+
"teamId": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
444
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
445
|
+
},
|
|
425
446
|
"id": {
|
|
426
447
|
"type": "string"
|
|
427
448
|
},
|
|
@@ -497,6 +518,11 @@
|
|
|
497
518
|
"inputSchema": {
|
|
498
519
|
"type": "object",
|
|
499
520
|
"properties": {
|
|
521
|
+
"teamId": {
|
|
522
|
+
"type": "string",
|
|
523
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
524
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
525
|
+
},
|
|
500
526
|
"since": {
|
|
501
527
|
"type": "string",
|
|
502
528
|
"format": "date-time"
|
|
@@ -558,6 +584,11 @@
|
|
|
558
584
|
"inputSchema": {
|
|
559
585
|
"type": "object",
|
|
560
586
|
"properties": {
|
|
587
|
+
"teamId": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
590
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
591
|
+
},
|
|
561
592
|
"limit": {
|
|
562
593
|
"type": "integer",
|
|
563
594
|
"minimum": 1,
|
|
@@ -620,6 +651,11 @@
|
|
|
620
651
|
"inputSchema": {
|
|
621
652
|
"type": "object",
|
|
622
653
|
"properties": {
|
|
654
|
+
"teamId": {
|
|
655
|
+
"type": "string",
|
|
656
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
657
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
658
|
+
},
|
|
623
659
|
"limit": {
|
|
624
660
|
"type": "integer",
|
|
625
661
|
"minimum": 1,
|
|
@@ -682,6 +718,11 @@
|
|
|
682
718
|
"inputSchema": {
|
|
683
719
|
"type": "object",
|
|
684
720
|
"properties": {
|
|
721
|
+
"teamId": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
724
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
725
|
+
},
|
|
685
726
|
"connectionId": {
|
|
686
727
|
"type": "string",
|
|
687
728
|
"description": "ID from list_connected_social_accounts."
|
|
@@ -833,6 +874,49 @@
|
|
|
833
874
|
"type": "string"
|
|
834
875
|
}
|
|
835
876
|
},
|
|
877
|
+
"freshness": {
|
|
878
|
+
"type": "object",
|
|
879
|
+
"description": "When the provider data was fetched. stale or refreshDeferred mean FavStash returned stored analytics to stay within provider rate limits; do not retry immediately.",
|
|
880
|
+
"properties": {
|
|
881
|
+
"fetchedAt": {
|
|
882
|
+
"type": "string"
|
|
883
|
+
},
|
|
884
|
+
"stale": {
|
|
885
|
+
"type": "boolean"
|
|
886
|
+
},
|
|
887
|
+
"refreshDeferred": {
|
|
888
|
+
"type": "boolean"
|
|
889
|
+
},
|
|
890
|
+
"refreshDeferral": {
|
|
891
|
+
"type": "object",
|
|
892
|
+
"properties": {
|
|
893
|
+
"code": {
|
|
894
|
+
"type": "string"
|
|
895
|
+
},
|
|
896
|
+
"retryAfterSeconds": {
|
|
897
|
+
"type": "number"
|
|
898
|
+
},
|
|
899
|
+
"limitScope": {
|
|
900
|
+
"type": "string"
|
|
901
|
+
},
|
|
902
|
+
"retryAt": {
|
|
903
|
+
"type": "string"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"required": [
|
|
907
|
+
"code",
|
|
908
|
+
"retryAfterSeconds"
|
|
909
|
+
],
|
|
910
|
+
"additionalProperties": false
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
"required": [
|
|
914
|
+
"fetchedAt",
|
|
915
|
+
"stale",
|
|
916
|
+
"refreshDeferred"
|
|
917
|
+
],
|
|
918
|
+
"additionalProperties": false
|
|
919
|
+
},
|
|
836
920
|
"nextActions": {
|
|
837
921
|
"type": "array",
|
|
838
922
|
"items": {
|
|
@@ -1281,6 +1365,49 @@
|
|
|
1281
1365
|
"type": "string"
|
|
1282
1366
|
}
|
|
1283
1367
|
},
|
|
1368
|
+
"freshness": {
|
|
1369
|
+
"type": "object",
|
|
1370
|
+
"description": "When the provider data was fetched. stale or refreshDeferred mean FavStash returned stored analytics to stay within provider rate limits; do not retry immediately.",
|
|
1371
|
+
"properties": {
|
|
1372
|
+
"fetchedAt": {
|
|
1373
|
+
"type": "string"
|
|
1374
|
+
},
|
|
1375
|
+
"stale": {
|
|
1376
|
+
"type": "boolean"
|
|
1377
|
+
},
|
|
1378
|
+
"refreshDeferred": {
|
|
1379
|
+
"type": "boolean"
|
|
1380
|
+
},
|
|
1381
|
+
"refreshDeferral": {
|
|
1382
|
+
"type": "object",
|
|
1383
|
+
"properties": {
|
|
1384
|
+
"code": {
|
|
1385
|
+
"type": "string"
|
|
1386
|
+
},
|
|
1387
|
+
"retryAfterSeconds": {
|
|
1388
|
+
"type": "number"
|
|
1389
|
+
},
|
|
1390
|
+
"limitScope": {
|
|
1391
|
+
"type": "string"
|
|
1392
|
+
},
|
|
1393
|
+
"retryAt": {
|
|
1394
|
+
"type": "string"
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"required": [
|
|
1398
|
+
"code",
|
|
1399
|
+
"retryAfterSeconds"
|
|
1400
|
+
],
|
|
1401
|
+
"additionalProperties": false
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
"required": [
|
|
1405
|
+
"fetchedAt",
|
|
1406
|
+
"stale",
|
|
1407
|
+
"refreshDeferred"
|
|
1408
|
+
],
|
|
1409
|
+
"additionalProperties": false
|
|
1410
|
+
},
|
|
1284
1411
|
"nextActions": {
|
|
1285
1412
|
"type": "array",
|
|
1286
1413
|
"items": {
|
|
@@ -1541,6 +1668,11 @@
|
|
|
1541
1668
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
1542
1669
|
"description": "Stable request key for this post creation. Start with a letter or number, reuse the exact same value only when retrying the same complete request, and use a new UUID-like value for a different post."
|
|
1543
1670
|
},
|
|
1671
|
+
"teamId": {
|
|
1672
|
+
"type": "string",
|
|
1673
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
1674
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
1675
|
+
},
|
|
1544
1676
|
"plannedDate": {
|
|
1545
1677
|
"type": "string",
|
|
1546
1678
|
"format": "date",
|
|
@@ -1633,6 +1765,11 @@
|
|
|
1633
1765
|
"properties": {
|
|
1634
1766
|
"id": {
|
|
1635
1767
|
"type": "string"
|
|
1768
|
+
},
|
|
1769
|
+
"teamId": {
|
|
1770
|
+
"type": "string",
|
|
1771
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
1772
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
1636
1773
|
}
|
|
1637
1774
|
},
|
|
1638
1775
|
"required": [
|
|
@@ -1682,6 +1819,11 @@
|
|
|
1682
1819
|
"inputSchema": {
|
|
1683
1820
|
"type": "object",
|
|
1684
1821
|
"properties": {
|
|
1822
|
+
"teamId": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
1825
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
1826
|
+
},
|
|
1685
1827
|
"from": {
|
|
1686
1828
|
"type": "string",
|
|
1687
1829
|
"format": "date-time"
|
|
@@ -1699,7 +1841,8 @@
|
|
|
1699
1841
|
"PAUSED",
|
|
1700
1842
|
"PUBLISHED",
|
|
1701
1843
|
"ERROR",
|
|
1702
|
-
"CANCELLED"
|
|
1844
|
+
"CANCELLED",
|
|
1845
|
+
"PENDING_APPROVAL"
|
|
1703
1846
|
]
|
|
1704
1847
|
},
|
|
1705
1848
|
"connectionId": {
|
|
@@ -1771,6 +1914,11 @@
|
|
|
1771
1914
|
"inputSchema": {
|
|
1772
1915
|
"type": "object",
|
|
1773
1916
|
"properties": {
|
|
1917
|
+
"teamId": {
|
|
1918
|
+
"type": "string",
|
|
1919
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
1920
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
1921
|
+
},
|
|
1774
1922
|
"id": {
|
|
1775
1923
|
"type": "string",
|
|
1776
1924
|
"minLength": 1
|
|
@@ -2034,6 +2182,11 @@
|
|
|
2034
2182
|
"properties": {
|
|
2035
2183
|
"id": {
|
|
2036
2184
|
"type": "string"
|
|
2185
|
+
},
|
|
2186
|
+
"teamId": {
|
|
2187
|
+
"type": "string",
|
|
2188
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2189
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2037
2190
|
}
|
|
2038
2191
|
},
|
|
2039
2192
|
"required": [
|
|
@@ -2143,6 +2296,11 @@
|
|
|
2143
2296
|
"inputSchema": {
|
|
2144
2297
|
"type": "object",
|
|
2145
2298
|
"properties": {
|
|
2299
|
+
"teamId": {
|
|
2300
|
+
"type": "string",
|
|
2301
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2302
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2303
|
+
},
|
|
2146
2304
|
"connectionId": {
|
|
2147
2305
|
"type": "string",
|
|
2148
2306
|
"description": "ID from list_connected_social_accounts."
|
|
@@ -2441,6 +2599,11 @@
|
|
|
2441
2599
|
"inputSchema": {
|
|
2442
2600
|
"type": "object",
|
|
2443
2601
|
"properties": {
|
|
2602
|
+
"teamId": {
|
|
2603
|
+
"type": "string",
|
|
2604
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2605
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2606
|
+
},
|
|
2444
2607
|
"connectionId": {
|
|
2445
2608
|
"type": "string"
|
|
2446
2609
|
},
|
|
@@ -2501,7 +2664,13 @@
|
|
|
2501
2664
|
"name": "list_connected_social_accounts",
|
|
2502
2665
|
"inputSchema": {
|
|
2503
2666
|
"type": "object",
|
|
2504
|
-
"properties": {
|
|
2667
|
+
"properties": {
|
|
2668
|
+
"teamId": {
|
|
2669
|
+
"type": "string",
|
|
2670
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2671
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2672
|
+
}
|
|
2673
|
+
},
|
|
2505
2674
|
"additionalProperties": false
|
|
2506
2675
|
}
|
|
2507
2676
|
},
|
|
@@ -2550,6 +2719,11 @@
|
|
|
2550
2719
|
"inputSchema": {
|
|
2551
2720
|
"type": "object",
|
|
2552
2721
|
"properties": {
|
|
2722
|
+
"teamId": {
|
|
2723
|
+
"type": "string",
|
|
2724
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2725
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2726
|
+
},
|
|
2553
2727
|
"query": {
|
|
2554
2728
|
"type": "string",
|
|
2555
2729
|
"description": "Natural-language query."
|
|
@@ -2604,6 +2778,11 @@
|
|
|
2604
2778
|
"inputSchema": {
|
|
2605
2779
|
"type": "object",
|
|
2606
2780
|
"properties": {
|
|
2781
|
+
"teamId": {
|
|
2782
|
+
"type": "string",
|
|
2783
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2784
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2785
|
+
},
|
|
2607
2786
|
"since": {
|
|
2608
2787
|
"type": "string",
|
|
2609
2788
|
"format": "date-time",
|
|
@@ -2631,6 +2810,11 @@
|
|
|
2631
2810
|
"inputSchema": {
|
|
2632
2811
|
"type": "object",
|
|
2633
2812
|
"properties": {
|
|
2813
|
+
"teamId": {
|
|
2814
|
+
"type": "string",
|
|
2815
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2816
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2817
|
+
},
|
|
2634
2818
|
"id": {
|
|
2635
2819
|
"type": "string"
|
|
2636
2820
|
},
|
|
@@ -2654,6 +2838,11 @@
|
|
|
2654
2838
|
"inputSchema": {
|
|
2655
2839
|
"type": "object",
|
|
2656
2840
|
"properties": {
|
|
2841
|
+
"teamId": {
|
|
2842
|
+
"type": "string",
|
|
2843
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2844
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2845
|
+
},
|
|
2657
2846
|
"since": {
|
|
2658
2847
|
"type": "string",
|
|
2659
2848
|
"format": "date-time"
|
|
@@ -2679,6 +2868,11 @@
|
|
|
2679
2868
|
"inputSchema": {
|
|
2680
2869
|
"type": "object",
|
|
2681
2870
|
"properties": {
|
|
2871
|
+
"teamId": {
|
|
2872
|
+
"type": "string",
|
|
2873
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2874
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2875
|
+
},
|
|
2682
2876
|
"limit": {
|
|
2683
2877
|
"type": "integer",
|
|
2684
2878
|
"minimum": 1,
|
|
@@ -2693,6 +2887,11 @@
|
|
|
2693
2887
|
"inputSchema": {
|
|
2694
2888
|
"type": "object",
|
|
2695
2889
|
"properties": {
|
|
2890
|
+
"teamId": {
|
|
2891
|
+
"type": "string",
|
|
2892
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2893
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2894
|
+
},
|
|
2696
2895
|
"limit": {
|
|
2697
2896
|
"type": "integer",
|
|
2698
2897
|
"minimum": 1,
|
|
@@ -2707,6 +2906,11 @@
|
|
|
2707
2906
|
"inputSchema": {
|
|
2708
2907
|
"type": "object",
|
|
2709
2908
|
"properties": {
|
|
2909
|
+
"teamId": {
|
|
2910
|
+
"type": "string",
|
|
2911
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
2912
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
2913
|
+
},
|
|
2710
2914
|
"connectionId": {
|
|
2711
2915
|
"type": "string",
|
|
2712
2916
|
"description": "ID from list_connected_social_accounts."
|
|
@@ -3624,6 +3828,11 @@
|
|
|
3624
3828
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
3625
3829
|
"description": "Stable request key for this post creation. Start with a letter or number, reuse the exact same value only when retrying the same complete request, and use a new UUID-like value for a different post."
|
|
3626
3830
|
},
|
|
3831
|
+
"teamId": {
|
|
3832
|
+
"type": "string",
|
|
3833
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
3834
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
3835
|
+
},
|
|
3627
3836
|
"plannedDate": {
|
|
3628
3837
|
"type": "string",
|
|
3629
3838
|
"format": "date",
|
|
@@ -4452,6 +4661,11 @@
|
|
|
4452
4661
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
4453
4662
|
"description": "Stable request key for this post creation. Start with a letter or number, reuse the exact same value only when retrying the same complete request, and use a new UUID-like value for a different post."
|
|
4454
4663
|
},
|
|
4664
|
+
"teamId": {
|
|
4665
|
+
"type": "string",
|
|
4666
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
4667
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
4668
|
+
},
|
|
4455
4669
|
"plannedDate": {
|
|
4456
4670
|
"type": "string",
|
|
4457
4671
|
"format": "date",
|
|
@@ -5358,6 +5572,11 @@
|
|
|
5358
5572
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
5359
5573
|
"description": "Stable request key for this post creation. Start with a letter or number, reuse the exact same value only when retrying the same complete request, and use a new UUID-like value for a different post."
|
|
5360
5574
|
},
|
|
5575
|
+
"teamId": {
|
|
5576
|
+
"type": "string",
|
|
5577
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
5578
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
5579
|
+
},
|
|
5361
5580
|
"postNow": {
|
|
5362
5581
|
"const": true
|
|
5363
5582
|
}
|
|
@@ -6259,6 +6478,11 @@
|
|
|
6259
6478
|
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]*$",
|
|
6260
6479
|
"description": "Stable request key for this post creation. Start with a letter or number, reuse the exact same value only when retrying the same complete request, and use a new UUID-like value for a different post."
|
|
6261
6480
|
},
|
|
6481
|
+
"teamId": {
|
|
6482
|
+
"type": "string",
|
|
6483
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
6484
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
6485
|
+
},
|
|
6262
6486
|
"publishAt": {
|
|
6263
6487
|
"type": "string",
|
|
6264
6488
|
"format": "date-time",
|
|
@@ -6283,6 +6507,11 @@
|
|
|
6283
6507
|
"properties": {
|
|
6284
6508
|
"id": {
|
|
6285
6509
|
"type": "string"
|
|
6510
|
+
},
|
|
6511
|
+
"teamId": {
|
|
6512
|
+
"type": "string",
|
|
6513
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
6514
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
6286
6515
|
}
|
|
6287
6516
|
},
|
|
6288
6517
|
"required": [
|
|
@@ -6296,6 +6525,11 @@
|
|
|
6296
6525
|
"inputSchema": {
|
|
6297
6526
|
"type": "object",
|
|
6298
6527
|
"properties": {
|
|
6528
|
+
"teamId": {
|
|
6529
|
+
"type": "string",
|
|
6530
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
6531
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
6532
|
+
},
|
|
6299
6533
|
"from": {
|
|
6300
6534
|
"type": "string",
|
|
6301
6535
|
"format": "date-time"
|
|
@@ -6313,7 +6547,8 @@
|
|
|
6313
6547
|
"PAUSED",
|
|
6314
6548
|
"PUBLISHED",
|
|
6315
6549
|
"ERROR",
|
|
6316
|
-
"CANCELLED"
|
|
6550
|
+
"CANCELLED",
|
|
6551
|
+
"PENDING_APPROVAL"
|
|
6317
6552
|
]
|
|
6318
6553
|
},
|
|
6319
6554
|
"connectionId": {
|
|
@@ -6333,6 +6568,11 @@
|
|
|
6333
6568
|
"inputSchema": {
|
|
6334
6569
|
"type": "object",
|
|
6335
6570
|
"properties": {
|
|
6571
|
+
"teamId": {
|
|
6572
|
+
"type": "string",
|
|
6573
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
6574
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
6575
|
+
},
|
|
6336
6576
|
"id": {
|
|
6337
6577
|
"type": "string",
|
|
6338
6578
|
"minLength": 1
|
|
@@ -7229,6 +7469,11 @@
|
|
|
7229
7469
|
"properties": {
|
|
7230
7470
|
"id": {
|
|
7231
7471
|
"type": "string"
|
|
7472
|
+
},
|
|
7473
|
+
"teamId": {
|
|
7474
|
+
"type": "string",
|
|
7475
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
7476
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
7232
7477
|
}
|
|
7233
7478
|
},
|
|
7234
7479
|
"required": [
|
|
@@ -7266,6 +7511,11 @@
|
|
|
7266
7511
|
"inputSchema": {
|
|
7267
7512
|
"type": "object",
|
|
7268
7513
|
"properties": {
|
|
7514
|
+
"teamId": {
|
|
7515
|
+
"type": "string",
|
|
7516
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
7517
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
7518
|
+
},
|
|
7269
7519
|
"connectionId": {
|
|
7270
7520
|
"type": "string",
|
|
7271
7521
|
"description": "ID from list_connected_social_accounts."
|
|
@@ -7295,6 +7545,11 @@
|
|
|
7295
7545
|
"inputSchema": {
|
|
7296
7546
|
"type": "object",
|
|
7297
7547
|
"properties": {
|
|
7548
|
+
"teamId": {
|
|
7549
|
+
"type": "string",
|
|
7550
|
+
"pattern": "^[A-Za-z0-9-]{1,64}$",
|
|
7551
|
+
"description": "Team workspace id from the teams list in get_account_plan_and_usage. Omit for the user's personal workspace. With teamId, use channel ids from list_connected_social_accounts called with the same teamId; a Member's non-draft post waits for Owner or Admin approval (PENDING_APPROVAL)."
|
|
7552
|
+
},
|
|
7298
7553
|
"connectionId": {
|
|
7299
7554
|
"type": "string"
|
|
7300
7555
|
},
|
package/bin/favstash.js
CHANGED
|
@@ -67,8 +67,11 @@ export async function doctor(remote = remoteClient()) {
|
|
|
67
67
|
);
|
|
68
68
|
return (
|
|
69
69
|
!actual ||
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
["inputSchema", "outputSchema"].some(
|
|
71
|
+
(schema) =>
|
|
72
|
+
JSON.stringify(canonical(actual[schema])) !==
|
|
73
|
+
JSON.stringify(canonical(expected[schema])),
|
|
74
|
+
)
|
|
72
75
|
);
|
|
73
76
|
})
|
|
74
77
|
.map((tool) => tool.name);
|
package/bin/remote.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { accessToken } from "./auth.js";
|
|
2
|
-
import { endpoint } from "./config.js";
|
|
2
|
+
import { PACKAGE, endpoint } from "./config.js";
|
|
3
3
|
|
|
4
4
|
export function remoteClient({
|
|
5
5
|
url = endpoint(),
|
|
@@ -36,6 +36,8 @@ export function remoteClient({
|
|
|
36
36
|
headers: {
|
|
37
37
|
"Content-Type": "application/json",
|
|
38
38
|
Accept: "application/json, text/event-stream",
|
|
39
|
+
// Tells the server this bridge does not need 0.4.x reply narrowing.
|
|
40
|
+
"X-FavStash-Bridge": PACKAGE.version,
|
|
39
41
|
...(protocolVersion ? { "MCP-Protocol-Version": protocolVersion } : {}),
|
|
40
42
|
...(sessionId ? { "Mcp-Session-Id": sessionId } : {}),
|
|
41
43
|
},
|