@meltstudio/meltctl 4.166.1 → 4.168.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/index.js +32 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var CLI_VERSION;
|
|
|
14
14
|
var init_version = __esm({
|
|
15
15
|
"src/utils/version.ts"() {
|
|
16
16
|
"use strict";
|
|
17
|
-
CLI_VERSION = "4.
|
|
17
|
+
CLI_VERSION = "4.168.0";
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
|
|
@@ -3292,6 +3292,7 @@ import { z as z6 } from "zod";
|
|
|
3292
3292
|
import { z as z7 } from "zod";
|
|
3293
3293
|
import { z as z8 } from "zod";
|
|
3294
3294
|
import { z as z9 } from "zod";
|
|
3295
|
+
import { z as z10 } from "zod";
|
|
3295
3296
|
function createAuditsResource2(config) {
|
|
3296
3297
|
return {
|
|
3297
3298
|
async submit(input3) {
|
|
@@ -5400,6 +5401,35 @@ function registerPortfolioStatusTools(server, getClient2) {
|
|
|
5400
5401
|
withClientArgs(getClient2, getMyPortfolioStatus)
|
|
5401
5402
|
);
|
|
5402
5403
|
}
|
|
5404
|
+
async function listFindings(client, input3 = {}) {
|
|
5405
|
+
return safe(() => client.findings.list(input3));
|
|
5406
|
+
}
|
|
5407
|
+
var listFindingsInputSchema = z10.object({
|
|
5408
|
+
projectId: z10.number().int().positive().optional(),
|
|
5409
|
+
repository: z10.string().optional(),
|
|
5410
|
+
status: z10.enum(["pass", "warning", "missing", "na"]).optional(),
|
|
5411
|
+
severity: z10.enum(["critical", "high", "medium", "low"]).optional(),
|
|
5412
|
+
auditType: z10.enum(["audit", "ux-audit", "security-audit"]).optional(),
|
|
5413
|
+
limit: z10.number().int().positive().max(500).optional()
|
|
5414
|
+
});
|
|
5415
|
+
function registerFindingsTools(server, getClient2) {
|
|
5416
|
+
server.registerTool(
|
|
5417
|
+
"list_findings",
|
|
5418
|
+
{
|
|
5419
|
+
title: "List audit findings",
|
|
5420
|
+
description: "Lists code/security/UX audit findings. Each finding carries its check code, category, status (pass/warning/missing/na), severity (critical/high/medium/low), repository, and evidence (file/symbol) so you can see exactly what to fix. Filter by projectId, repository, status, severity, or auditType. Results are ordered worst-first (missing > warning, then critical > high > \u2026). Use this to answer 'what's open on the app I'm working on?' \u2014 pass status='missing' or severity='critical' to focus on what matters. Read-only and open to any @meltstudio.co user.",
|
|
5421
|
+
inputSchema: {
|
|
5422
|
+
projectId: z10.number().int().positive().optional().describe("Strapi project id \u2014 scopes findings to that project\u2019s repos."),
|
|
5423
|
+
repository: z10.string().optional().describe("Full repo slug, e.g. 'MeltStudio/atlas-api'. Scopes to a single repo."),
|
|
5424
|
+
status: z10.enum(["pass", "warning", "missing", "na"]).optional().describe("Filter by check status. 'missing' = the check failed outright."),
|
|
5425
|
+
severity: z10.enum(["critical", "high", "medium", "low"]).optional(),
|
|
5426
|
+
auditType: z10.enum(["audit", "ux-audit", "security-audit"]).optional(),
|
|
5427
|
+
limit: z10.number().int().positive().max(500).optional()
|
|
5428
|
+
}
|
|
5429
|
+
},
|
|
5430
|
+
withClientArgs(getClient2, listFindings)
|
|
5431
|
+
);
|
|
5432
|
+
}
|
|
5403
5433
|
var VERSION = "0.0.0";
|
|
5404
5434
|
function createMcpServer(clientOrProvider) {
|
|
5405
5435
|
const getClient2 = typeof clientOrProvider === "function" ? clientOrProvider : () => Promise.resolve(clientOrProvider);
|
|
@@ -5415,6 +5445,7 @@ function createMcpServer(clientOrProvider) {
|
|
|
5415
5445
|
registerBoardAuditTools(server, getClient2);
|
|
5416
5446
|
registerProjectHealthTools(server, getClient2);
|
|
5417
5447
|
registerPortfolioStatusTools(server, getClient2);
|
|
5448
|
+
registerFindingsTools(server, getClient2);
|
|
5418
5449
|
return server;
|
|
5419
5450
|
}
|
|
5420
5451
|
async function startServer() {
|
package/package.json
CHANGED