scorecard-ai-mcp 1.0.0-alpha.8 → 1.0.0-alpha.9
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/dynamic-tools.d.mts +1 -1
- package/dynamic-tools.d.mts.map +1 -1
- package/dynamic-tools.d.ts +1 -1
- package/dynamic-tools.d.ts.map +1 -1
- package/dynamic-tools.js +5 -4
- package/dynamic-tools.js.map +1 -1
- package/dynamic-tools.mjs +5 -4
- package/dynamic-tools.mjs.map +1 -1
- package/package.json +2 -2
- package/server.d.mts +1 -6
- package/server.d.mts.map +1 -1
- package/server.d.ts +1 -6
- package/server.d.ts.map +1 -1
- package/server.js +3 -11
- package/server.js.map +1 -1
- package/server.mjs +3 -11
- package/server.mjs.map +1 -1
- package/src/dynamic-tools.ts +13 -7
- package/src/server.ts +3 -11
- package/src/tools/index.ts +3 -16
- package/src/tools/projects/create-projects.ts +7 -2
- package/src/tools/projects/list-projects.ts +7 -2
- package/src/tools/records/create-records.ts +7 -2
- package/src/tools/runs/create-runs.ts +11 -6
- package/src/tools/scores/upsert-scores.ts +7 -2
- package/src/tools/system-configs/create-system-configs.ts +7 -2
- package/src/tools/system-configs/get-system-configs.ts +7 -5
- package/src/tools/system-configs/list-system-configs.ts +7 -2
- package/src/tools/systems/create-systems.ts +7 -2
- package/src/tools/systems/delete-systems.ts +7 -2
- package/src/tools/systems/get-systems.ts +7 -2
- package/src/tools/systems/list-systems.ts +7 -2
- package/src/tools/systems/update-systems.ts +7 -2
- package/src/tools/testcases/create-testcases.ts +7 -2
- package/src/tools/testcases/delete-testcases.ts +7 -2
- package/src/tools/testcases/get-testcases.ts +7 -2
- package/src/tools/testcases/list-testcases.ts +7 -2
- package/src/tools/testcases/update-testcases.ts +7 -2
- package/src/tools/testsets/create-testsets.ts +7 -2
- package/src/tools/testsets/delete-testsets.ts +7 -2
- package/src/tools/testsets/get-testsets.ts +7 -2
- package/src/tools/testsets/list-testsets.ts +7 -2
- package/src/tools/testsets/update-testsets.ts +7 -2
- package/src/tools/types.ts +104 -0
- package/tools/index.d.mts +2 -13
- package/tools/index.d.mts.map +1 -1
- package/tools/index.d.ts +2 -13
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js.map +1 -1
- package/tools/index.mjs.map +1 -1
- package/tools/projects/create-projects.d.mts +2 -2
- package/tools/projects/create-projects.d.mts.map +1 -1
- package/tools/projects/create-projects.d.ts +2 -2
- package/tools/projects/create-projects.d.ts.map +1 -1
- package/tools/projects/create-projects.js +6 -2
- package/tools/projects/create-projects.js.map +1 -1
- package/tools/projects/create-projects.mjs +6 -2
- package/tools/projects/create-projects.mjs.map +1 -1
- package/tools/projects/list-projects.d.mts +2 -2
- package/tools/projects/list-projects.d.mts.map +1 -1
- package/tools/projects/list-projects.d.ts +2 -2
- package/tools/projects/list-projects.d.ts.map +1 -1
- package/tools/projects/list-projects.js +6 -2
- package/tools/projects/list-projects.js.map +1 -1
- package/tools/projects/list-projects.mjs +6 -2
- package/tools/projects/list-projects.mjs.map +1 -1
- package/tools/records/create-records.d.mts +2 -2
- package/tools/records/create-records.d.mts.map +1 -1
- package/tools/records/create-records.d.ts +2 -2
- package/tools/records/create-records.d.ts.map +1 -1
- package/tools/records/create-records.js +6 -2
- package/tools/records/create-records.js.map +1 -1
- package/tools/records/create-records.mjs +6 -2
- package/tools/records/create-records.mjs.map +1 -1
- package/tools/runs/create-runs.d.mts +2 -2
- package/tools/runs/create-runs.d.mts.map +1 -1
- package/tools/runs/create-runs.d.ts +2 -2
- package/tools/runs/create-runs.d.ts.map +1 -1
- package/tools/runs/create-runs.js +10 -6
- package/tools/runs/create-runs.js.map +1 -1
- package/tools/runs/create-runs.mjs +10 -6
- package/tools/runs/create-runs.mjs.map +1 -1
- package/tools/scores/upsert-scores.d.mts +2 -2
- package/tools/scores/upsert-scores.d.mts.map +1 -1
- package/tools/scores/upsert-scores.d.ts +2 -2
- package/tools/scores/upsert-scores.d.ts.map +1 -1
- package/tools/scores/upsert-scores.js +6 -2
- package/tools/scores/upsert-scores.js.map +1 -1
- package/tools/scores/upsert-scores.mjs +6 -2
- package/tools/scores/upsert-scores.mjs.map +1 -1
- package/tools/system-configs/create-system-configs.d.mts +2 -2
- package/tools/system-configs/create-system-configs.d.mts.map +1 -1
- package/tools/system-configs/create-system-configs.d.ts +2 -2
- package/tools/system-configs/create-system-configs.d.ts.map +1 -1
- package/tools/system-configs/create-system-configs.js +6 -2
- package/tools/system-configs/create-system-configs.js.map +1 -1
- package/tools/system-configs/create-system-configs.mjs +6 -2
- package/tools/system-configs/create-system-configs.mjs.map +1 -1
- package/tools/system-configs/get-system-configs.d.mts +2 -2
- package/tools/system-configs/get-system-configs.d.mts.map +1 -1
- package/tools/system-configs/get-system-configs.d.ts +2 -2
- package/tools/system-configs/get-system-configs.d.ts.map +1 -1
- package/tools/system-configs/get-system-configs.js +6 -5
- package/tools/system-configs/get-system-configs.js.map +1 -1
- package/tools/system-configs/get-system-configs.mjs +6 -5
- package/tools/system-configs/get-system-configs.mjs.map +1 -1
- package/tools/system-configs/list-system-configs.d.mts +2 -2
- package/tools/system-configs/list-system-configs.d.mts.map +1 -1
- package/tools/system-configs/list-system-configs.d.ts +2 -2
- package/tools/system-configs/list-system-configs.d.ts.map +1 -1
- package/tools/system-configs/list-system-configs.js +6 -2
- package/tools/system-configs/list-system-configs.js.map +1 -1
- package/tools/system-configs/list-system-configs.mjs +6 -2
- package/tools/system-configs/list-system-configs.mjs.map +1 -1
- package/tools/systems/create-systems.d.mts +2 -2
- package/tools/systems/create-systems.d.mts.map +1 -1
- package/tools/systems/create-systems.d.ts +2 -2
- package/tools/systems/create-systems.d.ts.map +1 -1
- package/tools/systems/create-systems.js +6 -2
- package/tools/systems/create-systems.js.map +1 -1
- package/tools/systems/create-systems.mjs +6 -2
- package/tools/systems/create-systems.mjs.map +1 -1
- package/tools/systems/delete-systems.d.mts +2 -2
- package/tools/systems/delete-systems.d.mts.map +1 -1
- package/tools/systems/delete-systems.d.ts +2 -2
- package/tools/systems/delete-systems.d.ts.map +1 -1
- package/tools/systems/delete-systems.js +6 -2
- package/tools/systems/delete-systems.js.map +1 -1
- package/tools/systems/delete-systems.mjs +6 -2
- package/tools/systems/delete-systems.mjs.map +1 -1
- package/tools/systems/get-systems.d.mts +2 -2
- package/tools/systems/get-systems.d.mts.map +1 -1
- package/tools/systems/get-systems.d.ts +2 -2
- package/tools/systems/get-systems.d.ts.map +1 -1
- package/tools/systems/get-systems.js +6 -2
- package/tools/systems/get-systems.js.map +1 -1
- package/tools/systems/get-systems.mjs +6 -2
- package/tools/systems/get-systems.mjs.map +1 -1
- package/tools/systems/list-systems.d.mts +2 -2
- package/tools/systems/list-systems.d.mts.map +1 -1
- package/tools/systems/list-systems.d.ts +2 -2
- package/tools/systems/list-systems.d.ts.map +1 -1
- package/tools/systems/list-systems.js +6 -2
- package/tools/systems/list-systems.js.map +1 -1
- package/tools/systems/list-systems.mjs +6 -2
- package/tools/systems/list-systems.mjs.map +1 -1
- package/tools/systems/update-systems.d.mts +2 -2
- package/tools/systems/update-systems.d.mts.map +1 -1
- package/tools/systems/update-systems.d.ts +2 -2
- package/tools/systems/update-systems.d.ts.map +1 -1
- package/tools/systems/update-systems.js +6 -2
- package/tools/systems/update-systems.js.map +1 -1
- package/tools/systems/update-systems.mjs +6 -2
- package/tools/systems/update-systems.mjs.map +1 -1
- package/tools/testcases/create-testcases.d.mts +2 -2
- package/tools/testcases/create-testcases.d.mts.map +1 -1
- package/tools/testcases/create-testcases.d.ts +2 -2
- package/tools/testcases/create-testcases.d.ts.map +1 -1
- package/tools/testcases/create-testcases.js +6 -2
- package/tools/testcases/create-testcases.js.map +1 -1
- package/tools/testcases/create-testcases.mjs +6 -2
- package/tools/testcases/create-testcases.mjs.map +1 -1
- package/tools/testcases/delete-testcases.d.mts +2 -2
- package/tools/testcases/delete-testcases.d.mts.map +1 -1
- package/tools/testcases/delete-testcases.d.ts +2 -2
- package/tools/testcases/delete-testcases.d.ts.map +1 -1
- package/tools/testcases/delete-testcases.js +6 -2
- package/tools/testcases/delete-testcases.js.map +1 -1
- package/tools/testcases/delete-testcases.mjs +6 -2
- package/tools/testcases/delete-testcases.mjs.map +1 -1
- package/tools/testcases/get-testcases.d.mts +2 -2
- package/tools/testcases/get-testcases.d.mts.map +1 -1
- package/tools/testcases/get-testcases.d.ts +2 -2
- package/tools/testcases/get-testcases.d.ts.map +1 -1
- package/tools/testcases/get-testcases.js +6 -2
- package/tools/testcases/get-testcases.js.map +1 -1
- package/tools/testcases/get-testcases.mjs +6 -2
- package/tools/testcases/get-testcases.mjs.map +1 -1
- package/tools/testcases/list-testcases.d.mts +2 -2
- package/tools/testcases/list-testcases.d.mts.map +1 -1
- package/tools/testcases/list-testcases.d.ts +2 -2
- package/tools/testcases/list-testcases.d.ts.map +1 -1
- package/tools/testcases/list-testcases.js +6 -2
- package/tools/testcases/list-testcases.js.map +1 -1
- package/tools/testcases/list-testcases.mjs +6 -2
- package/tools/testcases/list-testcases.mjs.map +1 -1
- package/tools/testcases/update-testcases.d.mts +2 -2
- package/tools/testcases/update-testcases.d.mts.map +1 -1
- package/tools/testcases/update-testcases.d.ts +2 -2
- package/tools/testcases/update-testcases.d.ts.map +1 -1
- package/tools/testcases/update-testcases.js +6 -2
- package/tools/testcases/update-testcases.js.map +1 -1
- package/tools/testcases/update-testcases.mjs +6 -2
- package/tools/testcases/update-testcases.mjs.map +1 -1
- package/tools/testsets/create-testsets.d.mts +2 -2
- package/tools/testsets/create-testsets.d.mts.map +1 -1
- package/tools/testsets/create-testsets.d.ts +2 -2
- package/tools/testsets/create-testsets.d.ts.map +1 -1
- package/tools/testsets/create-testsets.js +6 -2
- package/tools/testsets/create-testsets.js.map +1 -1
- package/tools/testsets/create-testsets.mjs +6 -2
- package/tools/testsets/create-testsets.mjs.map +1 -1
- package/tools/testsets/delete-testsets.d.mts +2 -2
- package/tools/testsets/delete-testsets.d.mts.map +1 -1
- package/tools/testsets/delete-testsets.d.ts +2 -2
- package/tools/testsets/delete-testsets.d.ts.map +1 -1
- package/tools/testsets/delete-testsets.js +6 -2
- package/tools/testsets/delete-testsets.js.map +1 -1
- package/tools/testsets/delete-testsets.mjs +6 -2
- package/tools/testsets/delete-testsets.mjs.map +1 -1
- package/tools/testsets/get-testsets.d.mts +2 -2
- package/tools/testsets/get-testsets.d.mts.map +1 -1
- package/tools/testsets/get-testsets.d.ts +2 -2
- package/tools/testsets/get-testsets.d.ts.map +1 -1
- package/tools/testsets/get-testsets.js +6 -2
- package/tools/testsets/get-testsets.js.map +1 -1
- package/tools/testsets/get-testsets.mjs +6 -2
- package/tools/testsets/get-testsets.mjs.map +1 -1
- package/tools/testsets/list-testsets.d.mts +2 -2
- package/tools/testsets/list-testsets.d.mts.map +1 -1
- package/tools/testsets/list-testsets.d.ts +2 -2
- package/tools/testsets/list-testsets.d.ts.map +1 -1
- package/tools/testsets/list-testsets.js +6 -2
- package/tools/testsets/list-testsets.js.map +1 -1
- package/tools/testsets/list-testsets.mjs +6 -2
- package/tools/testsets/list-testsets.mjs.map +1 -1
- package/tools/testsets/update-testsets.d.mts +2 -2
- package/tools/testsets/update-testsets.d.mts.map +1 -1
- package/tools/testsets/update-testsets.d.ts +2 -2
- package/tools/testsets/update-testsets.d.ts.map +1 -1
- package/tools/testsets/update-testsets.js +6 -2
- package/tools/testsets/update-testsets.js.map +1 -1
- package/tools/testsets/update-testsets.mjs +6 -2
- package/tools/testsets/update-testsets.mjs.map +1 -1
- package/tools/types.d.mts +51 -0
- package/tools/types.d.mts.map +1 -0
- package/tools/types.d.ts +51 -0
- package/tools/types.d.ts.map +1 -0
- package/tools/types.js +46 -0
- package/tools/types.js.map +1 -0
- package/tools/types.mjs +42 -0
- package/tools/types.mjs.map +1 -0
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.js";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=delete-testsets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("scorecard-ai-mcp/tools/types");
|
|
5
6
|
exports.metadata = {
|
|
6
7
|
resource: 'testsets',
|
|
7
8
|
operation: 'write',
|
|
8
9
|
tags: [],
|
|
10
|
+
httpMethod: 'delete',
|
|
11
|
+
httpPath: '/testsets/{testsetId}',
|
|
12
|
+
operationId: 'deleteTestset',
|
|
9
13
|
};
|
|
10
14
|
exports.tool = {
|
|
11
15
|
name: 'delete_testsets',
|
|
@@ -19,9 +23,9 @@ exports.tool = {
|
|
|
19
23
|
},
|
|
20
24
|
},
|
|
21
25
|
};
|
|
22
|
-
const handler = (client, args) => {
|
|
26
|
+
const handler = async (client, args) => {
|
|
23
27
|
const { testsetId, ...body } = args;
|
|
24
|
-
return client.testsets.delete(testsetId);
|
|
28
|
+
return (0, types_1.asTextContentResult)(await client.testsets.delete(testsetId));
|
|
25
29
|
};
|
|
26
30
|
exports.handler = handler;
|
|
27
31
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
1
|
+
{"version":3,"file":"delete-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
|
|
2
3
|
export const metadata = {
|
|
3
4
|
resource: 'testsets',
|
|
4
5
|
operation: 'write',
|
|
5
6
|
tags: [],
|
|
7
|
+
httpMethod: 'delete',
|
|
8
|
+
httpPath: '/testsets/{testsetId}',
|
|
9
|
+
operationId: 'deleteTestset',
|
|
6
10
|
};
|
|
7
11
|
export const tool = {
|
|
8
12
|
name: 'delete_testsets',
|
|
@@ -16,9 +20,9 @@ export const tool = {
|
|
|
16
20
|
},
|
|
17
21
|
},
|
|
18
22
|
};
|
|
19
|
-
export const handler = (client, args) => {
|
|
23
|
+
export const handler = async (client, args) => {
|
|
20
24
|
const { testsetId, ...body } = args;
|
|
21
|
-
return client.testsets.delete(testsetId);
|
|
25
|
+
return asTextContentResult(await client.testsets.delete(testsetId));
|
|
22
26
|
};
|
|
23
27
|
export default { metadata, tool, handler };
|
|
24
28
|
//# sourceMappingURL=delete-testsets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"delete-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/delete-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,eAAe;CAC7B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.mjs";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=get-testsets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.js";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=get-testsets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("scorecard-ai-mcp/tools/types");
|
|
5
6
|
exports.metadata = {
|
|
6
7
|
resource: 'testsets',
|
|
7
8
|
operation: 'read',
|
|
8
9
|
tags: [],
|
|
10
|
+
httpMethod: 'get',
|
|
11
|
+
httpPath: '/testsets/{testsetId}',
|
|
12
|
+
operationId: 'getTestset',
|
|
9
13
|
};
|
|
10
14
|
exports.tool = {
|
|
11
15
|
name: 'get_testsets',
|
|
@@ -19,9 +23,9 @@ exports.tool = {
|
|
|
19
23
|
},
|
|
20
24
|
},
|
|
21
25
|
};
|
|
22
|
-
const handler = (client, args) => {
|
|
26
|
+
const handler = async (client, args) => {
|
|
23
27
|
const { testsetId, ...body } = args;
|
|
24
|
-
return client.testsets.get(testsetId);
|
|
28
|
+
return (0, types_1.asTextContentResult)(await client.testsets.get(testsetId));
|
|
25
29
|
};
|
|
26
30
|
exports.handler = handler;
|
|
27
31
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
1
|
+
{"version":3,"file":"get-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
|
|
2
3
|
export const metadata = {
|
|
3
4
|
resource: 'testsets',
|
|
4
5
|
operation: 'read',
|
|
5
6
|
tags: [],
|
|
7
|
+
httpMethod: 'get',
|
|
8
|
+
httpPath: '/testsets/{testsetId}',
|
|
9
|
+
operationId: 'getTestset',
|
|
6
10
|
};
|
|
7
11
|
export const tool = {
|
|
8
12
|
name: 'get_testsets',
|
|
@@ -16,9 +20,9 @@ export const tool = {
|
|
|
16
20
|
},
|
|
17
21
|
},
|
|
18
22
|
};
|
|
19
|
-
export const handler = (client, args) => {
|
|
23
|
+
export const handler = async (client, args) => {
|
|
20
24
|
const { testsetId, ...body } = args;
|
|
21
|
-
return client.testsets.get(testsetId);
|
|
25
|
+
return asTextContentResult(await client.testsets.get(testsetId));
|
|
22
26
|
};
|
|
23
27
|
export default { metadata, tool, handler };
|
|
24
28
|
//# sourceMappingURL=get-testsets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"get-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/get-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,uBAAuB;IACjC,WAAW,EAAE,YAAY;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AACnE,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.mjs";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=list-testsets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.js";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=list-testsets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqBlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("scorecard-ai-mcp/tools/types");
|
|
5
6
|
exports.metadata = {
|
|
6
7
|
resource: 'testsets',
|
|
7
8
|
operation: 'read',
|
|
8
9
|
tags: [],
|
|
10
|
+
httpMethod: 'get',
|
|
11
|
+
httpPath: '/projects/{projectId}/testsets',
|
|
12
|
+
operationId: 'listTestsets',
|
|
9
13
|
};
|
|
10
14
|
exports.tool = {
|
|
11
15
|
name: 'list_testsets',
|
|
@@ -27,9 +31,9 @@ exports.tool = {
|
|
|
27
31
|
},
|
|
28
32
|
},
|
|
29
33
|
};
|
|
30
|
-
const handler = (client, args) => {
|
|
34
|
+
const handler = async (client, args) => {
|
|
31
35
|
const { projectId, ...body } = args;
|
|
32
|
-
return client.testsets.list(projectId, body);
|
|
36
|
+
return (0, types_1.asTextContentResult)(await client.testsets.list(projectId, body));
|
|
33
37
|
};
|
|
34
38
|
exports.handler = handler;
|
|
35
39
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
1
|
+
{"version":3,"file":"list-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gCAAgC;IAC1C,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,+DAA+D;IAC5E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0GAA0G;aAC7G;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iGAAiG;aACpG;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC1E,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
|
|
2
3
|
export const metadata = {
|
|
3
4
|
resource: 'testsets',
|
|
4
5
|
operation: 'read',
|
|
5
6
|
tags: [],
|
|
7
|
+
httpMethod: 'get',
|
|
8
|
+
httpPath: '/projects/{projectId}/testsets',
|
|
9
|
+
operationId: 'listTestsets',
|
|
6
10
|
};
|
|
7
11
|
export const tool = {
|
|
8
12
|
name: 'list_testsets',
|
|
@@ -24,9 +28,9 @@ export const tool = {
|
|
|
24
28
|
},
|
|
25
29
|
},
|
|
26
30
|
};
|
|
27
|
-
export const handler = (client, args) => {
|
|
31
|
+
export const handler = async (client, args) => {
|
|
28
32
|
const { projectId, ...body } = args;
|
|
29
|
-
return client.testsets.list(projectId, body);
|
|
33
|
+
return asTextContentResult(await client.testsets.list(projectId, body));
|
|
30
34
|
};
|
|
31
35
|
export default { metadata, tool, handler };
|
|
32
36
|
//# sourceMappingURL=list-testsets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"list-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/list-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,gCAAgC;IAC1C,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,+DAA+D;IAC5E,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0GAA0G;aAC7G;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,SAAS;gBACf,WAAW,EACT,iGAAiG;aACpG;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC1E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.mjs";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=update-testsets.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-testsets.d.mts","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqDlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -3,7 +3,7 @@ import type { Metadata } from "..//index.js";
|
|
|
3
3
|
import Scorecard from 'scorecard-ai';
|
|
4
4
|
export declare const metadata: Metadata;
|
|
5
5
|
export declare const tool: Tool;
|
|
6
|
-
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
6
|
+
export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
7
7
|
declare const _default: {
|
|
8
8
|
metadata: Metadata;
|
|
9
9
|
tool: {
|
|
@@ -26,7 +26,7 @@ declare const _default: {
|
|
|
26
26
|
openWorldHint?: boolean | undefined;
|
|
27
27
|
} | undefined;
|
|
28
28
|
};
|
|
29
|
-
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => import("scorecard-ai").
|
|
29
|
+
handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
|
|
30
30
|
};
|
|
31
31
|
export default _default;
|
|
32
32
|
//# sourceMappingURL=update-testsets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-testsets.d.ts","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"OAIO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,KAAK,EAAE,QAAQ,EAAE;OACjB,SAAS,MAAM,cAAc;AAEpC,eAAO,MAAM,QAAQ,EAAE,QAOtB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,IAqDlB,CAAC;AAEF,eAAO,MAAM,OAAO,GAAU,QAAQ,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,mEAGzF,CAAC;;;;;;;;;;;;;;;;;;;;;;;sBAHoC,SAAS,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;;AAK1F,wBAA2C"}
|
|
@@ -2,10 +2,14 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.handler = exports.tool = exports.metadata = void 0;
|
|
5
|
+
const types_1 = require("scorecard-ai-mcp/tools/types");
|
|
5
6
|
exports.metadata = {
|
|
6
7
|
resource: 'testsets',
|
|
7
8
|
operation: 'write',
|
|
8
9
|
tags: [],
|
|
10
|
+
httpMethod: 'patch',
|
|
11
|
+
httpPath: '/testsets/{testsetId}',
|
|
12
|
+
operationId: 'updateTestset',
|
|
9
13
|
};
|
|
10
14
|
exports.tool = {
|
|
11
15
|
name: 'update_testsets',
|
|
@@ -59,9 +63,9 @@ exports.tool = {
|
|
|
59
63
|
},
|
|
60
64
|
},
|
|
61
65
|
};
|
|
62
|
-
const handler = (client, args) => {
|
|
66
|
+
const handler = async (client, args) => {
|
|
63
67
|
const { testsetId, ...body } = args;
|
|
64
|
-
return client.testsets.update(testsetId, body);
|
|
68
|
+
return (0, types_1.asTextContentResult)(await client.testsets.update(testsetId, body));
|
|
65
69
|
};
|
|
66
70
|
exports.handler = handler;
|
|
67
71
|
exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;
|
|
1
|
+
{"version":3,"file":"update-testsets.js","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,UAAU;IACpB,SAA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W,CAAC;IAC3C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
|
|
2
3
|
export const metadata = {
|
|
3
4
|
resource: 'testsets',
|
|
4
5
|
operation: 'write',
|
|
5
6
|
tags: [],
|
|
7
|
+
httpMethod: 'patch',
|
|
8
|
+
httpPath: '/testsets/{testsetId}',
|
|
9
|
+
operationId: 'updateTestset',
|
|
6
10
|
};
|
|
7
11
|
export const tool = {
|
|
8
12
|
name: 'update_testsets',
|
|
@@ -56,9 +60,9 @@ export const tool = {
|
|
|
56
60
|
},
|
|
57
61
|
},
|
|
58
62
|
};
|
|
59
|
-
export const handler = (client, args) => {
|
|
63
|
+
export const handler = async (client, args) => {
|
|
60
64
|
const { testsetId, ...body } = args;
|
|
61
|
-
return client.testsets.update(testsetId, body);
|
|
65
|
+
return asTextContentResult(await client.testsets.update(testsetId, body));
|
|
62
66
|
};
|
|
63
67
|
export default { metadata, tool, handler };
|
|
64
68
|
//# sourceMappingURL=update-testsets.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;
|
|
1
|
+
{"version":3,"file":"update-testsets.mjs","sourceRoot":"","sources":["../../src/tools/testsets/update-testsets.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA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AK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC3C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Scorecard from 'scorecard-ai';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
type TextContentBlock = {
|
|
4
|
+
type: 'text';
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
type ImageContentBlock = {
|
|
8
|
+
type: 'image';
|
|
9
|
+
data: string;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
};
|
|
12
|
+
type AudioContentBlock = {
|
|
13
|
+
type: 'audio';
|
|
14
|
+
data: string;
|
|
15
|
+
mimeType: string;
|
|
16
|
+
};
|
|
17
|
+
type ResourceContentBlock = {
|
|
18
|
+
type: 'resource';
|
|
19
|
+
resource: {
|
|
20
|
+
uri: string;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
text: string;
|
|
23
|
+
} | {
|
|
24
|
+
uri: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
blob: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
|
|
30
|
+
export type ToolCallResult = {
|
|
31
|
+
content: ContentBlock[];
|
|
32
|
+
isError?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type HandlerFunction = (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
|
|
35
|
+
export declare function asTextContentResult(result: Object): ToolCallResult;
|
|
36
|
+
export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
|
|
37
|
+
export type Metadata = {
|
|
38
|
+
resource: string;
|
|
39
|
+
operation: 'read' | 'write';
|
|
40
|
+
tags: string[];
|
|
41
|
+
httpMethod?: string;
|
|
42
|
+
httpPath?: string;
|
|
43
|
+
operationId?: string;
|
|
44
|
+
};
|
|
45
|
+
export type Endpoint = {
|
|
46
|
+
metadata: Metadata;
|
|
47
|
+
tool: Tool;
|
|
48
|
+
handler: HandlerFunction;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,oBAAoB,GAAG;IAC1B,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EACJ;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,GACD;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACP,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,iBAAiB,GAAG,oBAAoB,CAAC;AAE3G,MAAM,MAAM,cAAc,GAAG;IAC3B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,CAC5B,MAAM,EAAE,SAAS,EACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,KACtC,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,cAAc,CASlE;AAED,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,cAAc,CAAC,CA2BvF;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,IAAI,EAAE,MAAM,EAAE,CAAC;IAEf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
|
package/tools/types.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import Scorecard from 'scorecard-ai';
|
|
2
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
type TextContentBlock = {
|
|
4
|
+
type: 'text';
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
type ImageContentBlock = {
|
|
8
|
+
type: 'image';
|
|
9
|
+
data: string;
|
|
10
|
+
mimeType: string;
|
|
11
|
+
};
|
|
12
|
+
type AudioContentBlock = {
|
|
13
|
+
type: 'audio';
|
|
14
|
+
data: string;
|
|
15
|
+
mimeType: string;
|
|
16
|
+
};
|
|
17
|
+
type ResourceContentBlock = {
|
|
18
|
+
type: 'resource';
|
|
19
|
+
resource: {
|
|
20
|
+
uri: string;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
text: string;
|
|
23
|
+
} | {
|
|
24
|
+
uri: string;
|
|
25
|
+
mimeType: string;
|
|
26
|
+
blob: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type ContentBlock = TextContentBlock | ImageContentBlock | AudioContentBlock | ResourceContentBlock;
|
|
30
|
+
export type ToolCallResult = {
|
|
31
|
+
content: ContentBlock[];
|
|
32
|
+
isError?: boolean;
|
|
33
|
+
};
|
|
34
|
+
export type HandlerFunction = (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<ToolCallResult>;
|
|
35
|
+
export declare function asTextContentResult(result: Object): ToolCallResult;
|
|
36
|
+
export declare function asBinaryContentResult(response: Response): Promise<ToolCallResult>;
|
|
37
|
+
export type Metadata = {
|
|
38
|
+
resource: string;
|
|
39
|
+
operation: 'read' | 'write';
|
|
40
|
+
tags: string[];
|
|
41
|
+
httpMethod?: string;
|
|
42
|
+
httpPath?: string;
|
|
43
|
+
operationId?: string;
|
|
44
|
+
};
|
|
45
|
+
export type Endpoint = {
|
|
46
|
+
metadata: Metadata;
|
|
47
|
+
tool: Tool;
|
|
48
|
+
handler: HandlerFunction;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/tools/types.ts"],"names":[],"mappings":"OAEO,SAAS,MAAM,cAAc;OAC7B,EAAE,IAAI,EAAE,MAAM,oCAAoC;AAEzD,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI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AAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,OAAO,EAAE,eAAe,CAAC;CAC1B,CAAC"}
|
package/tools/types.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.asTextContentResult = asTextContentResult;
|
|
5
|
+
exports.asBinaryContentResult = asBinaryContentResult;
|
|
6
|
+
function asTextContentResult(result) {
|
|
7
|
+
return {
|
|
8
|
+
content: [
|
|
9
|
+
{
|
|
10
|
+
type: 'text',
|
|
11
|
+
text: JSON.stringify(result, null, 2),
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
async function asBinaryContentResult(response) {
|
|
17
|
+
const blob = await response.blob();
|
|
18
|
+
const mimeType = blob.type;
|
|
19
|
+
const data = Buffer.from(await blob.arrayBuffer()).toString('base64');
|
|
20
|
+
if (mimeType.startsWith('image/')) {
|
|
21
|
+
return {
|
|
22
|
+
content: [{ type: 'image', mimeType, data }],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
else if (mimeType.startsWith('audio/')) {
|
|
26
|
+
return {
|
|
27
|
+
content: [{ type: 'audio', mimeType, data }],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
return {
|
|
32
|
+
content: [
|
|
33
|
+
{
|
|
34
|
+
type: 'resource',
|
|
35
|
+
resource: {
|
|
36
|
+
// We must give a URI, even though this isn't actually an MCP resource.
|
|
37
|
+
uri: 'resource://tool-response',
|
|
38
|
+
mimeType,
|
|
39
|
+
blob: data,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
}
|
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