@quiki/mcp 0.3.1 → 0.3.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/dist/index.js +1 -1
- package/dist/tools/bulkImport.js +2 -0
- package/dist/tools/bulkImportEstimate.js +5 -1
- package/dist/types.d.ts +18 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ const getBulkImportStatus_1 = require("./tools/getBulkImportStatus");
|
|
|
24
24
|
function buildServer() {
|
|
25
25
|
const server = new mcp_js_1.McpServer({
|
|
26
26
|
name: '@quiki/mcp',
|
|
27
|
-
version: '0.3.
|
|
27
|
+
version: '0.3.2',
|
|
28
28
|
});
|
|
29
29
|
server.registerTool(whoami_1.whoamiTool.name, {
|
|
30
30
|
description: whoami_1.whoamiTool.description,
|
package/dist/tools/bulkImport.js
CHANGED
|
@@ -25,6 +25,8 @@ exports.bulkImportTool = {
|
|
|
25
25
|
'',
|
|
26
26
|
'Hard cap: 500 URLs per call -- split larger imports into multiple calls. Mixed platforms must pass an explicit `platform`. Re-submitting the same URLs creates a new BulkImport (no idempotency); duplicate URLs already scanned are deduped server-side and do not count toward credit cost.',
|
|
27
27
|
'',
|
|
28
|
+
'URLs that are not a single importable video -- channel, @handle and playlist URLs, TikTok vm./vt. short links, malformed video ids -- are reported as `totals.rejectedCount` and silently skipped rather than failing the call. They are excluded from `newEntryCount` and cost nothing. The counts partition the list exactly: `totalEntries` = `rejectedCount` + `duplicateCount` + `newEntryCount`. If `rejectedCount` is above zero and you expected every URL to scan, fix those URLs and submit them in a follow-up call.',
|
|
29
|
+
'',
|
|
28
30
|
'Credits are debited per-job at worker completion (not up front). `fileName` is stamped as `API Bulk Import` so the dashboard distinguishes agent imports from file uploads.',
|
|
29
31
|
'',
|
|
30
32
|
'Write scope required.',
|
|
@@ -28,7 +28,11 @@ exports.bulkImportEstimateTool = {
|
|
|
28
28
|
'',
|
|
29
29
|
'The two count fields measure different things: `estimatedCost` is what your CURRENT URL list would cost if submitted as-is (always = `newEntryCount x effectiveCostPerVideo`); `scannableCount` is the maximum number of URLs that would fit your CURRENT balance (= `min(newEntryCount, floor(balance / effectiveCostPerVideo))`). When `fits: false`, trim your list to `scannableCount` and resubmit.',
|
|
30
30
|
'',
|
|
31
|
-
'URL
|
|
31
|
+
'Each URL is resolved to a (platform, videoId) during dedup. URLs that are not a single importable video -- channel, @handle and playlist URLs, TikTok vm./vt. short links, malformed video ids -- are reported as `totals.rejectedCount`, excluded from `newEntryCount`, and cost nothing. The list is still accepted: a bad URL does not fail the whole call. Check `rejectedCount` and fix those URLs before submitting if you expected all of them to scan.',
|
|
32
|
+
'',
|
|
33
|
+
'The counts partition the list exactly: `totalEntries` = `rejectedCount` + `duplicateCount` + `newEntryCount`. A rejected URL is never also counted as a duplicate.',
|
|
34
|
+
'',
|
|
35
|
+
'Resolving an id is not the same as confirming the video exists. A 200 estimate means each counted URL has a well-formed video identity, not that the video is live and scannable.',
|
|
32
36
|
].join('\n'),
|
|
33
37
|
inputShape: InputSchema,
|
|
34
38
|
async handler(client, args) {
|
package/dist/types.d.ts
CHANGED
|
@@ -97,6 +97,15 @@ export interface BulkImportSubmitResponse {
|
|
|
97
97
|
totals: {
|
|
98
98
|
totalEntries: number;
|
|
99
99
|
duplicateCount: number;
|
|
100
|
+
/**
|
|
101
|
+
* URLs that carry no importable video identity — YouTube
|
|
102
|
+
* channel/@handle/playlist URLs, TikTok vm./vt. short links,
|
|
103
|
+
* malformed video ids. Excluded from `newEntryCount` and never charged
|
|
104
|
+
* for. Server v1.0.74; before that these were miscounted as duplicates.
|
|
105
|
+
*
|
|
106
|
+
* Invariant: totalEntries === rejectedCount + duplicateCount + newEntryCount.
|
|
107
|
+
*/
|
|
108
|
+
rejectedCount: number;
|
|
100
109
|
newEntryCount: number;
|
|
101
110
|
};
|
|
102
111
|
scannableCount: number;
|
|
@@ -116,6 +125,15 @@ export interface BulkImportEstimateResponse {
|
|
|
116
125
|
totals: {
|
|
117
126
|
totalEntries: number;
|
|
118
127
|
duplicateCount: number;
|
|
128
|
+
/**
|
|
129
|
+
* URLs that carry no importable video identity — YouTube
|
|
130
|
+
* channel/@handle/playlist URLs, TikTok vm./vt. short links,
|
|
131
|
+
* malformed video ids. Excluded from `newEntryCount` and never charged
|
|
132
|
+
* for. Server v1.0.74; before that these were miscounted as duplicates.
|
|
133
|
+
*
|
|
134
|
+
* Invariant: totalEntries === rejectedCount + duplicateCount + newEntryCount.
|
|
135
|
+
*/
|
|
136
|
+
rejectedCount: number;
|
|
119
137
|
newEntryCount: number;
|
|
120
138
|
};
|
|
121
139
|
scannableCount: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiki/mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Quiki.io MCP server — whoami, scan_url, get_scan, list_recent_videos, get_video, bulk_import, bulk_import_estimate, get_bulk_import_status over stdio.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"test": "jest"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
23
|
-
"axios": "^1.
|
|
22
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
23
|
+
"axios": "^1.20.0",
|
|
24
24
|
"zod": "^4.0.14"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|