@quiki/mcp 0.3.2 → 0.4.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/apiClient.js +3 -0
- package/dist/index.js +2 -1
- package/dist/tools/getBulkImportStatus.js +1 -1
- package/dist/version.d.ts +1 -0
- package/dist/version.js +7 -0
- package/package.json +1 -1
package/dist/apiClient.js
CHANGED
|
@@ -12,6 +12,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.getApiClient = getApiClient;
|
|
14
14
|
const axios_1 = __importDefault(require("axios"));
|
|
15
|
+
const version_1 = require("./version");
|
|
15
16
|
const DEFAULT_BASE_URL = 'https://api.quiki.io/api/v1';
|
|
16
17
|
function getApiClient() {
|
|
17
18
|
const token = process.env.QUIKI_API_TOKEN;
|
|
@@ -24,6 +25,8 @@ function getApiClient() {
|
|
|
24
25
|
timeout: 120_000,
|
|
25
26
|
headers: {
|
|
26
27
|
Authorization: `Bearer ${token}`,
|
|
28
|
+
// Lets Quiki tell MCP use apart from direct API calls (server v1.2.39).
|
|
29
|
+
'User-Agent': `quiki-mcp/${version_1.PACKAGE_VERSION}`,
|
|
27
30
|
'Content-Type': 'application/json',
|
|
28
31
|
Accept: 'application/json',
|
|
29
32
|
},
|
package/dist/index.js
CHANGED
|
@@ -21,10 +21,11 @@ const listRecentVideos_1 = require("./tools/listRecentVideos");
|
|
|
21
21
|
const bulkImport_1 = require("./tools/bulkImport");
|
|
22
22
|
const bulkImportEstimate_1 = require("./tools/bulkImportEstimate");
|
|
23
23
|
const getBulkImportStatus_1 = require("./tools/getBulkImportStatus");
|
|
24
|
+
const version_1 = require("./version");
|
|
24
25
|
function buildServer() {
|
|
25
26
|
const server = new mcp_js_1.McpServer({
|
|
26
27
|
name: '@quiki/mcp',
|
|
27
|
-
version:
|
|
28
|
+
version: version_1.PACKAGE_VERSION,
|
|
28
29
|
});
|
|
29
30
|
server.registerTool(whoami_1.whoamiTool.name, {
|
|
30
31
|
description: whoami_1.whoamiTool.description,
|
|
@@ -13,7 +13,7 @@ exports.getBulkImportStatusTool = {
|
|
|
13
13
|
description: [
|
|
14
14
|
'Returns the current state of a bulk import. Poll this after `bulk_import` until `status` is one of `COMPLETED`, `FAILED`, or `CANCELLED`.',
|
|
15
15
|
'',
|
|
16
|
-
'Suggested cadence: every 5 s for the first 30 s, then every 10 s. The `jobStats` object tells you how many jobs are pending/processing/completed/failed/skipped right now
|
|
16
|
+
'Suggested cadence: every 5 s for the first 30 s, then every 10 s. The `jobStats` object tells you how many jobs are pending/processing/completed/failed/skipped right now; `skipped` counts links TikTok reported deleted or private before scanning, and is included in `failed`. `skippedAsDuplicate` reports URLs that were dropped because the user already has them in their library -- these never count toward credit cost.',
|
|
17
17
|
'',
|
|
18
18
|
'The `updatedAt` field on the response only ticks when a worker writes to the row -- it does NOT update on polls, on status-reads, or while jobs are queued. Use `jobStats` (specifically the `processing` count and the sum of `pending + processing`) to detect work-in-progress; treat `updatedAt` as a "last meaningful write" timestamp, not a heartbeat.',
|
|
19
19
|
'',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PACKAGE_VERSION = "0.4.0";
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PACKAGE_VERSION = void 0;
|
|
4
|
+
// Single source for the package version: reported to MCP clients by the
|
|
5
|
+
// server (index.ts) and sent to Quiki as the User-Agent (apiClient.ts).
|
|
6
|
+
// Keep in step with package.json (a test checks this).
|
|
7
|
+
exports.PACKAGE_VERSION = '0.4.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quiki/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
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",
|