scorecard-ai-mcp 1.2.0 → 2.0.0-alpha.1

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.
Files changed (61) hide show
  1. package/README.md +5 -34
  2. package/package.json +2 -2
  3. package/server.js +1 -1
  4. package/server.js.map +1 -1
  5. package/server.mjs +1 -1
  6. package/server.mjs.map +1 -1
  7. package/src/server.ts +1 -1
  8. package/src/tools/index.ts +4 -6
  9. package/src/tools/systems/update-systems.ts +5 -13
  10. package/src/tools/systems/upsert-systems.ts +49 -0
  11. package/src/tools/systems/versions/get-systems-versions.ts +1 -1
  12. package/src/tools/systems/versions/{list-systems-versions.ts → upsert-systems-versions.ts} +13 -14
  13. package/tools/index.d.mts.map +1 -1
  14. package/tools/index.d.ts.map +1 -1
  15. package/tools/index.js +4 -6
  16. package/tools/index.js.map +1 -1
  17. package/tools/index.mjs +4 -6
  18. package/tools/index.mjs.map +1 -1
  19. package/tools/systems/update-systems.d.mts.map +1 -1
  20. package/tools/systems/update-systems.d.ts.map +1 -1
  21. package/tools/systems/update-systems.js +5 -13
  22. package/tools/systems/update-systems.js.map +1 -1
  23. package/tools/systems/update-systems.mjs +5 -13
  24. package/tools/systems/update-systems.mjs.map +1 -1
  25. package/tools/systems/{create-systems.d.mts → upsert-systems.d.mts} +1 -1
  26. package/tools/systems/{create-systems.d.mts.map → upsert-systems.d.mts.map} +1 -1
  27. package/tools/systems/{create-systems.d.ts → upsert-systems.d.ts} +1 -1
  28. package/tools/systems/{create-systems.d.ts.map → upsert-systems.d.ts.map} +1 -1
  29. package/tools/systems/upsert-systems.js +44 -0
  30. package/tools/systems/upsert-systems.js.map +1 -0
  31. package/tools/systems/upsert-systems.mjs +40 -0
  32. package/tools/systems/upsert-systems.mjs.map +1 -0
  33. package/tools/systems/versions/get-systems-versions.js +1 -1
  34. package/tools/systems/versions/get-systems-versions.js.map +1 -1
  35. package/tools/systems/versions/get-systems-versions.mjs +1 -1
  36. package/tools/systems/versions/get-systems-versions.mjs.map +1 -1
  37. package/tools/systems/versions/{list-systems-versions.d.mts → upsert-systems-versions.d.mts} +1 -1
  38. package/tools/systems/versions/{create-systems-versions.d.mts.map → upsert-systems-versions.d.mts.map} +1 -1
  39. package/tools/systems/versions/{list-systems-versions.d.ts → upsert-systems-versions.d.ts} +1 -1
  40. package/tools/systems/versions/{create-systems-versions.d.ts.map → upsert-systems-versions.d.ts.map} +1 -1
  41. package/tools/systems/versions/{create-systems-versions.js → upsert-systems-versions.js} +7 -7
  42. package/tools/systems/versions/upsert-systems-versions.js.map +1 -0
  43. package/tools/systems/versions/upsert-systems-versions.mjs +36 -0
  44. package/tools/systems/versions/upsert-systems-versions.mjs.map +1 -0
  45. package/src/tools/systems/create-systems.ts +0 -57
  46. package/src/tools/systems/versions/create-systems-versions.ts +0 -45
  47. package/tools/systems/create-systems.js +0 -52
  48. package/tools/systems/create-systems.js.map +0 -1
  49. package/tools/systems/create-systems.mjs +0 -48
  50. package/tools/systems/create-systems.mjs.map +0 -1
  51. package/tools/systems/versions/create-systems-versions.d.mts +0 -45
  52. package/tools/systems/versions/create-systems-versions.d.ts +0 -45
  53. package/tools/systems/versions/create-systems-versions.js.map +0 -1
  54. package/tools/systems/versions/create-systems-versions.mjs +0 -36
  55. package/tools/systems/versions/create-systems-versions.mjs.map +0 -1
  56. package/tools/systems/versions/list-systems-versions.d.mts.map +0 -1
  57. package/tools/systems/versions/list-systems-versions.d.ts.map +0 -1
  58. package/tools/systems/versions/list-systems-versions.js +0 -40
  59. package/tools/systems/versions/list-systems-versions.js.map +0 -1
  60. package/tools/systems/versions/list-systems-versions.mjs +0 -36
  61. package/tools/systems/versions/list-systems-versions.mjs.map +0 -1
