@sketric/favstash-mcp 0.4.0 → 0.5.2
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 +108 -1
- 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.5.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8729428: Preserve analytics refresh-capacity diagnostics in the generated MCP contract, including retry guidance on cached results.
|
|
8
|
+
- 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.
|
|
9
|
+
- 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.
|
|
10
|
+
|
|
11
|
+
## 0.5.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 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.
|
|
16
|
+
- e34e5d1: Document verified saved-content search and remove uncalibrated match percentages from its ChatGPT gallery. Search ranking values remain available without implying probability.
|
|
17
|
+
|
|
18
|
+
## 0.5.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- 74dc546: Social analytics results can include `freshness` (`fetchedAt`, `stale`, `refreshDeferred`) when FavStash serves cached analytics to stay within provider rate limits.
|
|
23
|
+
|
|
24
|
+
## 0.4.1
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Advertise each tool's title in `annotations.title` and type the `create_social_post` `draft` and `postNow` flags as booleans, as the Claude Connectors Directory requires.
|
|
29
|
+
|
|
3
30
|
## 0.4.0
|
|
4
31
|
|
|
5
32
|
### Minor 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": "959ac5d4f31c131790350402ad4151afdb176490eff65fac787e62f79299ec36",
|
|
3
3
|
"tools": [
|
|
4
4
|
{
|
|
5
5
|
"name": "list_connected_social_accounts",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"additionalProperties": false
|
|
64
64
|
},
|
|
65
65
|
"annotations": {
|
|
66
|
+
"title": "List connected social accounts",
|
|
66
67
|
"readOnlyHint": true,
|
|
67
68
|
"destructiveHint": false,
|
|
68
69
|
"idempotentHint": true,
|
|
@@ -106,6 +107,7 @@
|
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
"annotations": {
|
|
110
|
+
"title": "Get account plan and usage",
|
|
109
111
|
"readOnlyHint": true,
|
|
110
112
|
"destructiveHint": false,
|
|
111
113
|
"idempotentHint": true,
|
|
@@ -173,6 +175,7 @@
|
|
|
173
175
|
}
|
|
174
176
|
},
|
|
175
177
|
"annotations": {
|
|
178
|
+
"title": "Save content URL",
|
|
176
179
|
"readOnlyHint": false,
|
|
177
180
|
"destructiveHint": false,
|
|
178
181
|
"idempotentHint": true,
|
|
@@ -302,6 +305,7 @@
|
|
|
302
305
|
"additionalProperties": false
|
|
303
306
|
},
|
|
304
307
|
"annotations": {
|
|
308
|
+
"title": "Search saved content",
|
|
305
309
|
"readOnlyHint": true,
|
|
306
310
|
"destructiveHint": false,
|
|
307
311
|
"idempotentHint": true,
|
|
@@ -404,6 +408,7 @@
|
|
|
404
408
|
"additionalProperties": false
|
|
405
409
|
},
|
|
406
410
|
"annotations": {
|
|
411
|
+
"title": "List recently saved content",
|
|
407
412
|
"readOnlyHint": true,
|
|
408
413
|
"destructiveHint": false,
|
|
409
414
|
"idempotentHint": true,
|
|
@@ -478,6 +483,7 @@
|
|
|
478
483
|
"additionalProperties": false
|
|
479
484
|
},
|
|
480
485
|
"annotations": {
|
|
486
|
+
"title": "Get saved content",
|
|
481
487
|
"readOnlyHint": true,
|
|
482
488
|
"destructiveHint": false,
|
|
483
489
|
"idempotentHint": true,
|
|
@@ -538,6 +544,7 @@
|
|
|
538
544
|
}
|
|
539
545
|
},
|
|
540
546
|
"annotations": {
|
|
547
|
+
"title": "Get stash summary",
|
|
541
548
|
"readOnlyHint": true,
|
|
542
549
|
"destructiveHint": false,
|
|
543
550
|
"idempotentHint": true,
|
|
@@ -599,6 +606,7 @@
|
|
|
599
606
|
"additionalProperties": false
|
|
600
607
|
},
|
|
601
608
|
"annotations": {
|
|
609
|
+
"title": "List stash collections",
|
|
602
610
|
"readOnlyHint": true,
|
|
603
611
|
"destructiveHint": false,
|
|
604
612
|
"idempotentHint": true,
|
|
@@ -660,6 +668,7 @@
|
|
|
660
668
|
"additionalProperties": false
|
|
661
669
|
},
|
|
662
670
|
"annotations": {
|
|
671
|
+
"title": "List stash tags",
|
|
663
672
|
"readOnlyHint": true,
|
|
664
673
|
"destructiveHint": false,
|
|
665
674
|
"idempotentHint": true,
|
|
@@ -824,6 +833,49 @@
|
|
|
824
833
|
"type": "string"
|
|
825
834
|
}
|
|
826
835
|
},
|
|
836
|
+
"freshness": {
|
|
837
|
+
"type": "object",
|
|
838
|
+
"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.",
|
|
839
|
+
"properties": {
|
|
840
|
+
"fetchedAt": {
|
|
841
|
+
"type": "string"
|
|
842
|
+
},
|
|
843
|
+
"stale": {
|
|
844
|
+
"type": "boolean"
|
|
845
|
+
},
|
|
846
|
+
"refreshDeferred": {
|
|
847
|
+
"type": "boolean"
|
|
848
|
+
},
|
|
849
|
+
"refreshDeferral": {
|
|
850
|
+
"type": "object",
|
|
851
|
+
"properties": {
|
|
852
|
+
"code": {
|
|
853
|
+
"type": "string"
|
|
854
|
+
},
|
|
855
|
+
"retryAfterSeconds": {
|
|
856
|
+
"type": "number"
|
|
857
|
+
},
|
|
858
|
+
"limitScope": {
|
|
859
|
+
"type": "string"
|
|
860
|
+
},
|
|
861
|
+
"retryAt": {
|
|
862
|
+
"type": "string"
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"required": [
|
|
866
|
+
"code",
|
|
867
|
+
"retryAfterSeconds"
|
|
868
|
+
],
|
|
869
|
+
"additionalProperties": false
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"required": [
|
|
873
|
+
"fetchedAt",
|
|
874
|
+
"stale",
|
|
875
|
+
"refreshDeferred"
|
|
876
|
+
],
|
|
877
|
+
"additionalProperties": false
|
|
878
|
+
},
|
|
827
879
|
"nextActions": {
|
|
828
880
|
"type": "array",
|
|
829
881
|
"items": {
|
|
@@ -889,6 +941,7 @@
|
|
|
889
941
|
"additionalProperties": false
|
|
890
942
|
},
|
|
891
943
|
"annotations": {
|
|
944
|
+
"title": "Get social account analytics",
|
|
892
945
|
"readOnlyHint": true,
|
|
893
946
|
"destructiveHint": false,
|
|
894
947
|
"idempotentHint": true,
|
|
@@ -1271,6 +1324,49 @@
|
|
|
1271
1324
|
"type": "string"
|
|
1272
1325
|
}
|
|
1273
1326
|
},
|
|
1327
|
+
"freshness": {
|
|
1328
|
+
"type": "object",
|
|
1329
|
+
"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.",
|
|
1330
|
+
"properties": {
|
|
1331
|
+
"fetchedAt": {
|
|
1332
|
+
"type": "string"
|
|
1333
|
+
},
|
|
1334
|
+
"stale": {
|
|
1335
|
+
"type": "boolean"
|
|
1336
|
+
},
|
|
1337
|
+
"refreshDeferred": {
|
|
1338
|
+
"type": "boolean"
|
|
1339
|
+
},
|
|
1340
|
+
"refreshDeferral": {
|
|
1341
|
+
"type": "object",
|
|
1342
|
+
"properties": {
|
|
1343
|
+
"code": {
|
|
1344
|
+
"type": "string"
|
|
1345
|
+
},
|
|
1346
|
+
"retryAfterSeconds": {
|
|
1347
|
+
"type": "number"
|
|
1348
|
+
},
|
|
1349
|
+
"limitScope": {
|
|
1350
|
+
"type": "string"
|
|
1351
|
+
},
|
|
1352
|
+
"retryAt": {
|
|
1353
|
+
"type": "string"
|
|
1354
|
+
}
|
|
1355
|
+
},
|
|
1356
|
+
"required": [
|
|
1357
|
+
"code",
|
|
1358
|
+
"retryAfterSeconds"
|
|
1359
|
+
],
|
|
1360
|
+
"additionalProperties": false
|
|
1361
|
+
}
|
|
1362
|
+
},
|
|
1363
|
+
"required": [
|
|
1364
|
+
"fetchedAt",
|
|
1365
|
+
"stale",
|
|
1366
|
+
"refreshDeferred"
|
|
1367
|
+
],
|
|
1368
|
+
"additionalProperties": false
|
|
1369
|
+
},
|
|
1274
1370
|
"nextActions": {
|
|
1275
1371
|
"type": "array",
|
|
1276
1372
|
"items": {
|
|
@@ -1336,6 +1432,7 @@
|
|
|
1336
1432
|
"additionalProperties": false
|
|
1337
1433
|
},
|
|
1338
1434
|
"annotations": {
|
|
1435
|
+
"title": "Analyze social content performance",
|
|
1339
1436
|
"readOnlyHint": true,
|
|
1340
1437
|
"destructiveHint": false,
|
|
1341
1438
|
"idempotentHint": true,
|
|
@@ -1536,10 +1633,12 @@
|
|
|
1536
1633
|
"description": "Optional YYYY-MM-DD calendar date for a draft idea. It does not schedule publishing."
|
|
1537
1634
|
},
|
|
1538
1635
|
"draft": {
|
|
1636
|
+
"type": "boolean",
|
|
1539
1637
|
"const": true,
|
|
1540
1638
|
"description": "Create a draft. plannedDate may place it on the calendar without scheduling it."
|
|
1541
1639
|
},
|
|
1542
1640
|
"postNow": {
|
|
1641
|
+
"type": "boolean",
|
|
1543
1642
|
"const": true,
|
|
1544
1643
|
"description": "Publish immediately."
|
|
1545
1644
|
},
|
|
@@ -1604,6 +1703,7 @@
|
|
|
1604
1703
|
"additionalProperties": false
|
|
1605
1704
|
},
|
|
1606
1705
|
"annotations": {
|
|
1706
|
+
"title": "Create social post",
|
|
1607
1707
|
"readOnlyHint": false,
|
|
1608
1708
|
"destructiveHint": true,
|
|
1609
1709
|
"idempotentHint": true,
|
|
@@ -1654,6 +1754,7 @@
|
|
|
1654
1754
|
}
|
|
1655
1755
|
},
|
|
1656
1756
|
"annotations": {
|
|
1757
|
+
"title": "Get social post",
|
|
1657
1758
|
"readOnlyHint": true,
|
|
1658
1759
|
"destructiveHint": false,
|
|
1659
1760
|
"idempotentHint": true,
|
|
@@ -1742,6 +1843,7 @@
|
|
|
1742
1843
|
"additionalProperties": false
|
|
1743
1844
|
},
|
|
1744
1845
|
"annotations": {
|
|
1846
|
+
"title": "List social posts",
|
|
1745
1847
|
"readOnlyHint": true,
|
|
1746
1848
|
"destructiveHint": false,
|
|
1747
1849
|
"idempotentHint": true,
|
|
@@ -2002,6 +2104,7 @@
|
|
|
2002
2104
|
}
|
|
2003
2105
|
},
|
|
2004
2106
|
"annotations": {
|
|
2107
|
+
"title": "Update social post",
|
|
2005
2108
|
"readOnlyHint": false,
|
|
2006
2109
|
"destructiveHint": true,
|
|
2007
2110
|
"idempotentHint": false,
|
|
@@ -2052,6 +2155,7 @@
|
|
|
2052
2155
|
}
|
|
2053
2156
|
},
|
|
2054
2157
|
"annotations": {
|
|
2158
|
+
"title": "Cancel social post",
|
|
2055
2159
|
"readOnlyHint": false,
|
|
2056
2160
|
"destructiveHint": true,
|
|
2057
2161
|
"idempotentHint": false,
|
|
@@ -2111,6 +2215,7 @@
|
|
|
2111
2215
|
}
|
|
2112
2216
|
},
|
|
2113
2217
|
"annotations": {
|
|
2218
|
+
"title": "Import post media",
|
|
2114
2219
|
"readOnlyHint": false,
|
|
2115
2220
|
"destructiveHint": false,
|
|
2116
2221
|
"idempotentHint": false,
|
|
@@ -2408,6 +2513,7 @@
|
|
|
2408
2513
|
"additionalProperties": false
|
|
2409
2514
|
},
|
|
2410
2515
|
"annotations": {
|
|
2516
|
+
"title": "Get social publishing options",
|
|
2411
2517
|
"readOnlyHint": true,
|
|
2412
2518
|
"destructiveHint": false,
|
|
2413
2519
|
"idempotentHint": true,
|
|
@@ -2468,6 +2574,7 @@
|
|
|
2468
2574
|
}
|
|
2469
2575
|
},
|
|
2470
2576
|
"annotations": {
|
|
2577
|
+
"title": "Search Instagram audio",
|
|
2471
2578
|
"readOnlyHint": true,
|
|
2472
2579
|
"destructiveHint": false,
|
|
2473
2580
|
"idempotentHint": true,
|
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
|
},
|