loopctl-mcp-server 3.46.1 → 3.48.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/README.md +47 -2
- package/index.js +969 -41
- package/lib/api-index.js +16 -0
- package/lib/article-links.js +90 -0
- package/lib/corpus-get.js +21 -0
- package/lib/entities.js +128 -0
- package/lib/knowledge-admin.js +242 -0
- package/lib/project-export.js +100 -0
- package/lib/secret-file.js +60 -1
- package/lib/skills.js +315 -0
- package/lib/ui-tests.js +153 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -83,6 +83,21 @@ import {
|
|
|
83
83
|
webhookTest,
|
|
84
84
|
webhookUpdate,
|
|
85
85
|
} from "./lib/webhooks.js";
|
|
86
|
+
import {
|
|
87
|
+
skillCostPerformance,
|
|
88
|
+
skillCreate,
|
|
89
|
+
skillDelete,
|
|
90
|
+
skillGet,
|
|
91
|
+
skillImport,
|
|
92
|
+
skillList,
|
|
93
|
+
skillResultReport,
|
|
94
|
+
skillStats,
|
|
95
|
+
skillUpdate,
|
|
96
|
+
skillVersionCreate,
|
|
97
|
+
skillVersionGet,
|
|
98
|
+
skillVersionResults,
|
|
99
|
+
skillVersions,
|
|
100
|
+
} from "./lib/skills.js";
|
|
86
101
|
import {
|
|
87
102
|
tokenBudgetDelete,
|
|
88
103
|
tokenBudgetGet,
|
|
@@ -130,6 +145,29 @@ import {
|
|
|
130
145
|
} from "./lib/generated-tools.js";
|
|
131
146
|
import { exactKeyMissingMessage, orchestratorKeyArgs } from "./lib/custody-key.js";
|
|
132
147
|
import { readPayloadFile } from "./lib/payload-path.js";
|
|
148
|
+
import {
|
|
149
|
+
entityCreate,
|
|
150
|
+
entityDelete,
|
|
151
|
+
entityGet,
|
|
152
|
+
entityList,
|
|
153
|
+
entityUpdate,
|
|
154
|
+
} from "./lib/entities.js";
|
|
155
|
+
import {
|
|
156
|
+
uiTestAddFinding,
|
|
157
|
+
uiTestComplete,
|
|
158
|
+
uiTestGet,
|
|
159
|
+
uiTestList,
|
|
160
|
+
uiTestStart,
|
|
161
|
+
} from "./lib/ui-tests.js";
|
|
162
|
+
import { projectExport } from "./lib/project-export.js";
|
|
163
|
+
import { corpusGet } from "./lib/corpus-get.js";
|
|
164
|
+
import { apiIndex } from "./lib/api-index.js";
|
|
165
|
+
import {
|
|
166
|
+
knowledgeExport as downloadKnowledgeExport,
|
|
167
|
+
knowledgePipeline,
|
|
168
|
+
knowledgeProjectUsage,
|
|
169
|
+
} from "./lib/knowledge-admin.js";
|
|
170
|
+
import { knowledgeLinkCreate, knowledgeLinkDelete, knowledgeLinks } from "./lib/article-links.js";
|
|
133
171
|
import { enrollRunner, listRunners, revokeRunner, runnerPool } from "./lib/runners.js";
|
|
134
172
|
import { replyDraftList } from "./lib/reply-drafts.js";
|
|
135
173
|
import {
|
|
@@ -411,7 +449,7 @@ async function sendRequest(
|
|
|
411
449
|
path,
|
|
412
450
|
body,
|
|
413
451
|
keyOverride,
|
|
414
|
-
{ exactKey = false, timeoutMs, keyHint } = {},
|
|
452
|
+
{ exactKey = false, timeoutMs, keyHint, saveBody } = {},
|
|
415
453
|
) {
|
|
416
454
|
const url = `${getBaseUrl()}${path}`;
|
|
417
455
|
// `exactKey` sends `keyOverride` VERBATIM instead of consulting `resolveKey`
|
|
@@ -505,6 +543,13 @@ async function sendRequest(
|
|
|
505
543
|
return { ok: true };
|
|
506
544
|
}
|
|
507
545
|
|
|
546
|
+
// A binary answer (knowledge_export's .tar.gz) cannot be decoded as text without being
|
|
547
|
+
// corrupted, so a caller that asks for the body hands over the Response on success and
|
|
548
|
+
// writes it where it belongs (lib/knowledge-admin.js). A refusal is still parsed below.
|
|
549
|
+
if (saveBody && response.ok) {
|
|
550
|
+
return saveBody(response);
|
|
551
|
+
}
|
|
552
|
+
|
|
508
553
|
let responseBody;
|
|
509
554
|
const contentType = response.headers.get("content-type") || "";
|
|
510
555
|
if (contentType.includes("application/json")) {
|
|
@@ -1191,13 +1236,15 @@ async function getStory({ story_id }) {
|
|
|
1191
1236
|
// set the default selection (`resolveKey`) applies. Unlike the unconditional user-key family
|
|
1192
1237
|
// described above `apiCall`, these fall back rather than refuse: their gates use the role
|
|
1193
1238
|
// hierarchy (`role:`, never `exact_role:`), so a sufficient global key passes.
|
|
1239
|
+
// `opts` carries request options that are not about the key (`timeoutMs`, `saveBody`); the key
|
|
1240
|
+
// options are this function's to set.
|
|
1194
1241
|
function pinnedApiCall(hint) {
|
|
1195
|
-
return (method, path, body) => {
|
|
1242
|
+
return (method, path, body, opts = {}) => {
|
|
1196
1243
|
const keyHint = hint();
|
|
1197
1244
|
|
|
1198
1245
|
return keyHint
|
|
1199
|
-
? apiCall(method, path, body, process.env[keyHint], { exactKey: true, keyHint })
|
|
1200
|
-
: apiCall(method, path, body);
|
|
1246
|
+
? apiCall(method, path, body, process.env[keyHint], { ...opts, exactKey: true, keyHint })
|
|
1247
|
+
: apiCall(method, path, body, undefined, opts);
|
|
1201
1248
|
};
|
|
1202
1249
|
}
|
|
1203
1250
|
|
|
@@ -1431,6 +1478,69 @@ async function webhookDeliveriesTool(args) {
|
|
|
1431
1478
|
return toContent(await webhookDeliveries(args, { apiCall: userKeyApiCall }));
|
|
1432
1479
|
}
|
|
1433
1480
|
|
|
1481
|
+
// loopctl #872, batch 4. The skill writes (create, update, delete, new version, import) and the
|
|
1482
|
+
// cost-performance read are `role: :user` (`userKeyApiCall`); the other skill reads are
|
|
1483
|
+
// `role: :agent` (the session's own key). The skill result is `exact_role: [:orchestrator,
|
|
1484
|
+
// :superadmin]`, so it selects its key through `orchestratorKeyArgs` as bulk_verify does.
|
|
1485
|
+
|
|
1486
|
+
async function skillCreateTool(args) {
|
|
1487
|
+
return toContent(await skillCreate(args, { apiCall: userKeyApiCall }));
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
async function skillListTool(args) {
|
|
1491
|
+
return toContent(await skillList(args, { apiCall: ownKeyApiCall }));
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
async function skillGetTool(args) {
|
|
1495
|
+
return toContent(await skillGet(args, { apiCall: ownKeyApiCall }));
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
async function skillUpdateTool(args) {
|
|
1499
|
+
return toContent(await skillUpdate(args, { apiCall: userKeyApiCall }));
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
async function skillDeleteTool(args) {
|
|
1503
|
+
return toContent(await skillDelete(args, { apiCall: userKeyApiCall }));
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
async function skillImportTool(args) {
|
|
1507
|
+
return toContent(await skillImport(args, { apiCall: userKeyApiCall }));
|
|
1508
|
+
}
|
|
1509
|
+
|
|
1510
|
+
async function skillVersionCreateTool(args) {
|
|
1511
|
+
return toContent(await skillVersionCreate(args, { apiCall: userKeyApiCall }));
|
|
1512
|
+
}
|
|
1513
|
+
|
|
1514
|
+
async function skillVersionsTool(args) {
|
|
1515
|
+
return toContent(await skillVersions(args, { apiCall: ownKeyApiCall }));
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
async function skillVersionGetTool(args) {
|
|
1519
|
+
return toContent(await skillVersionGet(args, { apiCall: ownKeyApiCall }));
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
async function skillStatsTool(args) {
|
|
1523
|
+
return toContent(await skillStats(args, { apiCall: ownKeyApiCall }));
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
async function skillVersionResultsTool(args) {
|
|
1527
|
+
return toContent(await skillVersionResults(args, { apiCall: ownKeyApiCall }));
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
async function skillCostPerformanceTool(args) {
|
|
1531
|
+
return toContent(await skillCostPerformance(args, { apiCall: userKeyApiCall }));
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
async function skillResultReportTool(args) {
|
|
1535
|
+
const orch = orchestratorKeyArgs();
|
|
1536
|
+
|
|
1537
|
+
return toContent(
|
|
1538
|
+
await skillResultReport(args, {
|
|
1539
|
+
apiCall: (method, path, body) => apiCall(method, path, body, orch.override, orch.options),
|
|
1540
|
+
}),
|
|
1541
|
+
);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1434
1544
|
async function tokenBudgetListTool(args) {
|
|
1435
1545
|
return toContent(await tokenBudgetList(args, { apiCall: ownKeyApiCall }));
|
|
1436
1546
|
}
|
|
@@ -2183,8 +2293,10 @@ async function knowledgeList({
|
|
|
2183
2293
|
include_body,
|
|
2184
2294
|
suppressed,
|
|
2185
2295
|
}) {
|
|
2296
|
+
// A project goes in the path (GET /api/v1/projects/:project_id/articles), the route
|
|
2297
|
+
// ArticleController.index serves for exactly this filter; the action reads it as the same
|
|
2298
|
+
// `project_id` param a query string would carry (loopctl #872).
|
|
2186
2299
|
const params = new URLSearchParams();
|
|
2187
|
-
if (project_id) params.set("project_id", project_id);
|
|
2188
2300
|
if (category) params.set("category", category);
|
|
2189
2301
|
if (status) params.set("status", status);
|
|
2190
2302
|
if (tags) params.set("tags", tags);
|
|
@@ -2205,7 +2317,9 @@ async function knowledgeList({
|
|
|
2205
2317
|
|
|
2206
2318
|
const result = await apiCall(
|
|
2207
2319
|
"GET",
|
|
2208
|
-
|
|
2320
|
+
project_id
|
|
2321
|
+
? `/api/v1/projects/${encodeURIComponent(project_id)}/articles?${params}`
|
|
2322
|
+
: `/api/v1/articles?${params}`,
|
|
2209
2323
|
null,
|
|
2210
2324
|
agentKey(),
|
|
2211
2325
|
);
|
|
@@ -2282,10 +2396,12 @@ async function knowledgeCreate({
|
|
|
2282
2396
|
idempotency_key,
|
|
2283
2397
|
metadata,
|
|
2284
2398
|
}) {
|
|
2399
|
+
// A project goes in the path (POST /api/v1/projects/:project_id/articles), the route
|
|
2400
|
+
// ArticleController.create serves for a project-scoped article; the action merges it into
|
|
2401
|
+
// the attrs as the same `project_id` a body would carry (loopctl #872).
|
|
2285
2402
|
const payload = { title, body };
|
|
2286
2403
|
if (category) payload.category = category;
|
|
2287
2404
|
if (tags) payload.tags = tags;
|
|
2288
|
-
if (project_id) payload.project_id = project_id;
|
|
2289
2405
|
if (source_type) payload.source_type = source_type;
|
|
2290
2406
|
if (source_id) payload.source_id = source_id;
|
|
2291
2407
|
if (idempotency_key) payload.idempotency_key = idempotency_key;
|
|
@@ -2305,7 +2421,9 @@ async function knowledgeCreate({
|
|
|
2305
2421
|
|
|
2306
2422
|
const result = await apiCall(
|
|
2307
2423
|
"POST",
|
|
2308
|
-
|
|
2424
|
+
project_id
|
|
2425
|
+
? `/api/v1/projects/${encodeURIComponent(project_id)}/articles`
|
|
2426
|
+
: "/api/v1/articles",
|
|
2309
2427
|
payload,
|
|
2310
2428
|
agentKey(),
|
|
2311
2429
|
);
|
|
@@ -2793,6 +2911,88 @@ async function knowledgeLint({ project_id, stale_days, min_coverage, max_per_cat
|
|
|
2793
2911
|
return toContent(result);
|
|
2794
2912
|
}
|
|
2795
2913
|
|
|
2914
|
+
// loopctl #872, batch 4. Entity definitions are a security root: create, update and delete are
|
|
2915
|
+
// `role: :user` + human-anchored (`userKeyApiCall`), list and show `role: :agent`
|
|
2916
|
+
// (`ownKeyApiCall`). Every ui-test action, project_export, corpus_get and knowledge_links are
|
|
2917
|
+
// `role: :agent` (`ownKeyApiCall`). knowledge_project_usage and knowledge_pipeline are
|
|
2918
|
+
// `role: :orchestrator` (`orchestratorPinnedApiCall`). knowledge_export and
|
|
2919
|
+
// knowledge_link_delete are `role: :user` (`userKeyApiCall`); knowledge_link_create is
|
|
2920
|
+
// `role: :agent` except a `supersedes` link, which the action holds to `role: :user`.
|
|
2921
|
+
|
|
2922
|
+
async function entityListTool(args) {
|
|
2923
|
+
return toContent(await entityList(args, { apiCall: ownKeyApiCall }));
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
async function entityGetTool(args) {
|
|
2927
|
+
return toContent(await entityGet(args, { apiCall: ownKeyApiCall }));
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
async function entityCreateTool(args) {
|
|
2931
|
+
return toContent(await entityCreate(args, { apiCall: userKeyApiCall }));
|
|
2932
|
+
}
|
|
2933
|
+
|
|
2934
|
+
async function entityUpdateTool(args) {
|
|
2935
|
+
return toContent(await entityUpdate(args, { apiCall: userKeyApiCall }));
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
async function entityDeleteTool(args) {
|
|
2939
|
+
return toContent(await entityDelete(args, { apiCall: userKeyApiCall }));
|
|
2940
|
+
}
|
|
2941
|
+
|
|
2942
|
+
async function uiTestStartTool(args) {
|
|
2943
|
+
return toContent(await uiTestStart(args, { apiCall: ownKeyApiCall }));
|
|
2944
|
+
}
|
|
2945
|
+
|
|
2946
|
+
async function uiTestListTool(args) {
|
|
2947
|
+
return toContent(await uiTestList(args, { apiCall: ownKeyApiCall }));
|
|
2948
|
+
}
|
|
2949
|
+
|
|
2950
|
+
async function uiTestGetTool(args) {
|
|
2951
|
+
return toContent(await uiTestGet(args, { apiCall: ownKeyApiCall }));
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
async function uiTestAddFindingTool(args) {
|
|
2955
|
+
return toContent(await uiTestAddFinding(args, { apiCall: ownKeyApiCall }));
|
|
2956
|
+
}
|
|
2957
|
+
|
|
2958
|
+
async function uiTestCompleteTool(args) {
|
|
2959
|
+
return toContent(await uiTestComplete(args, { apiCall: ownKeyApiCall }));
|
|
2960
|
+
}
|
|
2961
|
+
|
|
2962
|
+
async function projectExportTool(args) {
|
|
2963
|
+
return toContent(await projectExport(args, { apiCall: ownKeyApiCall }));
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
async function corpusGetTool(args) {
|
|
2967
|
+
return toContent(await corpusGet(args, { apiCall: ownKeyApiCall }));
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
async function knowledgeProjectUsageTool(args) {
|
|
2971
|
+
return toContent(await knowledgeProjectUsage(args, { apiCall: orchestratorPinnedApiCall }));
|
|
2972
|
+
}
|
|
2973
|
+
|
|
2974
|
+
async function knowledgePipelineTool(args) {
|
|
2975
|
+
return toContent(await knowledgePipeline(args, { apiCall: orchestratorPinnedApiCall }));
|
|
2976
|
+
}
|
|
2977
|
+
|
|
2978
|
+
async function knowledgeExportTool(args) {
|
|
2979
|
+
return toContent(await downloadKnowledgeExport(args, { apiCall: userKeyApiCall }));
|
|
2980
|
+
}
|
|
2981
|
+
|
|
2982
|
+
async function knowledgeLinkCreateTool(args) {
|
|
2983
|
+
return toContent(
|
|
2984
|
+
await knowledgeLinkCreate(args, { apiCall: ownKeyApiCall, userApiCall: userKeyApiCall }),
|
|
2985
|
+
);
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
async function knowledgeLinkDeleteTool(args) {
|
|
2989
|
+
return toContent(await knowledgeLinkDelete(args, { apiCall: userKeyApiCall }));
|
|
2990
|
+
}
|
|
2991
|
+
|
|
2992
|
+
async function knowledgeLinksTool(args) {
|
|
2993
|
+
return toContent(await knowledgeLinks(args, { apiCall: ownKeyApiCall }));
|
|
2994
|
+
}
|
|
2995
|
+
|
|
2796
2996
|
async function knowledgeConsolidation({ day, class: klass, limit, offset } = {}) {
|
|
2797
2997
|
const params = new URLSearchParams();
|
|
2798
2998
|
if (day) params.set("day", String(day));
|
|
@@ -3207,30 +3407,6 @@ async function knowledgeUnusedArticles({ days_unused, limit, offset } = {}) {
|
|
|
3207
3407
|
return toContent(result);
|
|
3208
3408
|
}
|
|
3209
3409
|
|
|
3210
|
-
async function knowledgeExport({ project_id }) {
|
|
3211
|
-
const basePath = project_id
|
|
3212
|
-
? `/api/v1/projects/${project_id}/knowledge/export`
|
|
3213
|
-
: "/api/v1/knowledge/export";
|
|
3214
|
-
const baseUrl = getBaseUrl();
|
|
3215
|
-
// The export endpoint is role:user — use LOOPCTL_USER_KEY. (LOOPCTL_ORCH_KEY is
|
|
3216
|
-
// orchestrator role, which is BELOW user in the hierarchy and would 403.) The
|
|
3217
|
-
// endpoint streams a gzipped tar (`application/gzip`), so save it as `.tar.gz`.
|
|
3218
|
-
const downloadCmd = `curl -H "Authorization: Bearer $LOOPCTL_USER_KEY" "${baseUrl}${basePath}" -o knowledge-export.tar.gz`;
|
|
3219
|
-
return {
|
|
3220
|
-
content: [{
|
|
3221
|
-
type: "text",
|
|
3222
|
-
text: JSON.stringify({
|
|
3223
|
-
message:
|
|
3224
|
-
"Knowledge export streams a bounded-memory gzipped tar (.tar.gz). Use the curl " +
|
|
3225
|
-
"command below to download it directly. Requires a user-role key " +
|
|
3226
|
-
"(LOOPCTL_USER_KEY); extract with `tar -xzf knowledge-export.tar.gz`.",
|
|
3227
|
-
command: downloadCmd,
|
|
3228
|
-
endpoint: `${baseUrl}${basePath}`,
|
|
3229
|
-
}, null, 2),
|
|
3230
|
-
}],
|
|
3231
|
-
};
|
|
3232
|
-
}
|
|
3233
|
-
|
|
3234
3410
|
// --- OKF (Open Knowledge Format) interchange ---
|
|
3235
3411
|
|
|
3236
3412
|
// Guard a user-supplied absolute filesystem path against pseudo-filesystems.
|
|
@@ -3368,6 +3544,11 @@ async function listRoutes() {
|
|
|
3368
3544
|
return toContent(result);
|
|
3369
3545
|
}
|
|
3370
3546
|
|
|
3547
|
+
// #872: the public welcome document, read with no key (lib/api-index.js).
|
|
3548
|
+
async function apiIndexTool(args) {
|
|
3549
|
+
return toContent(await apiIndex(args, { publicApiCall }));
|
|
3550
|
+
}
|
|
3551
|
+
|
|
3371
3552
|
// US-26.2.3: Dispatch lineage tool. LCP-1 §9.2: optionally enroll an agent key
|
|
3372
3553
|
// (agent_pubkey + alg) with an owner/parent attestation over it.
|
|
3373
3554
|
async function createDispatch({
|
|
@@ -7818,6 +7999,367 @@ const TOOLS = [
|
|
|
7818
7999
|
required: [],
|
|
7819
8000
|
},
|
|
7820
8001
|
},
|
|
8002
|
+
{
|
|
8003
|
+
name: "entity_list",
|
|
8004
|
+
description:
|
|
8005
|
+
"LIST THE TENANT'S CONTEXT RETRIEVER ENTITY DEFINITIONS (GET /api/v1/entities, Epic 30), " +
|
|
8006
|
+
"ordered by name: each with `id`, `name`, `backing_source` (projects, stories or epics) " +
|
|
8007
|
+
"and `fields` (the declared columns with `type`, `filterable`, `searchable`). Each " +
|
|
8008
|
+
"definition is what a generated `cr_filter_*` / `cr_search_*` tool queries. Any key of " +
|
|
8009
|
+
"the tenant (`role: :agent`); travels on this session's own key. A superadmin key with " +
|
|
8010
|
+
"no impersonation target is 422 impersonation_tenant_required.",
|
|
8011
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
8012
|
+
},
|
|
8013
|
+
{
|
|
8014
|
+
name: "entity_get",
|
|
8015
|
+
description:
|
|
8016
|
+
"READ ONE CONTEXT RETRIEVER ENTITY DEFINITION (GET /api/v1/entities/:id). Any key of the " +
|
|
8017
|
+
"tenant (`role: :agent`), on this session's own key. 404 for a definition that is not " +
|
|
8018
|
+
"this tenant's. A non-UUID `entity_id` is refused by the tool, sending nothing.",
|
|
8019
|
+
inputSchema: {
|
|
8020
|
+
type: "object",
|
|
8021
|
+
properties: {
|
|
8022
|
+
entity_id: { type: "string", description: "The definition's UUID." },
|
|
8023
|
+
},
|
|
8024
|
+
required: ["entity_id"],
|
|
8025
|
+
},
|
|
8026
|
+
},
|
|
8027
|
+
{
|
|
8028
|
+
name: "entity_create",
|
|
8029
|
+
description:
|
|
8030
|
+
"DEFINE A CONTEXT RETRIEVER ENTITY (POST /api/v1/entities): `name` (lowercase " +
|
|
8031
|
+
"snake_case, at most 100 characters), `backing_source` (projects, stories or epics) and " +
|
|
8032
|
+
"`fields`, a non-empty list of `{name, type, filterable, searchable}` where `type` is " +
|
|
8033
|
+
"string, integer, boolean, float or datetime. The definition is a SECURITY ROOT: its " +
|
|
8034
|
+
"fields are the executor's allowlist and the tenant's cr_* tools are generated from it, " +
|
|
8035
|
+
"and loopctl accepts only the columns its own per-source allowlist names (never " +
|
|
8036
|
+
"tenant_id, metadata or a custody column). Needs a USER-role key (`role: :user` with " +
|
|
8037
|
+
"the hierarchy) on a human-anchored tenant, sent on LOOPCTL_USER_KEY verbatim when set, " +
|
|
8038
|
+
"else the default key: an agent or orchestrator key is 403 insufficient_role, an " +
|
|
8039
|
+
"agent-rooted tenant 403 custody_tier_required. 422 for a column the source does not " +
|
|
8040
|
+
"allowlist, a bad name or type, more than 50 fields, or the per-tenant limit " +
|
|
8041
|
+
"(entity_limit). Refused by the tool, " +
|
|
8042
|
+
"sending nothing: a blank name, an unknown backing_source and an empty or non-object " +
|
|
8043
|
+
"fields list.",
|
|
8044
|
+
inputSchema: {
|
|
8045
|
+
type: "object",
|
|
8046
|
+
properties: {
|
|
8047
|
+
name: { type: "string", description: "The entity name, lowercase snake_case." },
|
|
8048
|
+
backing_source: {
|
|
8049
|
+
type: "string",
|
|
8050
|
+
enum: ["projects", "stories", "epics"],
|
|
8051
|
+
description: "The table the entity reads.",
|
|
8052
|
+
},
|
|
8053
|
+
fields: {
|
|
8054
|
+
type: "array",
|
|
8055
|
+
items: {
|
|
8056
|
+
type: "object",
|
|
8057
|
+
properties: {
|
|
8058
|
+
name: { type: "string" },
|
|
8059
|
+
type: { type: "string", enum: ["string", "integer", "boolean", "float", "datetime"] },
|
|
8060
|
+
filterable: { type: "boolean" },
|
|
8061
|
+
searchable: { type: "boolean" },
|
|
8062
|
+
},
|
|
8063
|
+
},
|
|
8064
|
+
description: "The declared columns, each an allowlisted column of the backing source.",
|
|
8065
|
+
},
|
|
8066
|
+
},
|
|
8067
|
+
required: ["name", "backing_source", "fields"],
|
|
8068
|
+
},
|
|
8069
|
+
},
|
|
8070
|
+
{
|
|
8071
|
+
name: "entity_update",
|
|
8072
|
+
description:
|
|
8073
|
+
"EDIT A CONTEXT RETRIEVER ENTITY DEFINITION (PATCH /api/v1/entities/:id): any of " +
|
|
8074
|
+
"`name`, `backing_source` and `fields` (the full new list; it replaces the old one). An " +
|
|
8075
|
+
"omitted field keeps its value, and the result is re-validated against loopctl's column " +
|
|
8076
|
+
"allowlist, so an update can never widen it. Keyed and gated as entity_create: a " +
|
|
8077
|
+
"USER-role key on a human-anchored tenant; an agent or orchestrator key is 403 " +
|
|
8078
|
+
"insufficient_role, an agent-rooted tenant 403 custody_tier_required. 404 for a " +
|
|
8079
|
+
"definition that is not this tenant's; 422 as entity_create. Refused by the tool, " +
|
|
8080
|
+
"sending nothing: a non-UUID `entity_id`, a call naming no field (loopctl would answer " +
|
|
8081
|
+
"200 unchanged), and the malformed values entity_create refuses.",
|
|
8082
|
+
inputSchema: {
|
|
8083
|
+
type: "object",
|
|
8084
|
+
properties: {
|
|
8085
|
+
entity_id: { type: "string", description: "The definition's UUID." },
|
|
8086
|
+
name: { type: "string", description: "Optional: the new name." },
|
|
8087
|
+
backing_source: {
|
|
8088
|
+
type: "string",
|
|
8089
|
+
enum: ["projects", "stories", "epics"],
|
|
8090
|
+
description: "Optional: the new backing source.",
|
|
8091
|
+
},
|
|
8092
|
+
fields: {
|
|
8093
|
+
type: "array",
|
|
8094
|
+
items: { type: "object" },
|
|
8095
|
+
description: "Optional: the full new field list, as entity_create takes it.",
|
|
8096
|
+
},
|
|
8097
|
+
},
|
|
8098
|
+
required: ["entity_id"],
|
|
8099
|
+
},
|
|
8100
|
+
},
|
|
8101
|
+
{
|
|
8102
|
+
name: "entity_delete",
|
|
8103
|
+
description:
|
|
8104
|
+
"DELETE A CONTEXT RETRIEVER ENTITY DEFINITION (DELETE /api/v1/entities/:id); its cr_* " +
|
|
8105
|
+
"tools stop being generated. Audited; answers the deleted definition. Keyed and gated " +
|
|
8106
|
+
"as entity_create: a USER-role key on a human-anchored tenant; an agent or orchestrator " +
|
|
8107
|
+
"key is 403 insufficient_role, an agent-rooted tenant 403 custody_tier_required. 404 for " +
|
|
8108
|
+
"a definition that is not this tenant's. A non-UUID `entity_id` is refused by the tool, " +
|
|
8109
|
+
"sending nothing.",
|
|
8110
|
+
inputSchema: {
|
|
8111
|
+
type: "object",
|
|
8112
|
+
properties: {
|
|
8113
|
+
entity_id: { type: "string", description: "The definition's UUID." },
|
|
8114
|
+
},
|
|
8115
|
+
required: ["entity_id"],
|
|
8116
|
+
},
|
|
8117
|
+
},
|
|
8118
|
+
{
|
|
8119
|
+
name: "ui_test_start",
|
|
8120
|
+
description:
|
|
8121
|
+
"START A UI TEST RUN for a project (POST /api/v1/projects/:project_id/ui-tests): " +
|
|
8122
|
+
"`guide_reference` names the test guide the run follows (1..1000 characters). Answers " +
|
|
8123
|
+
"201 with `ui_test_run` (status in_progress, empty findings), started by this key's " +
|
|
8124
|
+
"agent. `role: :agent`, on this session's own key. 422 kb_project_no_work for a " +
|
|
8125
|
+
"knowledge-only (kind: kb) project, 422 for a project_id that is not a UUID and names " +
|
|
8126
|
+
"no project, or a guide_reference out of range. Refused by the tool, sending nothing: a blank " +
|
|
8127
|
+
"project_id or guide_reference. Record findings with ui_test_add_finding, then close " +
|
|
8128
|
+
"the run with ui_test_complete.",
|
|
8129
|
+
inputSchema: {
|
|
8130
|
+
type: "object",
|
|
8131
|
+
properties: {
|
|
8132
|
+
project_id: { type: "string", description: "The project's UUID, slug or repo name." },
|
|
8133
|
+
guide_reference: { type: "string", description: "The test guide this run follows." },
|
|
8134
|
+
},
|
|
8135
|
+
required: ["project_id", "guide_reference"],
|
|
8136
|
+
},
|
|
8137
|
+
},
|
|
8138
|
+
{
|
|
8139
|
+
name: "ui_test_list",
|
|
8140
|
+
description:
|
|
8141
|
+
"LIST A PROJECT'S UI TEST RUNS (GET /api/v1/projects/:project_id/ui-tests), newest " +
|
|
8142
|
+
"first, with `meta` total, limit and offset. Optional `status` (in_progress, passed, " +
|
|
8143
|
+
"failed or cancelled), `limit` (default 20) and `offset`. `role: :agent`, on this " +
|
|
8144
|
+
"session's own key. 422 for a project_id that is not a UUID and names no project. Refused by the " +
|
|
8145
|
+
"tool, sending nothing: a blank project_id, an unknown status, a limit below 1 and a " +
|
|
8146
|
+
"negative offset, which loopctl would not refuse cleanly.",
|
|
8147
|
+
inputSchema: {
|
|
8148
|
+
type: "object",
|
|
8149
|
+
properties: {
|
|
8150
|
+
project_id: { type: "string", description: "The project's UUID, slug or repo name." },
|
|
8151
|
+
status: {
|
|
8152
|
+
type: "string",
|
|
8153
|
+
enum: ["in_progress", "passed", "failed", "cancelled"],
|
|
8154
|
+
description: "Optional: only runs in this status.",
|
|
8155
|
+
},
|
|
8156
|
+
limit: { type: "integer", description: "Optional: runs per page (default 20)." },
|
|
8157
|
+
offset: { type: "integer", description: "Optional: runs to skip (default 0)." },
|
|
8158
|
+
},
|
|
8159
|
+
required: ["project_id"],
|
|
8160
|
+
},
|
|
8161
|
+
},
|
|
8162
|
+
{
|
|
8163
|
+
name: "ui_test_get",
|
|
8164
|
+
description:
|
|
8165
|
+
"READ ONE UI TEST RUN with all its findings (GET /api/v1/projects/:project_id/ui-tests/" +
|
|
8166
|
+
":id). The run is found by its id within the tenant. `role: :agent`, on this session's " +
|
|
8167
|
+
"own key. 404 for a run that is not this tenant's. Refused by the tool, sending " +
|
|
8168
|
+
"nothing: a blank project_id and a non-UUID `run_id`.",
|
|
8169
|
+
inputSchema: {
|
|
8170
|
+
type: "object",
|
|
8171
|
+
properties: {
|
|
8172
|
+
project_id: { type: "string", description: "The project's UUID, slug or repo name." },
|
|
8173
|
+
run_id: { type: "string", description: "The run's UUID." },
|
|
8174
|
+
},
|
|
8175
|
+
required: ["project_id", "run_id"],
|
|
8176
|
+
},
|
|
8177
|
+
},
|
|
8178
|
+
{
|
|
8179
|
+
name: "ui_test_add_finding",
|
|
8180
|
+
description:
|
|
8181
|
+
"RECORD A FINDING on an in-progress UI test run (POST /api/v1/projects/:project_id/" +
|
|
8182
|
+
"ui-tests/:id/findings): any of `step`, `severity` (critical, high, medium or low; " +
|
|
8183
|
+
"critical and high are counted on the run), `type`, `description`, `screenshot_path` " +
|
|
8184
|
+
"(counted as a screenshot) and `console_errors`. Answers the updated run. `role: " +
|
|
8185
|
+
":agent`, on this session's own key. 404 for a run that is not this tenant's, 422 when " +
|
|
8186
|
+
"the run is no longer in progress, 422 kb_project_no_work for a knowledge-only project. " +
|
|
8187
|
+
"Refused by the tool, sending nothing: a blank project_id, a non-UUID `run_id`, an " +
|
|
8188
|
+
"unknown severity (loopctl would store it uncounted) and a finding naming no field.",
|
|
8189
|
+
inputSchema: {
|
|
8190
|
+
type: "object",
|
|
8191
|
+
properties: {
|
|
8192
|
+
project_id: { type: "string", description: "The project's UUID, slug or repo name." },
|
|
8193
|
+
run_id: { type: "string", description: "The run's UUID." },
|
|
8194
|
+
step: { type: "string", description: "Optional: the guide step where it was found." },
|
|
8195
|
+
severity: {
|
|
8196
|
+
type: "string",
|
|
8197
|
+
enum: ["critical", "high", "medium", "low"],
|
|
8198
|
+
description: "Optional: the finding's severity.",
|
|
8199
|
+
},
|
|
8200
|
+
type: { type: "string", description: "Optional: the kind of finding (e.g. bug, ux)." },
|
|
8201
|
+
description: { type: "string", description: "Optional: what was observed." },
|
|
8202
|
+
screenshot_path: { type: "string", description: "Optional: where the screenshot is." },
|
|
8203
|
+
console_errors: {
|
|
8204
|
+
type: "array",
|
|
8205
|
+
items: { type: "string" },
|
|
8206
|
+
description: "Optional: browser console errors seen at this step.",
|
|
8207
|
+
},
|
|
8208
|
+
},
|
|
8209
|
+
required: ["project_id", "run_id"],
|
|
8210
|
+
},
|
|
8211
|
+
},
|
|
8212
|
+
{
|
|
8213
|
+
name: "ui_test_complete",
|
|
8214
|
+
description:
|
|
8215
|
+
"CLOSE A UI TEST RUN (POST /api/v1/projects/:project_id/ui-tests/:id/complete) with " +
|
|
8216
|
+
"`status` passed or failed and a `summary`; stamps completed_at; audited. `role: " +
|
|
8217
|
+
":agent`, on this session's own key. 404 for a run that is not this tenant's, 422 when " +
|
|
8218
|
+
"the run is already completed, when status is anything but passed or failed, or when " +
|
|
8219
|
+
"summary is missing; 422 kb_project_no_work for a knowledge-only project. Refused by " +
|
|
8220
|
+
"the tool, sending nothing: a blank project_id and a non-UUID `run_id`.",
|
|
8221
|
+
inputSchema: {
|
|
8222
|
+
type: "object",
|
|
8223
|
+
properties: {
|
|
8224
|
+
project_id: { type: "string", description: "The project's UUID, slug or repo name." },
|
|
8225
|
+
run_id: { type: "string", description: "The run's UUID." },
|
|
8226
|
+
status: { type: "string", enum: ["passed", "failed"], description: "The verdict." },
|
|
8227
|
+
summary: { type: "string", description: "What the run found." },
|
|
8228
|
+
},
|
|
8229
|
+
required: ["project_id", "run_id", "status", "summary"],
|
|
8230
|
+
},
|
|
8231
|
+
},
|
|
8232
|
+
{
|
|
8233
|
+
name: "project_export",
|
|
8234
|
+
description:
|
|
8235
|
+
"EXPORT A PROJECT'S WORK BREAKDOWN as JSON (GET /api/v1/projects/:id/export): " +
|
|
8236
|
+
"`export_metadata`, `project`, `epics` with their stories, `story_dependencies` and " +
|
|
8237
|
+
"`epic_dependencies`, the shape import_stories takes back (payload_path). Optional " +
|
|
8238
|
+
"`out_file` (an absolute path that must not exist yet, created 0600) writes the export " +
|
|
8239
|
+
"there and returns its counts instead of the whole document. `role: :agent`, on this " +
|
|
8240
|
+
"session's own key; not human-anchored. 404 for a project that is not this tenant's. " +
|
|
8241
|
+
"Refused by the tool, sending nothing: a `project_id` that is not a UUID (this route " +
|
|
8242
|
+
"does not resolve a slug or repo name and would answer 404; use resolve_project first) " +
|
|
8243
|
+
"and an out_file that is not absolute, exists already or sits in a missing directory.",
|
|
8244
|
+
inputSchema: {
|
|
8245
|
+
type: "object",
|
|
8246
|
+
properties: {
|
|
8247
|
+
project_id: { type: "string", description: "The project's UUID." },
|
|
8248
|
+
out_file: {
|
|
8249
|
+
type: "string",
|
|
8250
|
+
description: "Optional: absolute path, which must not exist yet, to write the export to.",
|
|
8251
|
+
},
|
|
8252
|
+
},
|
|
8253
|
+
required: ["project_id"],
|
|
8254
|
+
},
|
|
8255
|
+
},
|
|
8256
|
+
{
|
|
8257
|
+
name: "corpus_get",
|
|
8258
|
+
description:
|
|
8259
|
+
"READ ONE CORPUS (GET /api/v1/corpora/:id): its `mode`, `dim`, slug and project, plus " +
|
|
8260
|
+
"`status.has_sources`, whether anything is indexed in it yet. Per-source chunk counts " +
|
|
8261
|
+
"and hashes are corpus_status. Takes the corpus id or slug. `role: :agent`, on this " +
|
|
8262
|
+
"session's own key. 404 for a corpus that is not this tenant's. A blank `corpus_id` is " +
|
|
8263
|
+
"refused by the tool, sending nothing.",
|
|
8264
|
+
inputSchema: {
|
|
8265
|
+
type: "object",
|
|
8266
|
+
properties: {
|
|
8267
|
+
corpus_id: { type: "string", description: "The corpus id or slug." },
|
|
8268
|
+
},
|
|
8269
|
+
required: ["corpus_id"],
|
|
8270
|
+
},
|
|
8271
|
+
},
|
|
8272
|
+
{
|
|
8273
|
+
name: "knowledge_project_usage",
|
|
8274
|
+
description:
|
|
8275
|
+
"READ ONE PROJECT'S KNOWLEDGE-WIKI USAGE (GET /api/v1/knowledge/analytics/projects/:id/" +
|
|
8276
|
+
"usage): total reads, unique articles, unique callers, the access-type breakdown, the " +
|
|
8277
|
+
"top articles and a zero-filled daily read series. Optional `since_days` (1..365, " +
|
|
8278
|
+
"default 7) and `limit` on top articles (1..100, default 20). Needs an ORCHESTRATOR-role " +
|
|
8279
|
+
"key or above (`role: :orchestrator`), sent on LOOPCTL_ORCH_KEY (else LOOPCTL_USER_KEY) " +
|
|
8280
|
+
"verbatim when set, else the default key; an agent key is 403 insufficient_role. 404 " +
|
|
8281
|
+
"for a project that is not this tenant's. Refused by the tool, sending nothing: a " +
|
|
8282
|
+
"`project_id` that is not a UUID (this route does not resolve a slug and would answer " +
|
|
8283
|
+
"404), and a since_days or limit out of range (loopctl would clamp it silently).",
|
|
8284
|
+
inputSchema: {
|
|
8285
|
+
type: "object",
|
|
8286
|
+
properties: {
|
|
8287
|
+
project_id: { type: "string", description: "The project's UUID." },
|
|
8288
|
+
since_days: { type: "integer", description: "Optional: look-back window, 1..365 days." },
|
|
8289
|
+
limit: { type: "integer", description: "Optional: top articles to return, 1..100." },
|
|
8290
|
+
},
|
|
8291
|
+
required: ["project_id"],
|
|
8292
|
+
},
|
|
8293
|
+
},
|
|
8294
|
+
{
|
|
8295
|
+
name: "knowledge_pipeline",
|
|
8296
|
+
description:
|
|
8297
|
+
"READ THE SELF-LEARNING KNOWLEDGE PIPELINE STATUS (GET /api/v1/knowledge/pipeline): " +
|
|
8298
|
+
"pending extractions, the 20 most recent drafts from review findings, the publish rate " +
|
|
8299
|
+
"of review_finding articles, recent extraction errors, and whether automatic " +
|
|
8300
|
+
"extraction is enabled. Takes no parameter. Needs an ORCHESTRATOR-role key or above, " +
|
|
8301
|
+
"keyed as knowledge_project_usage; an agent key is 403 insufficient_role.",
|
|
8302
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
8303
|
+
},
|
|
8304
|
+
{
|
|
8305
|
+
name: "knowledge_link_create",
|
|
8306
|
+
description:
|
|
8307
|
+
"LINK TWO ARTICLES (POST /api/v1/article_links): `source_article_id`, " +
|
|
8308
|
+
"`target_article_id`, `relationship_type` (relates_to, derived_from, contradicts or " +
|
|
8309
|
+
"supersedes) and optional `metadata`. A supersedes link RETIRES its target (published " +
|
|
8310
|
+
"-> superseded, gone from every default published read), so it needs a USER-role key " +
|
|
8311
|
+
"and travels on LOOPCTL_USER_KEY verbatim when set (403 for an agent or orchestrator " +
|
|
8312
|
+
"key); every other type is `role: :agent` on this session's own key. potential_conflict " +
|
|
8313
|
+
"is system-generated only and is 422 here; to dispute a pair use " +
|
|
8314
|
+
"knowledge_assert_conflict. 404 for a target the key cannot see; 422 for a self-link or " +
|
|
8315
|
+
"a link that exists already. Refused by the tool, sending nothing: a non-UUID article " +
|
|
8316
|
+
"id, an unknown relationship_type and a metadata that is not an object.",
|
|
8317
|
+
inputSchema: {
|
|
8318
|
+
type: "object",
|
|
8319
|
+
properties: {
|
|
8320
|
+
source_article_id: { type: "string", description: "The linking article's UUID." },
|
|
8321
|
+
target_article_id: { type: "string", description: "The linked article's UUID." },
|
|
8322
|
+
relationship_type: {
|
|
8323
|
+
type: "string",
|
|
8324
|
+
enum: ["relates_to", "derived_from", "contradicts", "supersedes"],
|
|
8325
|
+
description: "How the source relates to the target.",
|
|
8326
|
+
},
|
|
8327
|
+
metadata: { type: "object", description: "Optional: free-form link metadata." },
|
|
8328
|
+
},
|
|
8329
|
+
required: ["source_article_id", "target_article_id", "relationship_type"],
|
|
8330
|
+
},
|
|
8331
|
+
},
|
|
8332
|
+
{
|
|
8333
|
+
name: "knowledge_link_delete",
|
|
8334
|
+
description:
|
|
8335
|
+
"DELETE AN ARTICLE LINK (DELETE /api/v1/article_links/:id); audited; answers 204. Needs " +
|
|
8336
|
+
"a USER-role key (`role: :user` with the hierarchy), sent on LOOPCTL_USER_KEY verbatim " +
|
|
8337
|
+
"when set, else the default key; an agent or orchestrator key is 403 insufficient_role. " +
|
|
8338
|
+
"404 for a link that is not this tenant's. Read link ids with knowledge_links. A " +
|
|
8339
|
+
"non-UUID `link_id` is refused by the tool, sending nothing.",
|
|
8340
|
+
inputSchema: {
|
|
8341
|
+
type: "object",
|
|
8342
|
+
properties: {
|
|
8343
|
+
link_id: { type: "string", description: "The link's UUID." },
|
|
8344
|
+
},
|
|
8345
|
+
required: ["link_id"],
|
|
8346
|
+
},
|
|
8347
|
+
},
|
|
8348
|
+
{
|
|
8349
|
+
name: "knowledge_links",
|
|
8350
|
+
description:
|
|
8351
|
+
"LIST AN ARTICLE'S LINKS (GET /api/v1/articles/:article_id/links): outgoing and " +
|
|
8352
|
+
"incoming, each with its id, relationship_type and the linked article, scoped to what " +
|
|
8353
|
+
"this key may see. `role: :agent`, on this session's own key. A non-UUID `article_id` " +
|
|
8354
|
+
"is refused by the tool, sending nothing.",
|
|
8355
|
+
inputSchema: {
|
|
8356
|
+
type: "object",
|
|
8357
|
+
properties: {
|
|
8358
|
+
article_id: { type: "string", description: "The article's UUID." },
|
|
8359
|
+
},
|
|
8360
|
+
required: ["article_id"],
|
|
8361
|
+
},
|
|
8362
|
+
},
|
|
7821
8363
|
{
|
|
7822
8364
|
name: "knowledge_consolidation",
|
|
7823
8365
|
description:
|
|
@@ -7888,23 +8430,36 @@ const TOOLS = [
|
|
|
7888
8430
|
{
|
|
7889
8431
|
name: "knowledge_export",
|
|
7890
8432
|
description:
|
|
7891
|
-
"
|
|
7892
|
-
"
|
|
7893
|
-
"
|
|
8433
|
+
"DOWNLOAD THE PUBLISHED KNOWLEDGE WIKI as an Obsidian-layout gzipped tar " +
|
|
8434
|
+
"(GET /api/v1/knowledge/export, or GET /api/v1/projects/:project_id/knowledge/export " +
|
|
8435
|
+
"with `project_id`, which adds that project's articles to the tenant-wide ones): one " +
|
|
8436
|
+
"`{category}/{slug}-{short_id}.md` per article with YAML frontmatter and [[wikilinks]], " +
|
|
8437
|
+
"plus a root `_index.md`. No article-count cap. The archive is binary, so it is written " +
|
|
8438
|
+
"to `out_file` (an absolute path that must not exist yet, created 0600 before the " +
|
|
8439
|
+
"request) and the result names it with its uncompressed size; extract with tar -xzf. " +
|
|
8440
|
+
"FAIL-CLOSED: loopctl ends a failed export without the gzip trailer and tar " +
|
|
8441
|
+
"end-of-archive, so the tool decompresses the saved file to the end and DELETES it, " +
|
|
8442
|
+
"reporting truncation, when either is missing or the download breaks off. For the OKF " +
|
|
8443
|
+
"interchange bundle use knowledge_okf_export. Needs a USER-role key (`role: :user` " +
|
|
8444
|
+
"with the hierarchy), sent on LOOPCTL_USER_KEY verbatim when set, else the default " +
|
|
8445
|
+
"key; an agent or orchestrator key is 403 insufficient_role. 422 for a project_id that " +
|
|
8446
|
+
"names no project; 429 over the concurrent-export cap. Refused by the tool, sending " +
|
|
8447
|
+
"nothing: a blank project_id and an out_file that is not absolute, exists already or " +
|
|
8448
|
+
"sits in a missing directory.",
|
|
7894
8449
|
inputSchema: {
|
|
7895
8450
|
type: "object",
|
|
7896
8451
|
properties: {
|
|
7897
8452
|
project_id: {
|
|
7898
8453
|
type: "string",
|
|
7899
|
-
description: "Optional:
|
|
8454
|
+
description: "Optional: the project (UUID, slug or repo name) whose articles to add.",
|
|
7900
8455
|
},
|
|
7901
|
-
|
|
8456
|
+
out_file: {
|
|
7902
8457
|
type: "string",
|
|
7903
|
-
|
|
7904
|
-
|
|
8458
|
+
description:
|
|
8459
|
+
"REQUIRED. Absolute path, which must not exist yet, the .tar.gz is written to.",
|
|
7905
8460
|
},
|
|
7906
8461
|
},
|
|
7907
|
-
required: [],
|
|
8462
|
+
required: ["out_file"],
|
|
7908
8463
|
},
|
|
7909
8464
|
},
|
|
7910
8465
|
{
|
|
@@ -8892,6 +9447,18 @@ const TOOLS = [
|
|
|
8892
9447
|
required: [],
|
|
8893
9448
|
},
|
|
8894
9449
|
},
|
|
9450
|
+
{
|
|
9451
|
+
name: "api_index",
|
|
9452
|
+
description:
|
|
9453
|
+
"READ THE SERVER'S WELCOME DOCUMENT (GET /api/v1, loopctl #872): its name, the app " +
|
|
9454
|
+
"version the running release was built as, and the paths of its other entry points " +
|
|
9455
|
+
"(OpenAPI docs, Swagger UI, health, the /.well-known/loopctl discovery document, the " +
|
|
9456
|
+
"route list, the wiki) plus this MCP server's npm package. Public: sent with NO key, so " +
|
|
9457
|
+
"it answers when a key is missing or no longer authenticates. Takes no arguments and " +
|
|
9458
|
+
"refuses nothing; an error is the network's or the server's. For the full route table " +
|
|
9459
|
+
"use list_routes; for whether this MCP package is older than the deployment, mcp_version.",
|
|
9460
|
+
inputSchema: { type: "object", properties: {}, required: [] },
|
|
9461
|
+
},
|
|
8895
9462
|
{
|
|
8896
9463
|
name: "mcp_version",
|
|
8897
9464
|
description:
|
|
@@ -10556,6 +11123,287 @@ const TOOLS = [
|
|
|
10556
11123
|
required: ["webhook_id"],
|
|
10557
11124
|
},
|
|
10558
11125
|
},
|
|
11126
|
+
{
|
|
11127
|
+
name: "skill_create",
|
|
11128
|
+
description:
|
|
11129
|
+
"CREATE A VERSIONED SKILL (POST /api/v1/skills): `name` (unique per tenant and project, " +
|
|
11130
|
+
"1..255 characters) and `prompt_text` (the text of version 1), optional `description`, " +
|
|
11131
|
+
"`project_id` (UUID, slug or repo name; omitted = tenant-wide) and `metadata`. Answers " +
|
|
11132
|
+
"the skill and its version 1. Needs a USER-role key (`role: :user` with the hierarchy), " +
|
|
11133
|
+
"sent on LOOPCTL_USER_KEY verbatim when set, else the default key; an agent or " +
|
|
11134
|
+
"orchestrator key is 403 insufficient_role, and an agent-rooted tenant is 403 " +
|
|
11135
|
+
"custody_tier_required. 422 for a name already taken, a blank prompt or a project_id that " +
|
|
11136
|
+
"resolves to no project; 500 audit_write_failed when the audit entry is refused (nothing is written). " +
|
|
11137
|
+
"Refused by the tool, sending nothing: a blank name or prompt_text, a non-string " +
|
|
11138
|
+
"description, a blank project_id and non-object metadata.",
|
|
11139
|
+
inputSchema: {
|
|
11140
|
+
type: "object",
|
|
11141
|
+
properties: {
|
|
11142
|
+
name: { type: "string", description: "The skill's name, e.g. \"loopctl:review\"." },
|
|
11143
|
+
prompt_text: { type: "string", description: "The prompt text of version 1." },
|
|
11144
|
+
description: { type: "string", description: "Optional: what the skill does." },
|
|
11145
|
+
project_id: {
|
|
11146
|
+
type: "string",
|
|
11147
|
+
description: "Optional: the project (UUID, slug or repo name); omitted = tenant-wide.",
|
|
11148
|
+
},
|
|
11149
|
+
metadata: { type: "object", description: "Optional: free-form metadata." },
|
|
11150
|
+
},
|
|
11151
|
+
required: ["name", "prompt_text"],
|
|
11152
|
+
},
|
|
11153
|
+
},
|
|
11154
|
+
{
|
|
11155
|
+
name: "skill_list",
|
|
11156
|
+
description:
|
|
11157
|
+
"LIST THE TENANT'S SKILLS (GET /api/v1/skills), ordered by name then id, with `meta` " +
|
|
11158
|
+
"paging. Filters `project_id` (UUID, slug or repo name), `status` (active, archived; " +
|
|
11159
|
+
"archived skills are listed unless filtered out) and `name` (case-insensitive " +
|
|
11160
|
+
"substring); `page` and `page_size` (1..100, default 20). Any key: `role: :agent`, sent " +
|
|
11161
|
+
"as the session's own. 422 for a project naming none. Refused by the tool, sending " +
|
|
11162
|
+
"nothing: a bad page or page_size (loopctl would clamp or drop it), an unknown status, " +
|
|
11163
|
+
"and a blank project_id or name.",
|
|
11164
|
+
inputSchema: {
|
|
11165
|
+
type: "object",
|
|
11166
|
+
properties: {
|
|
11167
|
+
project_id: { type: "string", description: "Optional project filter." },
|
|
11168
|
+
status: {
|
|
11169
|
+
type: "string",
|
|
11170
|
+
enum: ["active", "archived"],
|
|
11171
|
+
description: "Optional status filter.",
|
|
11172
|
+
},
|
|
11173
|
+
name: { type: "string", description: "Optional case-insensitive name substring." },
|
|
11174
|
+
page: { type: "integer", description: "Optional page number (default 1)." },
|
|
11175
|
+
page_size: { type: "integer", description: "Optional page size, 1..100 (default 20)." },
|
|
11176
|
+
},
|
|
11177
|
+
required: [],
|
|
11178
|
+
},
|
|
11179
|
+
},
|
|
11180
|
+
{
|
|
11181
|
+
name: "skill_get",
|
|
11182
|
+
description:
|
|
11183
|
+
"READ ONE SKILL (GET /api/v1/skills/:id) with `current_prompt`, the prompt text of its " +
|
|
11184
|
+
"current version. Any key: `role: :agent`, sent as the session's own. 404 for a skill " +
|
|
11185
|
+
"that is not this tenant's. A non-UUID `skill_id` is refused by the tool, sending " +
|
|
11186
|
+
"nothing.",
|
|
11187
|
+
inputSchema: {
|
|
11188
|
+
type: "object",
|
|
11189
|
+
properties: {
|
|
11190
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11191
|
+
},
|
|
11192
|
+
required: ["skill_id"],
|
|
11193
|
+
},
|
|
11194
|
+
},
|
|
11195
|
+
{
|
|
11196
|
+
name: "skill_update",
|
|
11197
|
+
description:
|
|
11198
|
+
"EDIT A SKILL'S METADATA (PATCH /api/v1/skills/:id): any of `description`, `status` " +
|
|
11199
|
+
"(active, archived; active un-archives) and `metadata` (replaces the map). The prompt " +
|
|
11200
|
+
"is NOT editable here: skill_version_create adds a version. Audited. Needs a USER-role " +
|
|
11201
|
+
"key, keyed as skill_create; an agent or orchestrator key is 403 insufficient_role, and " +
|
|
11202
|
+
"an agent-rooted tenant is 403 custody_tier_required. 404 for a skill that is not this " +
|
|
11203
|
+
"tenant's; 422 for an invalid status; 500 audit_write_failed when the audit entry is " +
|
|
11204
|
+
"refused (the update is rolled back). Refused by the tool, sending nothing: a non-UUID " +
|
|
11205
|
+
"`skill_id`, a call naming no field or a null field (loopctl drops nulls and would " +
|
|
11206
|
+
"answer 200 unchanged), an unknown status, a non-string description and non-object " +
|
|
11207
|
+
"metadata.",
|
|
11208
|
+
inputSchema: {
|
|
11209
|
+
type: "object",
|
|
11210
|
+
properties: {
|
|
11211
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11212
|
+
description: { type: "string", description: "Optional: the new description." },
|
|
11213
|
+
status: {
|
|
11214
|
+
type: "string",
|
|
11215
|
+
enum: ["active", "archived"],
|
|
11216
|
+
description: "Optional: active or archived.",
|
|
11217
|
+
},
|
|
11218
|
+
metadata: { type: "object", description: "Optional: the new metadata map." },
|
|
11219
|
+
},
|
|
11220
|
+
required: ["skill_id"],
|
|
11221
|
+
},
|
|
11222
|
+
},
|
|
11223
|
+
{
|
|
11224
|
+
name: "skill_delete",
|
|
11225
|
+
description:
|
|
11226
|
+
"ARCHIVE A SKILL (DELETE /api/v1/skills/:id): a soft delete that sets its status to " +
|
|
11227
|
+
"archived and answers the skill; its versions and results stay, and skill_update " +
|
|
11228
|
+
"with status active restores it. Audited. Needs a USER-role key, keyed as " +
|
|
11229
|
+
"skill_create; an agent or orchestrator key is 403 insufficient_role, and an " +
|
|
11230
|
+
"agent-rooted tenant is 403 custody_tier_required. 404 for a skill that is not this " +
|
|
11231
|
+
"tenant's; 500 audit_write_failed when the audit entry is refused. A non-UUID " +
|
|
11232
|
+
"`skill_id` is refused by the tool, sending nothing.",
|
|
11233
|
+
inputSchema: {
|
|
11234
|
+
type: "object",
|
|
11235
|
+
properties: {
|
|
11236
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11237
|
+
},
|
|
11238
|
+
required: ["skill_id"],
|
|
11239
|
+
},
|
|
11240
|
+
},
|
|
11241
|
+
{
|
|
11242
|
+
name: "skill_import",
|
|
11243
|
+
description:
|
|
11244
|
+
"BULK IMPORT SKILLS (POST /api/v1/skills/import): `skills`, a list of `{name, " +
|
|
11245
|
+
"prompt_text, description?, project_id?}`. A new name creates the skill at version 1; " +
|
|
11246
|
+
"an existing name gets a new version when its prompt differs (trimmed) and is left " +
|
|
11247
|
+
"unchanged when it does not. Answers `{total, created, updated, unchanged}`. ALL OR " +
|
|
11248
|
+
"NOTHING: one bad item rolls the whole import back. Each item's project_id must be a " +
|
|
11249
|
+
"UUID (no slug resolution here): 422 naming `skills[i]` otherwise. Needs a USER-role " +
|
|
11250
|
+
"key, keyed as skill_create; an agent or orchestrator key is 403 insufficient_role, and " +
|
|
11251
|
+
"an agent-rooted tenant is 403 custody_tier_required. 422 for a blank name or prompt; " +
|
|
11252
|
+
"500 audit_write_failed when the audit entry is refused. Refused by the tool, sending " +
|
|
11253
|
+
"nothing: an empty or non-list `skills` and an item that is not an object.",
|
|
11254
|
+
inputSchema: {
|
|
11255
|
+
type: "object",
|
|
11256
|
+
properties: {
|
|
11257
|
+
skills: {
|
|
11258
|
+
type: "array",
|
|
11259
|
+
items: { type: "object" },
|
|
11260
|
+
description: "The skills: each {name, prompt_text, description?, project_id? (UUID)}.",
|
|
11261
|
+
},
|
|
11262
|
+
},
|
|
11263
|
+
required: ["skills"],
|
|
11264
|
+
},
|
|
11265
|
+
},
|
|
11266
|
+
{
|
|
11267
|
+
name: "skill_version_create",
|
|
11268
|
+
description:
|
|
11269
|
+
"ADD A VERSION TO A SKILL (POST /api/v1/skills/:id/versions): `prompt_text` (the full " +
|
|
11270
|
+
"new text), optional `changelog` and `created_by` (a free-text label; defaults to the " +
|
|
11271
|
+
"key's actor label). The version number is the next one and becomes the skill's " +
|
|
11272
|
+
"current_version. Audited. Needs a USER-role key, keyed as skill_create; an agent or " +
|
|
11273
|
+
"orchestrator key is 403 insufficient_role, and an agent-rooted tenant is 403 " +
|
|
11274
|
+
"custody_tier_required. 404 for a skill that is not this tenant's; 422 for a blank " +
|
|
11275
|
+
"prompt; 500 audit_write_failed when the audit entry is refused. Refused by the tool, " +
|
|
11276
|
+
"sending nothing: a non-UUID `skill_id`, a blank prompt_text and a non-string changelog " +
|
|
11277
|
+
"or created_by.",
|
|
11278
|
+
inputSchema: {
|
|
11279
|
+
type: "object",
|
|
11280
|
+
properties: {
|
|
11281
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11282
|
+
prompt_text: { type: "string", description: "The full prompt text of the new version." },
|
|
11283
|
+
changelog: { type: "string", description: "Optional: what changed." },
|
|
11284
|
+
created_by: { type: "string", description: "Optional: who wrote it (a label)." },
|
|
11285
|
+
},
|
|
11286
|
+
required: ["skill_id", "prompt_text"],
|
|
11287
|
+
},
|
|
11288
|
+
},
|
|
11289
|
+
{
|
|
11290
|
+
name: "skill_versions",
|
|
11291
|
+
description:
|
|
11292
|
+
"LIST A SKILL'S VERSIONS (GET /api/v1/skills/:id/versions), oldest first: each with " +
|
|
11293
|
+
"`version`, `changelog`, `created_by` and `inserted_at` (no prompt text; " +
|
|
11294
|
+
"skill_version_get has it). Any key: `role: :agent`, sent as the session's own. 404 " +
|
|
11295
|
+
"for a skill that is not this tenant's. A non-UUID `skill_id` is refused by the tool, " +
|
|
11296
|
+
"sending nothing.",
|
|
11297
|
+
inputSchema: {
|
|
11298
|
+
type: "object",
|
|
11299
|
+
properties: {
|
|
11300
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11301
|
+
},
|
|
11302
|
+
required: ["skill_id"],
|
|
11303
|
+
},
|
|
11304
|
+
},
|
|
11305
|
+
{
|
|
11306
|
+
name: "skill_version_get",
|
|
11307
|
+
description:
|
|
11308
|
+
"READ ONE SKILL VERSION (GET /api/v1/skills/:id/versions/:version): its prompt text, " +
|
|
11309
|
+
"changelog and metadata, plus a `cost_summary` of the token usage reported against it. " +
|
|
11310
|
+
"Any key: `role: :agent`, sent as the session's own. 404 for a skill or version that is " +
|
|
11311
|
+
"not this tenant's. Refused by the tool, sending nothing: a non-UUID `skill_id` and a " +
|
|
11312
|
+
"`version` that is not a positive integer (loopctl parses it leniently, so \"2abc\" " +
|
|
11313
|
+
"would read as 2).",
|
|
11314
|
+
inputSchema: {
|
|
11315
|
+
type: "object",
|
|
11316
|
+
properties: {
|
|
11317
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11318
|
+
version: { type: "integer", description: "The version number (1 or more)." },
|
|
11319
|
+
},
|
|
11320
|
+
required: ["skill_id", "version"],
|
|
11321
|
+
},
|
|
11322
|
+
},
|
|
11323
|
+
{
|
|
11324
|
+
name: "skill_stats",
|
|
11325
|
+
description:
|
|
11326
|
+
"READ A SKILL'S PERFORMANCE BY VERSION (GET /api/v1/skills/:id/stats): per version, " +
|
|
11327
|
+
"the results recorded (skill_result_report) with pass, fail and partial counts of " +
|
|
11328
|
+
"their verification results, stories reviewed, and averages of the metrics " +
|
|
11329
|
+
"findings_count, false_positive_count and iteration. Any key: `role: :agent`, sent as " +
|
|
11330
|
+
"the session's own. 404 for a skill that is not this tenant's. A non-UUID `skill_id` " +
|
|
11331
|
+
"is refused by the tool, sending nothing.",
|
|
11332
|
+
inputSchema: {
|
|
11333
|
+
type: "object",
|
|
11334
|
+
properties: {
|
|
11335
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11336
|
+
},
|
|
11337
|
+
required: ["skill_id"],
|
|
11338
|
+
},
|
|
11339
|
+
},
|
|
11340
|
+
{
|
|
11341
|
+
name: "skill_version_results",
|
|
11342
|
+
description:
|
|
11343
|
+
"LIST THE RESULTS RECORDED FOR ONE SKILL VERSION " +
|
|
11344
|
+
"(GET /api/v1/skills/:id/versions/:version/results), newest first: each with " +
|
|
11345
|
+
"`verification_result_id`, `story_id` and `metrics`. Any key: `role: :agent`, sent as " +
|
|
11346
|
+
"the session's own. 404 for a skill or version that is not this tenant's. Refused by " +
|
|
11347
|
+
"the tool, sending nothing: a non-UUID `skill_id` and a `version` that is not a " +
|
|
11348
|
+
"positive integer.",
|
|
11349
|
+
inputSchema: {
|
|
11350
|
+
type: "object",
|
|
11351
|
+
properties: {
|
|
11352
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11353
|
+
version: { type: "integer", description: "The version number (1 or more)." },
|
|
11354
|
+
},
|
|
11355
|
+
required: ["skill_id", "version"],
|
|
11356
|
+
},
|
|
11357
|
+
},
|
|
11358
|
+
{
|
|
11359
|
+
name: "skill_cost_performance",
|
|
11360
|
+
description:
|
|
11361
|
+
"READ A SKILL'S COST PER VERSION (GET /api/v1/skills/:id/cost-performance): per " +
|
|
11362
|
+
"version with token usage reported against it, invocations, total and average cost " +
|
|
11363
|
+
"per story (millicents), verification rate, cost change against the previous version " +
|
|
11364
|
+
"and a `cost_regression` flag. Needs a USER-role key (`role: :user` with the " +
|
|
11365
|
+
"hierarchy; not human-anchored), keyed as skill_create; an agent or orchestrator key " +
|
|
11366
|
+
"is 403 insufficient_role. 404 for a skill that is not this tenant's. A non-UUID " +
|
|
11367
|
+
"`skill_id` is refused by the tool, sending nothing.",
|
|
11368
|
+
inputSchema: {
|
|
11369
|
+
type: "object",
|
|
11370
|
+
properties: {
|
|
11371
|
+
skill_id: { type: "string", description: "The UUID of the skill." },
|
|
11372
|
+
},
|
|
11373
|
+
required: ["skill_id"],
|
|
11374
|
+
},
|
|
11375
|
+
},
|
|
11376
|
+
{
|
|
11377
|
+
name: "skill_result_report",
|
|
11378
|
+
description:
|
|
11379
|
+
"RECORD A SKILL RESULT (POST /api/v1/skill_results): links a verification result to the " +
|
|
11380
|
+
"skill version that produced it, for skill_stats and skill_version_results. " +
|
|
11381
|
+
"`skill_version_id`, `verification_result_id` and `story_id` (all UUIDs, all required: " +
|
|
11382
|
+
"loopctl refuses a result without a verification) and optional `metrics` (an object; " +
|
|
11383
|
+
"skill_stats averages findings_count, false_positive_count and iteration). Audited. " +
|
|
11384
|
+
"Needs an ORCHESTRATOR key: `exact_role: [:orchestrator, :superadmin]`, so a user key " +
|
|
11385
|
+
"is 403 insufficient_role like an agent key. Sent on LOOPCTL_ORCH_KEY verbatim when " +
|
|
11386
|
+
"set, else LOOPCTL_API_KEY. 403 custody_tier_required on an agent-rooted tenant; 422 " +
|
|
11387
|
+
"for an id naming no row (a foreign-key refusal); 500 audit_write_failed when the audit entry is " +
|
|
11388
|
+
"refused. Refused by the tool, sending nothing: a missing or non-UUID id and " +
|
|
11389
|
+
"non-object metrics.",
|
|
11390
|
+
inputSchema: {
|
|
11391
|
+
type: "object",
|
|
11392
|
+
properties: {
|
|
11393
|
+
skill_version_id: { type: "string", description: "The UUID of the skill version." },
|
|
11394
|
+
verification_result_id: {
|
|
11395
|
+
type: "string",
|
|
11396
|
+
description: "The UUID of the verification result.",
|
|
11397
|
+
},
|
|
11398
|
+
story_id: { type: "string", description: "The UUID of the story." },
|
|
11399
|
+
metrics: {
|
|
11400
|
+
type: "object",
|
|
11401
|
+
description: "Optional: e.g. {findings_count, false_positive_count, iteration}.",
|
|
11402
|
+
},
|
|
11403
|
+
},
|
|
11404
|
+
required: ["skill_version_id", "verification_result_id", "story_id"],
|
|
11405
|
+
},
|
|
11406
|
+
},
|
|
10559
11407
|
{
|
|
10560
11408
|
name: "token_budget_list",
|
|
10561
11409
|
description:
|
|
@@ -13876,11 +14724,62 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
13876
14724
|
case "knowledge_lint":
|
|
13877
14725
|
return await knowledgeLint(args);
|
|
13878
14726
|
|
|
14727
|
+
case "entity_list":
|
|
14728
|
+
return await entityListTool(args);
|
|
14729
|
+
|
|
14730
|
+
case "entity_get":
|
|
14731
|
+
return await entityGetTool(args);
|
|
14732
|
+
|
|
14733
|
+
case "entity_create":
|
|
14734
|
+
return await entityCreateTool(args);
|
|
14735
|
+
|
|
14736
|
+
case "entity_update":
|
|
14737
|
+
return await entityUpdateTool(args);
|
|
14738
|
+
|
|
14739
|
+
case "entity_delete":
|
|
14740
|
+
return await entityDeleteTool(args);
|
|
14741
|
+
|
|
14742
|
+
case "ui_test_start":
|
|
14743
|
+
return await uiTestStartTool(args);
|
|
14744
|
+
|
|
14745
|
+
case "ui_test_list":
|
|
14746
|
+
return await uiTestListTool(args);
|
|
14747
|
+
|
|
14748
|
+
case "ui_test_get":
|
|
14749
|
+
return await uiTestGetTool(args);
|
|
14750
|
+
|
|
14751
|
+
case "ui_test_add_finding":
|
|
14752
|
+
return await uiTestAddFindingTool(args);
|
|
14753
|
+
|
|
14754
|
+
case "ui_test_complete":
|
|
14755
|
+
return await uiTestCompleteTool(args);
|
|
14756
|
+
|
|
14757
|
+
case "project_export":
|
|
14758
|
+
return await projectExportTool(args);
|
|
14759
|
+
|
|
14760
|
+
case "corpus_get":
|
|
14761
|
+
return await corpusGetTool(args);
|
|
14762
|
+
|
|
14763
|
+
case "knowledge_project_usage":
|
|
14764
|
+
return await knowledgeProjectUsageTool(args);
|
|
14765
|
+
|
|
14766
|
+
case "knowledge_pipeline":
|
|
14767
|
+
return await knowledgePipelineTool(args);
|
|
14768
|
+
|
|
14769
|
+
case "knowledge_link_create":
|
|
14770
|
+
return await knowledgeLinkCreateTool(args);
|
|
14771
|
+
|
|
14772
|
+
case "knowledge_link_delete":
|
|
14773
|
+
return await knowledgeLinkDeleteTool(args);
|
|
14774
|
+
|
|
14775
|
+
case "knowledge_links":
|
|
14776
|
+
return await knowledgeLinksTool(args);
|
|
14777
|
+
|
|
13879
14778
|
case "knowledge_consolidation":
|
|
13880
14779
|
return await knowledgeConsolidation(args);
|
|
13881
14780
|
|
|
13882
14781
|
case "knowledge_export":
|
|
13883
|
-
return await
|
|
14782
|
+
return await knowledgeExportTool(args);
|
|
13884
14783
|
|
|
13885
14784
|
case "knowledge_okf_export":
|
|
13886
14785
|
return await knowledgeOkfExport(args);
|
|
@@ -13972,6 +14871,9 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
13972
14871
|
case "list_routes":
|
|
13973
14872
|
return await listRoutes();
|
|
13974
14873
|
|
|
14874
|
+
case "api_index":
|
|
14875
|
+
return await apiIndexTool(args);
|
|
14876
|
+
|
|
13975
14877
|
case "mcp_version":
|
|
13976
14878
|
return await mcpVersion(args);
|
|
13977
14879
|
|
|
@@ -14106,6 +15008,32 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
14106
15008
|
return await webhookTestTool(args);
|
|
14107
15009
|
case "webhook_deliveries":
|
|
14108
15010
|
return await webhookDeliveriesTool(args);
|
|
15011
|
+
case "skill_create":
|
|
15012
|
+
return await skillCreateTool(args);
|
|
15013
|
+
case "skill_list":
|
|
15014
|
+
return await skillListTool(args);
|
|
15015
|
+
case "skill_get":
|
|
15016
|
+
return await skillGetTool(args);
|
|
15017
|
+
case "skill_update":
|
|
15018
|
+
return await skillUpdateTool(args);
|
|
15019
|
+
case "skill_delete":
|
|
15020
|
+
return await skillDeleteTool(args);
|
|
15021
|
+
case "skill_import":
|
|
15022
|
+
return await skillImportTool(args);
|
|
15023
|
+
case "skill_version_create":
|
|
15024
|
+
return await skillVersionCreateTool(args);
|
|
15025
|
+
case "skill_versions":
|
|
15026
|
+
return await skillVersionsTool(args);
|
|
15027
|
+
case "skill_version_get":
|
|
15028
|
+
return await skillVersionGetTool(args);
|
|
15029
|
+
case "skill_stats":
|
|
15030
|
+
return await skillStatsTool(args);
|
|
15031
|
+
case "skill_version_results":
|
|
15032
|
+
return await skillVersionResultsTool(args);
|
|
15033
|
+
case "skill_cost_performance":
|
|
15034
|
+
return await skillCostPerformanceTool(args);
|
|
15035
|
+
case "skill_result_report":
|
|
15036
|
+
return await skillResultReportTool(args);
|
|
14109
15037
|
case "token_budget_list":
|
|
14110
15038
|
return await tokenBudgetListTool(args);
|
|
14111
15039
|
case "token_budget_get":
|