@@ -0,0 +1,44 @@
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.handler = exports.tool = exports.metadata = void 0;
5
+ const types_1 = require("scorecard-ai-mcp/tools/types");
6
+ exports.metadata = {
7
+ resource: 'systems',
8
+ operation: 'write',
9
+ tags: [],
10
+ httpMethod: 'post',
11
+ httpPath: '/projects/{projectId}/systems',
12
+ operationId: 'upsertSystem',
13
+ };
14
+ exports.tool = {
15
+ name: 'upsert_systems',
16
+ description: 'Create a new system. If one with the same name in the project exists, it updates it instead.',
17
+ inputSchema: {
18
+ type: 'object',
19
+ properties: {
20
+ projectId: {
21
+ type: 'string',
22
+ },
23
+ config: {
24
+ type: 'object',
25
+ description: 'The configuration of the system.',
26
+ },
27
+ description: {
28
+ type: 'string',
29
+ description: 'The description of the system.',
30
+ },
31
+ name: {
32
+ type: 'string',
33
+ description: 'The name of the system. Should be unique within the project. Default is "Default system"',
34
+ },
35
+ },
36
+ },
37
+ };
38
+ const handler = async (client, args) => {
39
+ const { projectId, ...body } = args;
40
+ return (0, types_1.asTextContentResult)(await client.systems.upsert(projectId, body));
41
+ };
42
+ exports.handler = handler;
43
+ exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
44
+ //# sourceMappingURL=upsert-systems.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert-systems.js","sourceRoot":"","sources":["../../src/tools/systems/upsert-systems.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,8FAA8F;IAC3G,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,EAAE,kCAAkC;aAChD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0FAA0F;aAC7F;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,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,40 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
3
+ export const metadata = {
4
+ resource: 'systems',
5
+ operation: 'write',
6
+ tags: [],
7
+ httpMethod: 'post',
8
+ httpPath: '/projects/{projectId}/systems',
9
+ operationId: 'upsertSystem',
10
+ };
11
+ export const tool = {
12
+ name: 'upsert_systems',
13
+ description: 'Create a new system. If one with the same name in the project exists, it updates it instead.',
14
+ inputSchema: {
15
+ type: 'object',
16
+ properties: {
17
+ projectId: {
18
+ type: 'string',
19
+ },
20
+ config: {
21
+ type: 'object',
22
+ description: 'The configuration of the system.',
23
+ },
24
+ description: {
25
+ type: 'string',
26
+ description: 'The description of the system.',
27
+ },
28
+ name: {
29
+ type: 'string',
30
+ description: 'The name of the system. Should be unique within the project. Default is "Default system"',
31
+ },
32
+ },
33
+ },
34
+ };
35
+ export const handler = async (client, args) => {
36
+ const { projectId, ...body } = args;
37
+ return asTextContentResult(await client.systems.upsert(projectId, body));
38
+ };
39
+ export default { metadata, tool, handler };
40
+ //# sourceMappingURL=upsert-systems.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert-systems.mjs","sourceRoot":"","sources":["../../src/tools/systems/upsert-systems.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,8FAA8F;IAC3G,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,EAAE,kCAAkC;aAChD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,0FAA0F;aAC7F;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,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -8,7 +8,7 @@ exports.metadata = {
8
8
  operation: 'read',
9
9
  tags: [],
10
10
  httpMethod: 'get',
11
- httpPath: '/systems/configs/{systemVersionId}',
11
+ httpPath: '/systems/versions/{systemVersionId}',
12
12
  operationId: 'getSystemVersion',
13
13
  };
14
14
  exports.tool = {
@@ -1 +1 @@
1
- {"version":3,"file":"get-systems-versions.js","sourceRoot":"","sources":["../../../src/tools/systems/versions/get-systems-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-systems-versions.js","sourceRoot":"","sources":["../../../src/tools/systems/versions/get-systems-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -5,7 +5,7 @@ export const metadata = {
5
5
  operation: 'read',
6
6
  tags: [],
7
7
  httpMethod: 'get',
8
- httpPath: '/systems/configs/{systemVersionId}',
8
+ httpPath: '/systems/versions/{systemVersionId}',
9
9
  operationId: 'getSystemVersion',
10
10
  };
11
11
  export const tool = {
@@ -1 +1 @@
1
- {"version":3,"file":"get-systems-versions.mjs","sourceRoot":"","sources":["../../../src/tools/systems/versions/get-systems-versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,oCAAoC;IAC9C,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"get-systems-versions.mjs","sourceRoot":"","sources":["../../../src/tools/systems/versions/get-systems-versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,MAAM;IACjB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,qCAAqC;IAC/C,WAAW,EAAE,kBAAkB;CAChC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,2CAA2C;IACxD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,eAAe,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IACjD,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;AACjF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -42,4 +42,4 @@ declare const _default: {
42
42
  handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
43
43
  };
44
44
  export default _default;
45
- //# sourceMappingURL=list-systems-versions.d.mts.map
45
+ //# sourceMappingURL=upsert-systems-versions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-systems-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/systems/versions/create-systems-versions.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,IAoBlB,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"}
1
+ {"version":3,"file":"upsert-systems-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/systems/versions/upsert-systems-versions.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"}
@@ -42,4 +42,4 @@ declare const _default: {
42
42
  handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
43
43
  };
44
44
  export default _default;
45
- //# sourceMappingURL=list-systems-versions.d.ts.map
45
+ //# sourceMappingURL=upsert-systems-versions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-systems-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/systems/versions/create-systems-versions.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,IAoBlB,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"}
1
+ {"version":3,"file":"upsert-systems-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/systems/versions/upsert-systems-versions.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"}
@@ -8,12 +8,12 @@ exports.metadata = {
8
8
  operation: 'write',
9
9
  tags: [],
10
10
  httpMethod: 'post',
11
- httpPath: '/systems/{systemId}/configs',
12
- operationId: 'createSystemVersion',
11
+ httpPath: '/systems/{systemId}/versions',
12
+ operationId: 'upsertSystemVersion',
13
13
  };
14
14
  exports.tool = {
15
- name: 'create_systems_versions',
16
- description: "Create a new version for a system.\n\nEach version contains specific parameter values that match the system's `configSchema` - things like model parameters, thresholds, or processing options.\nOnce created, versions cannot be modified, ensuring stable reference points for evaluations.\n\nWhen creating a system version:\n- The `config` object is validated against the parent system's `configSchema`.\n- System versions with validation errors are still stored, with errors included in the response.\n- Validation errors indicate fields that don't match the schema but don't prevent creation.\n- Having validation errors may affect how some evaluation metrics are calculated.",
15
+ name: 'upsert_systems_versions',
16
+ description: "Create a new system version if it does not already exist. Does **not** set the created version to be the system's production version.\n\nIf there is already a system version with the same config, its name will be updated.",
17
17
  inputSchema: {
18
18
  type: 'object',
19
19
  properties: {
@@ -26,15 +26,15 @@ exports.tool = {
26
26
  },
27
27
  name: {
28
28
  type: 'string',
29
- description: 'The name of the system version.',
29
+ description: "The name of the system version. If creating a new system version and the name isn't provided, it will be autogenerated.",
30
30
  },
31
31
  },
32
32
  },
33
33
  };
34
34
  const handler = async (client, args) => {
35
35
  const { systemId, ...body } = args;
36
- return (0, types_1.asTextContentResult)(await client.systems.versions.create(systemId, body));
36
+ return (0, types_1.asTextContentResult)(await client.systems.versions.upsert(systemId, body));
37
37
  };
38
38
  exports.handler = handler;
39
39
  exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
40
- //# sourceMappingURL=create-systems-versions.js.map
40
+ //# sourceMappingURL=upsert-systems-versions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert-systems-versions.js","sourceRoot":"","sources":["../../../src/tools/systems/versions/upsert-systems-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,+NAA+N;IACjO,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yHAAyH;aAC5H;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -0,0 +1,36 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
3
+ export const metadata = {
4
+ resource: 'systems.versions',
5
+ operation: 'write',
6
+ tags: [],
7
+ httpMethod: 'post',
8
+ httpPath: '/systems/{systemId}/versions',
9
+ operationId: 'upsertSystemVersion',
10
+ };
11
+ export const tool = {
12
+ name: 'upsert_systems_versions',
13
+ description: "Create a new system version if it does not already exist. Does **not** set the created version to be the system's production version.\n\nIf there is already a system version with the same config, its name will be updated.",
14
+ inputSchema: {
15
+ type: 'object',
16
+ properties: {
17
+ systemId: {
18
+ type: 'string',
19
+ },
20
+ config: {
21
+ type: 'object',
22
+ description: 'The configuration of the system version.',
23
+ },
24
+ name: {
25
+ type: 'string',
26
+ description: "The name of the system version. If creating a new system version and the name isn't provided, it will be autogenerated.",
27
+ },
28
+ },
29
+ },
30
+ };
31
+ export const handler = async (client, args) => {
32
+ const { systemId, ...body } = args;
33
+ return asTextContentResult(await client.systems.versions.upsert(systemId, body));
34
+ };
35
+ export default { metadata, tool, handler };
36
+ //# sourceMappingURL=upsert-systems-versions.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upsert-systems-versions.mjs","sourceRoot":"","sources":["../../../src/tools/systems/versions/upsert-systems-versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,8BAA8B;IACxC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,+NAA+N;IACjO,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,yHAAyH;aAC5H;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,57 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import type { Metadata } from '../';
7
- import Scorecard from 'scorecard-ai';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'systems',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/projects/{projectId}/systems',
15
- operationId: 'createSystem',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'create_systems',
20
- description:
21
- 'Create a new system definition that specifies the interface contracts for a component you want to evaluate.\n\nA system acts as a template that defines three key contracts through JSON Schemas:\n1. Input Schema: What data your system accepts (e.g., user queries, context documents)\n2. Output Schema: What data your system produces (e.g., responses, confidence scores)\n3. Config Schema: What parameters can be adjusted (e.g., model selection, temperature)\n\nThis separation lets you evaluate any system as a black box, focusing on its interface rather than implementation details.',
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- projectId: {
26
- type: 'string',
27
- },
28
- configSchema: {
29
- type: 'object',
30
- description: "The schema of the system's configuration.",
31
- },
32
- description: {
33
- type: 'string',
34
- description: 'The description of the system.',
35
- },
36
- inputSchema: {
37
- type: 'object',
38
- description: "The schema of the system's inputs.",
39
- },
40
- name: {
41
- type: 'string',
42
- description: 'The name of the system.',
43
- },
44
- outputSchema: {
45
- type: 'object',
46
- description: "The schema of the system's outputs.",
47
- },
48
- },
49
- },
50
- };
51
-
52
- export const handler = async (client: Scorecard, args: Record<string, unknown> | undefined) => {
53
- const { projectId, ...body } = args as any;
54
- return asTextContentResult(await client.systems.create(projectId, body));
55
- };
56
-
57
- export default { metadata, tool, handler };
@@ -1,45 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
4
-
5
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
6
- import type { Metadata } from '../../';
7
- import Scorecard from 'scorecard-ai';
8
-
9
- export const metadata: Metadata = {
10
- resource: 'systems.versions',
11
- operation: 'write',
12
- tags: [],
13
- httpMethod: 'post',
14
- httpPath: '/systems/{systemId}/configs',
15
- operationId: 'createSystemVersion',
16
- };
17
-
18
- export const tool: Tool = {
19
- name: 'create_systems_versions',
20
- description:
21
- "Create a new version for a system.\n\nEach version contains specific parameter values that match the system's `configSchema` - things like model parameters, thresholds, or processing options.\nOnce created, versions cannot be modified, ensuring stable reference points for evaluations.\n\nWhen creating a system version:\n- The `config` object is validated against the parent system's `configSchema`.\n- System versions with validation errors are still stored, with errors included in the response.\n- Validation errors indicate fields that don't match the schema but don't prevent creation.\n- Having validation errors may affect how some evaluation metrics are calculated.",
22
- inputSchema: {
23
- type: 'object',
24
- properties: {
25
- systemId: {
26
- type: 'string',
27
- },
28
- config: {
29
- type: 'object',
30
- description: 'The configuration of the system version.',
31
- },
32
- name: {
33
- type: 'string',
34
- description: 'The name of the system version.',
35
- },
36
- },
37
- },
38
- };
39
-
40
- export const handler = async (client: Scorecard, args: Record<string, unknown> | undefined) => {
41
- const { systemId, ...body } = args as any;
42
- return asTextContentResult(await client.systems.versions.create(systemId, body));
43
- };
44
-
45
- export default { metadata, tool, handler };
@@ -1,52 +0,0 @@
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.handler = exports.tool = exports.metadata = void 0;
5
- const types_1 = require("scorecard-ai-mcp/tools/types");
6
- exports.metadata = {
7
- resource: 'systems',
8
- operation: 'write',
9
- tags: [],
10
- httpMethod: 'post',
11
- httpPath: '/projects/{projectId}/systems',
12
- operationId: 'createSystem',
13
- };
14
- exports.tool = {
15
- name: 'create_systems',
16
- description: 'Create a new system definition that specifies the interface contracts for a component you want to evaluate.\n\nA system acts as a template that defines three key contracts through JSON Schemas:\n1. Input Schema: What data your system accepts (e.g., user queries, context documents)\n2. Output Schema: What data your system produces (e.g., responses, confidence scores)\n3. Config Schema: What parameters can be adjusted (e.g., model selection, temperature)\n\nThis separation lets you evaluate any system as a black box, focusing on its interface rather than implementation details.',
17
- inputSchema: {
18
- type: 'object',
19
- properties: {
20
- projectId: {
21
- type: 'string',
22
- },
23
- configSchema: {
24
- type: 'object',
25
- description: "The schema of the system's configuration.",
26
- },
27
- description: {
28
- type: 'string',
29
- description: 'The description of the system.',
30
- },
31
- inputSchema: {
32
- type: 'object',
33
- description: "The schema of the system's inputs.",
34
- },
35
- name: {
36
- type: 'string',
37
- description: 'The name of the system.',
38
- },
39
- outputSchema: {
40
- type: 'object',
41
- description: "The schema of the system's outputs.",
42
- },
43
- },
44
- },
45
- };
46
- const handler = async (client, args) => {
47
- const { projectId, ...body } = args;
48
- return (0, types_1.asTextContentResult)(await client.systems.create(projectId, body));
49
- };
50
- exports.handler = handler;
51
- exports.default = { metadata: exports.metadata, tool: exports.tool, handler: exports.handler };
52
- //# sourceMappingURL=create-systems.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-systems.js","sourceRoot":"","sources":["../../src/tools/systems/create-systems.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,wkBAAwkB;IAC1kB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;aAClD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yBAAyB;aACvC;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;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,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,48 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
3
- export const metadata = {
4
- resource: 'systems',
5
- operation: 'write',
6
- tags: [],
7
- httpMethod: 'post',
8
- httpPath: '/projects/{projectId}/systems',
9
- operationId: 'createSystem',
10
- };
11
- export const tool = {
12
- name: 'create_systems',
13
- description: 'Create a new system definition that specifies the interface contracts for a component you want to evaluate.\n\nA system acts as a template that defines three key contracts through JSON Schemas:\n1. Input Schema: What data your system accepts (e.g., user queries, context documents)\n2. Output Schema: What data your system produces (e.g., responses, confidence scores)\n3. Config Schema: What parameters can be adjusted (e.g., model selection, temperature)\n\nThis separation lets you evaluate any system as a black box, focusing on its interface rather than implementation details.',
14
- inputSchema: {
15
- type: 'object',
16
- properties: {
17
- projectId: {
18
- type: 'string',
19
- },
20
- configSchema: {
21
- type: 'object',
22
- description: "The schema of the system's configuration.",
23
- },
24
- description: {
25
- type: 'string',
26
- description: 'The description of the system.',
27
- },
28
- inputSchema: {
29
- type: 'object',
30
- description: "The schema of the system's inputs.",
31
- },
32
- name: {
33
- type: 'string',
34
- description: 'The name of the system.',
35
- },
36
- outputSchema: {
37
- type: 'object',
38
- description: "The schema of the system's outputs.",
39
- },
40
- },
41
- },
42
- };
43
- export const handler = async (client, args) => {
44
- const { projectId, ...body } = args;
45
- return asTextContentResult(await client.systems.create(projectId, body));
46
- };
47
- export default { metadata, tool, handler };
48
- //# sourceMappingURL=create-systems.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-systems.mjs","sourceRoot":"","sources":["../../src/tools/systems/create-systems.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,SAAS;IACnB,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,+BAA+B;IACzC,WAAW,EAAE,cAAc;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EACT,wkBAAwkB;IAC1kB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,2CAA2C;aACzD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,gCAAgC;aAC9C;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,oCAAoC;aAClD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yBAAyB;aACvC;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,qCAAqC;aACnD;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,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1,45 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "../..//index.mjs";
3
- import Scorecard from 'scorecard-ai';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=create-systems-versions.d.mts.map
@@ -1,45 +0,0 @@
1
- import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
- import type { Metadata } from "../..//index.js";
3
- import Scorecard from 'scorecard-ai';
4
- export declare const metadata: Metadata;
5
- export declare const tool: Tool;
6
- export declare const handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
7
- declare const _default: {
8
- metadata: Metadata;
9
- tool: {
10
- [x: string]: unknown;
11
- name: string;
12
- inputSchema: {
13
- [x: string]: unknown;
14
- type: "object";
15
- properties?: {
16
- [x: string]: unknown;
17
- } | undefined;
18
- required?: string[] | undefined;
19
- };
20
- title?: string | undefined;
21
- description?: string | undefined;
22
- outputSchema?: {
23
- [x: string]: unknown;
24
- type: "object";
25
- properties?: {
26
- [x: string]: unknown;
27
- } | undefined;
28
- required?: string[] | undefined;
29
- } | undefined;
30
- annotations?: {
31
- [x: string]: unknown;
32
- title?: string | undefined;
33
- readOnlyHint?: boolean | undefined;
34
- destructiveHint?: boolean | undefined;
35
- idempotentHint?: boolean | undefined;
36
- openWorldHint?: boolean | undefined;
37
- } | undefined;
38
- _meta?: {
39
- [x: string]: unknown;
40
- } | undefined;
41
- };
42
- handler: (client: Scorecard, args: Record<string, unknown> | undefined) => Promise<import("scorecard-ai-mcp/tools/types").ToolCallResult>;
43
- };
44
- export default _default;
45
- //# sourceMappingURL=create-systems-versions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-systems-versions.js","sourceRoot":"","sources":["../../../src/tools/systems/versions/create-systems-versions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAmE;AAMtD,QAAA,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEW,QAAA,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,oqBAAoqB;IACtqB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;SACF;KACF;CACF,CAAC;AAEK,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1C,OAAO,IAAA,2BAAmB,EAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAHW,QAAA,OAAO,WAGlB;AAEF,kBAAe,EAAE,QAAQ,EAAR,gBAAQ,EAAE,IAAI,EAAJ,YAAI,EAAE,OAAO,EAAP,eAAO,EAAE,CAAC"}
@@ -1,36 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { asTextContentResult } from 'scorecard-ai-mcp/tools/types';
3
- export const metadata = {
4
- resource: 'systems.versions',
5
- operation: 'write',
6
- tags: [],
7
- httpMethod: 'post',
8
- httpPath: '/systems/{systemId}/configs',
9
- operationId: 'createSystemVersion',
10
- };
11
- export const tool = {
12
- name: 'create_systems_versions',
13
- description: "Create a new version for a system.\n\nEach version contains specific parameter values that match the system's `configSchema` - things like model parameters, thresholds, or processing options.\nOnce created, versions cannot be modified, ensuring stable reference points for evaluations.\n\nWhen creating a system version:\n- The `config` object is validated against the parent system's `configSchema`.\n- System versions with validation errors are still stored, with errors included in the response.\n- Validation errors indicate fields that don't match the schema but don't prevent creation.\n- Having validation errors may affect how some evaluation metrics are calculated.",
14
- inputSchema: {
15
- type: 'object',
16
- properties: {
17
- systemId: {
18
- type: 'string',
19
- },
20
- config: {
21
- type: 'object',
22
- description: 'The configuration of the system version.',
23
- },
24
- name: {
25
- type: 'string',
26
- description: 'The name of the system version.',
27
- },
28
- },
29
- },
30
- };
31
- export const handler = async (client, args) => {
32
- const { systemId, ...body } = args;
33
- return asTextContentResult(await client.systems.versions.create(systemId, body));
34
- };
35
- export default { metadata, tool, handler };
36
- //# sourceMappingURL=create-systems-versions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-systems-versions.mjs","sourceRoot":"","sources":["../../../src/tools/systems/versions/create-systems-versions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,mBAAmB,EAAE,MAAM,8BAA8B;AAMlE,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,QAAQ,EAAE,kBAAkB;IAC5B,SAAS,EAAE,OAAO;IAClB,IAAI,EAAE,EAAE;IACR,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,6BAA6B;IACvC,WAAW,EAAE,qBAAqB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAS;IACxB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EACT,oqBAAoqB;IACtqB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,0CAA0C;aACxD;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,iCAAiC;aAC/C;SACF;KACF;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,MAAiB,EAAE,IAAyC,EAAE,EAAE;IAC5F,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,IAAW,CAAC;IAC1C,OAAO,mBAAmB,CAAC,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;AACnF,CAAC,CAAC;AAEF,eAAe,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-systems-versions.d.mts","sourceRoot":"","sources":["../../../src/tools/systems/versions/list-systems-versions.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,IAsBlB,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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-systems-versions.d.ts","sourceRoot":"","sources":["../../../src/tools/systems/versions/list-systems-versions.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,IAsBlB,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"}