scorecard-ai-mcp 1.0.0-alpha.4
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/LICENSE +201 -0
- package/README.md +228 -0
- package/compat.d.mts +53 -0
- package/compat.d.mts.map +1 -0
- package/compat.d.ts +53 -0
- package/compat.d.ts.map +1 -0
- package/compat.js +351 -0
- package/compat.js.map +1 -0
- package/compat.mjs +338 -0
- package/compat.mjs.map +1 -0
- package/compat.test.d.mts +2 -0
- package/compat.test.d.mts.map +1 -0
- package/compat.test.d.ts +2 -0
- package/compat.test.d.ts.map +1 -0
- package/compat.test.js +950 -0
- package/compat.test.js.map +1 -0
- package/compat.test.mjs +948 -0
- package/compat.test.mjs.map +1 -0
- package/index.d.mts +2 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/index.js +89 -0
- package/index.js.map +1 -0
- package/index.mjs +86 -0
- package/index.mjs.map +1 -0
- package/options.d.mts +9 -0
- package/options.d.mts.map +1 -0
- package/options.d.ts +9 -0
- package/options.d.ts.map +1 -0
- package/options.js +321 -0
- package/options.js.map +1 -0
- package/options.mjs +314 -0
- package/options.mjs.map +1 -0
- package/options.test.d.mts +2 -0
- package/options.test.d.mts.map +1 -0
- package/options.test.d.ts +2 -0
- package/options.test.d.ts.map +1 -0
- package/options.test.js +154 -0
- package/options.test.js.map +1 -0
- package/options.test.mjs +152 -0
- package/options.test.mjs.map +1 -0
- package/package.json +129 -0
- package/server.d.mts +33 -0
- package/server.d.mts.map +1 -0
- package/server.d.ts +33 -0
- package/server.d.ts.map +1 -0
- package/server.js +85 -0
- package/server.js.map +1 -0
- package/server.mjs +74 -0
- package/server.mjs.map +1 -0
- package/src/compat.test.ts +1068 -0
- package/src/compat.ts +437 -0
- package/src/index.ts +106 -0
- package/src/options.test.ts +193 -0
- package/src/options.ts +339 -0
- package/src/server.ts +98 -0
- package/src/tools/index.ts +129 -0
- package/src/tools/projects/list-projects.ts +39 -0
- package/src/tools/records/create-records.ts +47 -0
- package/src/tools/runs/create-runs.ts +46 -0
- package/src/tools/runs/update-runs.ts +44 -0
- package/src/tools/system-configs/create-system-configs.ts +59 -0
- package/src/tools/system-configs/get-system-configs.ts +34 -0
- package/src/tools/system-configs/list-system-configs.ts +42 -0
- package/src/tools/systems/create-systems.ts +52 -0
- package/src/tools/systems/delete-systems.ts +31 -0
- package/src/tools/systems/get-systems.ts +31 -0
- package/src/tools/systems/list-systems.ts +41 -0
- package/src/tools/systems/update-systems.ts +52 -0
- package/src/tools/testcases/create-testcases.ts +47 -0
- package/src/tools/testcases/delete-testcases.ts +35 -0
- package/src/tools/testcases/get-testcases.ts +31 -0
- package/src/tools/testcases/list-testcases.ts +41 -0
- package/src/tools/testcases/update-testcases.ts +35 -0
- package/src/tools/testsets/create-testsets.ts +73 -0
- package/src/tools/testsets/delete-testsets.ts +31 -0
- package/src/tools/testsets/get-testsets.ts +31 -0
- package/src/tools/testsets/list-testsets.ts +41 -0
- package/src/tools/testsets/update-testsets.ts +73 -0
- package/src/tools.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/tools/index.d.mts +21 -0
- package/tools/index.d.mts.map +1 -0
- package/tools/index.d.ts +21 -0
- package/tools/index.d.ts.map +1 -0
- package/tools/index.js +99 -0
- package/tools/index.js.map +1 -0
- package/tools/index.mjs +92 -0
- package/tools/index.mjs.map +1 -0
- package/tools/projects/list-projects.d.mts +24 -0
- package/tools/projects/list-projects.d.mts.map +1 -0
- package/tools/projects/list-projects.d.ts +24 -0
- package/tools/projects/list-projects.d.ts.map +1 -0
- package/tools/projects/list-projects.js +33 -0
- package/tools/projects/list-projects.js.map +1 -0
- package/tools/projects/list-projects.mjs +29 -0
- package/tools/projects/list-projects.mjs.map +1 -0
- package/tools/records/create-records.d.mts +24 -0
- package/tools/records/create-records.d.mts.map +1 -0
- package/tools/records/create-records.d.ts +24 -0
- package/tools/records/create-records.d.ts.map +1 -0
- package/tools/records/create-records.js +44 -0
- package/tools/records/create-records.js.map +1 -0
- package/tools/records/create-records.mjs +40 -0
- package/tools/records/create-records.mjs.map +1 -0
- package/tools/runs/create-runs.d.mts +24 -0
- package/tools/runs/create-runs.d.mts.map +1 -0
- package/tools/runs/create-runs.d.ts +24 -0
- package/tools/runs/create-runs.d.ts.map +1 -0
- package/tools/runs/create-runs.js +43 -0
- package/tools/runs/create-runs.js.map +1 -0
- package/tools/runs/create-runs.mjs +39 -0
- package/tools/runs/create-runs.mjs.map +1 -0
- package/tools/runs/update-runs.d.mts +24 -0
- package/tools/runs/update-runs.d.mts.map +1 -0
- package/tools/runs/update-runs.d.ts +24 -0
- package/tools/runs/update-runs.d.ts.map +1 -0
- package/tools/runs/update-runs.js +41 -0
- package/tools/runs/update-runs.js.map +1 -0
- package/tools/runs/update-runs.mjs +37 -0
- package/tools/runs/update-runs.mjs.map +1 -0
- package/tools/system-configs/create-system-configs.d.mts +24 -0
- package/tools/system-configs/create-system-configs.d.mts.map +1 -0
- package/tools/system-configs/create-system-configs.d.ts +24 -0
- package/tools/system-configs/create-system-configs.d.ts.map +1 -0
- package/tools/system-configs/create-system-configs.js +54 -0
- package/tools/system-configs/create-system-configs.js.map +1 -0
- package/tools/system-configs/create-system-configs.mjs +50 -0
- package/tools/system-configs/create-system-configs.mjs.map +1 -0
- package/tools/system-configs/get-system-configs.d.mts +24 -0
- package/tools/system-configs/get-system-configs.d.mts.map +1 -0
- package/tools/system-configs/get-system-configs.d.ts +24 -0
- package/tools/system-configs/get-system-configs.d.ts.map +1 -0
- package/tools/system-configs/get-system-configs.js +31 -0
- package/tools/system-configs/get-system-configs.js.map +1 -0
- package/tools/system-configs/get-system-configs.mjs +27 -0
- package/tools/system-configs/get-system-configs.mjs.map +1 -0
- package/tools/system-configs/list-system-configs.d.mts +24 -0
- package/tools/system-configs/list-system-configs.d.mts.map +1 -0
- package/tools/system-configs/list-system-configs.d.ts +24 -0
- package/tools/system-configs/list-system-configs.d.ts.map +1 -0
- package/tools/system-configs/list-system-configs.js +36 -0
- package/tools/system-configs/list-system-configs.js.map +1 -0
- package/tools/system-configs/list-system-configs.mjs +32 -0
- package/tools/system-configs/list-system-configs.mjs.map +1 -0
- package/tools/systems/create-systems.d.mts +24 -0
- package/tools/systems/create-systems.d.mts.map +1 -0
- package/tools/systems/create-systems.d.ts +24 -0
- package/tools/systems/create-systems.d.ts.map +1 -0
- package/tools/systems/create-systems.js +48 -0
- package/tools/systems/create-systems.js.map +1 -0
- package/tools/systems/create-systems.mjs +44 -0
- package/tools/systems/create-systems.mjs.map +1 -0
- package/tools/systems/delete-systems.d.mts +24 -0
- package/tools/systems/delete-systems.d.mts.map +1 -0
- package/tools/systems/delete-systems.d.ts +24 -0
- package/tools/systems/delete-systems.d.ts.map +1 -0
- package/tools/systems/delete-systems.js +28 -0
- package/tools/systems/delete-systems.js.map +1 -0
- package/tools/systems/delete-systems.mjs +24 -0
- package/tools/systems/delete-systems.mjs.map +1 -0
- package/tools/systems/get-systems.d.mts +24 -0
- package/tools/systems/get-systems.d.mts.map +1 -0
- package/tools/systems/get-systems.d.ts +24 -0
- package/tools/systems/get-systems.d.ts.map +1 -0
- package/tools/systems/get-systems.js +28 -0
- package/tools/systems/get-systems.js.map +1 -0
- package/tools/systems/get-systems.mjs +24 -0
- package/tools/systems/get-systems.mjs.map +1 -0
- package/tools/systems/list-systems.d.mts +24 -0
- package/tools/systems/list-systems.d.mts.map +1 -0
- package/tools/systems/list-systems.d.ts +24 -0
- package/tools/systems/list-systems.d.ts.map +1 -0
- package/tools/systems/list-systems.js +36 -0
- package/tools/systems/list-systems.js.map +1 -0
- package/tools/systems/list-systems.mjs +32 -0
- package/tools/systems/list-systems.mjs.map +1 -0
- package/tools/systems/update-systems.d.mts +24 -0
- package/tools/systems/update-systems.d.mts.map +1 -0
- package/tools/systems/update-systems.d.ts +24 -0
- package/tools/systems/update-systems.d.ts.map +1 -0
- package/tools/systems/update-systems.js +48 -0
- package/tools/systems/update-systems.js.map +1 -0
- package/tools/systems/update-systems.mjs +44 -0
- package/tools/systems/update-systems.mjs.map +1 -0
- package/tools/testcases/create-testcases.d.mts +24 -0
- package/tools/testcases/create-testcases.d.mts.map +1 -0
- package/tools/testcases/create-testcases.d.ts +24 -0
- package/tools/testcases/create-testcases.d.ts.map +1 -0
- package/tools/testcases/create-testcases.js +43 -0
- package/tools/testcases/create-testcases.js.map +1 -0
- package/tools/testcases/create-testcases.mjs +39 -0
- package/tools/testcases/create-testcases.mjs.map +1 -0
- package/tools/testcases/delete-testcases.d.mts +24 -0
- package/tools/testcases/delete-testcases.d.mts.map +1 -0
- package/tools/testcases/delete-testcases.d.ts +24 -0
- package/tools/testcases/delete-testcases.d.ts.map +1 -0
- package/tools/testcases/delete-testcases.js +32 -0
- package/tools/testcases/delete-testcases.js.map +1 -0
- package/tools/testcases/delete-testcases.mjs +28 -0
- package/tools/testcases/delete-testcases.mjs.map +1 -0
- package/tools/testcases/get-testcases.d.mts +24 -0
- package/tools/testcases/get-testcases.d.mts.map +1 -0
- package/tools/testcases/get-testcases.d.ts +24 -0
- package/tools/testcases/get-testcases.d.ts.map +1 -0
- package/tools/testcases/get-testcases.js +28 -0
- package/tools/testcases/get-testcases.js.map +1 -0
- package/tools/testcases/get-testcases.mjs +24 -0
- package/tools/testcases/get-testcases.mjs.map +1 -0
- package/tools/testcases/list-testcases.d.mts +24 -0
- package/tools/testcases/list-testcases.d.mts.map +1 -0
- package/tools/testcases/list-testcases.d.ts +24 -0
- package/tools/testcases/list-testcases.d.ts.map +1 -0
- package/tools/testcases/list-testcases.js +36 -0
- package/tools/testcases/list-testcases.js.map +1 -0
- package/tools/testcases/list-testcases.mjs +32 -0
- package/tools/testcases/list-testcases.mjs.map +1 -0
- package/tools/testcases/update-testcases.d.mts +24 -0
- package/tools/testcases/update-testcases.d.mts.map +1 -0
- package/tools/testcases/update-testcases.d.ts +24 -0
- package/tools/testcases/update-testcases.d.ts.map +1 -0
- package/tools/testcases/update-testcases.js +32 -0
- package/tools/testcases/update-testcases.js.map +1 -0
- package/tools/testcases/update-testcases.mjs +28 -0
- package/tools/testcases/update-testcases.mjs.map +1 -0
- package/tools/testsets/create-testsets.d.mts +24 -0
- package/tools/testsets/create-testsets.d.mts.map +1 -0
- package/tools/testsets/create-testsets.d.ts +24 -0
- package/tools/testsets/create-testsets.d.ts.map +1 -0
- package/tools/testsets/create-testsets.js +68 -0
- package/tools/testsets/create-testsets.js.map +1 -0
- package/tools/testsets/create-testsets.mjs +64 -0
- package/tools/testsets/create-testsets.mjs.map +1 -0
- package/tools/testsets/delete-testsets.d.mts +24 -0
- package/tools/testsets/delete-testsets.d.mts.map +1 -0
- package/tools/testsets/delete-testsets.d.ts +24 -0
- package/tools/testsets/delete-testsets.d.ts.map +1 -0
- package/tools/testsets/delete-testsets.js +28 -0
- package/tools/testsets/delete-testsets.js.map +1 -0
- package/tools/testsets/delete-testsets.mjs +24 -0
- package/tools/testsets/delete-testsets.mjs.map +1 -0
- package/tools/testsets/get-testsets.d.mts +24 -0
- package/tools/testsets/get-testsets.d.mts.map +1 -0
- package/tools/testsets/get-testsets.d.ts +24 -0
- package/tools/testsets/get-testsets.d.ts.map +1 -0
- package/tools/testsets/get-testsets.js +28 -0
- package/tools/testsets/get-testsets.js.map +1 -0
- package/tools/testsets/get-testsets.mjs +24 -0
- package/tools/testsets/get-testsets.mjs.map +1 -0
- package/tools/testsets/list-testsets.d.mts +24 -0
- package/tools/testsets/list-testsets.d.mts.map +1 -0
- package/tools/testsets/list-testsets.d.ts +24 -0
- package/tools/testsets/list-testsets.d.ts.map +1 -0
- package/tools/testsets/list-testsets.js +36 -0
- package/tools/testsets/list-testsets.js.map +1 -0
- package/tools/testsets/list-testsets.mjs +32 -0
- package/tools/testsets/list-testsets.mjs.map +1 -0
- package/tools/testsets/update-testsets.d.mts +24 -0
- package/tools/testsets/update-testsets.d.mts.map +1 -0
- package/tools/testsets/update-testsets.d.ts +24 -0
- package/tools/testsets/update-testsets.d.ts.map +1 -0
- package/tools/testsets/update-testsets.js +68 -0
- package/tools/testsets/update-testsets.js.map +1 -0
- package/tools/testsets/update-testsets.mjs +64 -0
- package/tools/testsets/update-testsets.mjs.map +1 -0
- package/tools.d.mts +2 -0
- package/tools.d.mts.map +1 -0
- package/tools.d.ts +2 -0
- package/tools.d.ts.map +1 -0
- package/tools.js +18 -0
- package/tools.js.map +1 -0
- package/tools.mjs +2 -0
- package/tools.mjs.map +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2025 Scorecard
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Scorecard TypeScript MCP Server
|
|
2
|
+
|
|
3
|
+
It is generated with [Stainless](https://www.stainless.com/).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
### Direct invocation
|
|
8
|
+
|
|
9
|
+
You can run the MCP Server directly via `npx`:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
export SCORECARD_API_KEY="My Bearer Token"
|
|
13
|
+
npx -y scorecard-ai-mcp
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Via MCP Client
|
|
17
|
+
|
|
18
|
+
There is a partial list of existing clients at [modelcontextprotocol.io](https://modelcontextprotocol.io/clients). If you already
|
|
19
|
+
have a client, consult their documentation to install the MCP server.
|
|
20
|
+
|
|
21
|
+
For clients with a configuration JSON, it might look something like this:
|
|
22
|
+
|
|
23
|
+
```json
|
|
24
|
+
{
|
|
25
|
+
"mcpServers": {
|
|
26
|
+
"scorecard_ai_api": {
|
|
27
|
+
"command": "npx",
|
|
28
|
+
"args": ["-y", "scorecard-ai-mcp", "--client=claude"],
|
|
29
|
+
"env": {
|
|
30
|
+
"SCORECARD_API_KEY": "My Bearer Token"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Filtering tools
|
|
38
|
+
|
|
39
|
+
You can run the package on the command line to discover and filter the set of tools that are exposed by the
|
|
40
|
+
MCP Server. This can be helpful for large APIs where including all endpoints at once is too much for your AI's
|
|
41
|
+
context window.
|
|
42
|
+
|
|
43
|
+
You can filter by multiple aspects:
|
|
44
|
+
|
|
45
|
+
- `--tool` includes a specific tool by name
|
|
46
|
+
- `--resource` includes all tools under a specific resource, and can have wildcards, e.g. `my.resource*`
|
|
47
|
+
- `--operation` includes just read (get/list) or just write operations
|
|
48
|
+
|
|
49
|
+
See more information with `--help`.
|
|
50
|
+
|
|
51
|
+
All of these command-line options can be repeated, combined together, and have corresponding exclusion versions (e.g. `--no-tool`).
|
|
52
|
+
|
|
53
|
+
Use `--list` to see the list of available tools, or see below.
|
|
54
|
+
|
|
55
|
+
### Specifying the MCP Client
|
|
56
|
+
|
|
57
|
+
Different clients have varying abilities to handle arbitrary tools and schemas.
|
|
58
|
+
|
|
59
|
+
You can specify the client you are using with the `--client` argument, and the MCP server will automatically
|
|
60
|
+
serve tools and schemas that are more compatible with that client.
|
|
61
|
+
|
|
62
|
+
- `--client=<type>`: Set all capabilities based on a known MCP client
|
|
63
|
+
|
|
64
|
+
- Valid values: `openai-agents`, `claude`, `claude-code`, `cursor`
|
|
65
|
+
- Example: `--client=cursor`
|
|
66
|
+
|
|
67
|
+
Additionally, if you have a client not on the above list, or the client has gotten better
|
|
68
|
+
over time, you can manually enable or disable certain capabilities:
|
|
69
|
+
|
|
70
|
+
- `--capability=<name>`: Specify individual client capabilities
|
|
71
|
+
- Available capabilities:
|
|
72
|
+
- `top-level-unions`: Enable support for top-level unions in tool schemas
|
|
73
|
+
- `valid-json`: Enable JSON string parsing for arguments
|
|
74
|
+
- `refs`: Enable support for $ref pointers in schemas
|
|
75
|
+
- `unions`: Enable support for union types (anyOf) in schemas
|
|
76
|
+
- `formats`: Enable support for format validations in schemas (e.g. date-time, email)
|
|
77
|
+
- `tool-name-length=N`: Set maximum tool name length to N characters
|
|
78
|
+
- Example: `--capability=top-level-unions --capability=tool-name-length=40`
|
|
79
|
+
- Example: `--capability=top-level-unions,tool-name-length=40`
|
|
80
|
+
|
|
81
|
+
### Examples
|
|
82
|
+
|
|
83
|
+
1. Filter for read operations on cards:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
--resource=cards --operation=read
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
2. Exclude specific tools while including others:
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
--resource=cards --no-tool=create_cards
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
3. Configure for Cursor client with custom max tool name length:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
--client=cursor --capability=tool-name-length=40
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
4. Complex filtering with multiple criteria:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
--resource=cards,accounts --operation=read --tag=kyc --no-tool=create_cards
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Importing the tools and server individually
|
|
108
|
+
|
|
109
|
+
```js
|
|
110
|
+
// Import the server, generated endpoints, or the init function
|
|
111
|
+
import { server, endpoints, init } from "scorecard-ai-mcp/server";
|
|
112
|
+
|
|
113
|
+
// import a specific tool
|
|
114
|
+
import listProjects from "scorecard-ai-mcp/tools/projects/list-projects";
|
|
115
|
+
|
|
116
|
+
// initialize the server and all endpoints
|
|
117
|
+
init({ server, endpoints });
|
|
118
|
+
|
|
119
|
+
// manually start server
|
|
120
|
+
const transport = new StdioServerTransport();
|
|
121
|
+
await server.connect(transport);
|
|
122
|
+
|
|
123
|
+
// or initialize your own server with specific tools
|
|
124
|
+
const myServer = new McpServer(...);
|
|
125
|
+
|
|
126
|
+
// define your own endpoint
|
|
127
|
+
const myCustomEndpoint = {
|
|
128
|
+
tool: {
|
|
129
|
+
name: 'my_custom_tool',
|
|
130
|
+
description: 'My custom tool',
|
|
131
|
+
inputSchema: zodToJsonSchema(z.object({ a_property: z.string() })),
|
|
132
|
+
},
|
|
133
|
+
handler: async (client: client, args: any) => {
|
|
134
|
+
return { myResponse: 'Hello world!' };
|
|
135
|
+
})
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
// initialize the server with your custom endpoints
|
|
139
|
+
init({ server: myServer, endpoints: [listProjects, myCustomEndpoint] });
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Available Tools
|
|
143
|
+
|
|
144
|
+
The following tools are available in this MCP server.
|
|
145
|
+
|
|
146
|
+
### Resource `projects`:
|
|
147
|
+
|
|
148
|
+
- `list_projects` (`read`): Retrieve a paginated list of all Projects. Projects are ordered by creation date, with oldest Projects first.
|
|
149
|
+
|
|
150
|
+
### Resource `testsets`:
|
|
151
|
+
|
|
152
|
+
- `create_testsets` (`write`): Create a new Testset for a Project. The Testset will be created in the Project specified in the path.
|
|
153
|
+
- `update_testsets` (`write`): Update a Testset. Only the fields provided in the request body will be updated.
|
|
154
|
+
If a field is provided, the new content will replace the existing content.
|
|
155
|
+
If a field is not provided, the existing content will remain unchanged.
|
|
156
|
+
|
|
157
|
+
When updating the schema:
|
|
158
|
+
|
|
159
|
+
- If field mappings are not provided and existing mappings reference fields that no longer exist, those mappings will be automatically removed
|
|
160
|
+
- To preserve all existing mappings, ensure all referenced fields remain in the updated schema
|
|
161
|
+
- For complete control, provide both schema and fieldMapping when updating the schema
|
|
162
|
+
|
|
163
|
+
* `list_testsets` (`read`): Retrieve a paginated list of Testsets belonging to a Project.
|
|
164
|
+
* `delete_testsets` (`write`): Delete Testset
|
|
165
|
+
* `get_testsets` (`read`): Get Testset by ID
|
|
166
|
+
|
|
167
|
+
### Resource `testcases`:
|
|
168
|
+
|
|
169
|
+
- `create_testcases` (`write`): Create multiple Testcases in the specified Testset.
|
|
170
|
+
- `update_testcases` (`write`): Replace the data of an existing Testcase while keeping its ID.
|
|
171
|
+
- `list_testcases` (`read`): Retrieve a paginated list of Testcases belonging to a Testset.
|
|
172
|
+
- `delete_testcases` (`write`): Delete multiple Testcases by their IDs.
|
|
173
|
+
- `get_testcases` (`read`): Retrieve a specific Testcase by ID.
|
|
174
|
+
|
|
175
|
+
### Resource `runs`:
|
|
176
|
+
|
|
177
|
+
- `create_runs` (`write`): Create a new Run.
|
|
178
|
+
- `update_runs` (`write`): Update the status of a Run.
|
|
179
|
+
|
|
180
|
+
### Resource `records`:
|
|
181
|
+
|
|
182
|
+
- `create_records` (`write`): Create a new Record in a Run.
|
|
183
|
+
|
|
184
|
+
### Resource `systems`:
|
|
185
|
+
|
|
186
|
+
- `create_systems` (`write`): Create a new system definition that specifies the interface contracts for a component you want to evaluate.
|
|
187
|
+
|
|
188
|
+
A system acts as a template that defines three key contracts through JSON Schemas:
|
|
189
|
+
|
|
190
|
+
1. Input Schema: What data your system accepts (e.g., user queries, context documents)
|
|
191
|
+
2. Output Schema: What data your system produces (e.g., responses, confidence scores)
|
|
192
|
+
3. Config Schema: What parameters can be adjusted (e.g., model selection, temperature)
|
|
193
|
+
|
|
194
|
+
This separation lets you evaluate any system as a black box, focusing on its interface rather than implementation details.
|
|
195
|
+
|
|
196
|
+
- `update_systems` (`write`): Update an existing system definition. Only the fields provided in the request body will be updated.
|
|
197
|
+
If a field is provided, the new content will replace the existing content.
|
|
198
|
+
If a field is not provided, the existing content will remain unchanged.
|
|
199
|
+
|
|
200
|
+
When updating schemas:
|
|
201
|
+
|
|
202
|
+
- The system will accept your changes regardless of compatibility with existing configurations
|
|
203
|
+
- Schema updates won't invalidate existing evaluations or configurations
|
|
204
|
+
- For significant redesigns, creating a new system definition provides a cleaner separation
|
|
205
|
+
|
|
206
|
+
* `list_systems` (`read`): Retrieve a paginated list of all systems. Systems are ordered by creation date.
|
|
207
|
+
* `delete_systems` (`write`): Delete a system definition by ID. This will not delete associated system configurations.
|
|
208
|
+
* `get_systems` (`read`): Retrieve a specific system by ID.
|
|
209
|
+
|
|
210
|
+
### Resource `system_configs`:
|
|
211
|
+
|
|
212
|
+
- `create_system_configs` (`write`): Create a new configuration for a system.
|
|
213
|
+
|
|
214
|
+
Each configuration contains specific parameter values that match the system's configSchema - things like model parameters, thresholds, or processing options.
|
|
215
|
+
Once created, configurations cannot be modified, ensuring stable reference points for evaluations.
|
|
216
|
+
|
|
217
|
+
When creating a configuration:
|
|
218
|
+
|
|
219
|
+
- The 'config' object is validated against the parent system's configSchema
|
|
220
|
+
- Configurations with validation errors are still stored, with errors included in the response
|
|
221
|
+
- Validation errors indicate fields that don't match the schema but don't prevent creation
|
|
222
|
+
- Having validation errors may affect how some evaluation metrics are calculated
|
|
223
|
+
|
|
224
|
+
* `list_system_configs` (`read`): Retrieve a paginated list of configurations for a specific system.
|
|
225
|
+
|
|
226
|
+
System configurations provide concrete parameter values for a System Under Test, defining exactly how the system should be configured during an evaluation run.
|
|
227
|
+
|
|
228
|
+
- `get_system_configs` (`read`): Retrieve a specific system configuration by ID.
|
package/compat.d.mts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { Endpoint } from "./tools.mjs";
|
|
3
|
+
export interface ClientCapabilities {
|
|
4
|
+
topLevelUnions: boolean;
|
|
5
|
+
validJson: boolean;
|
|
6
|
+
refs: boolean;
|
|
7
|
+
unions: boolean;
|
|
8
|
+
formats: boolean;
|
|
9
|
+
toolNameLength: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultClientCapabilities: ClientCapabilities;
|
|
12
|
+
/**
|
|
13
|
+
* Attempts to parse strings into JSON objects if initial schema
|
|
14
|
+
* validation fails.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseEmbeddedJSON(args: Record<string, unknown>, schema: Record<string, unknown>): Record<string, unknown>;
|
|
17
|
+
export type JSONSchema = {
|
|
18
|
+
type?: string;
|
|
19
|
+
properties?: Record<string, JSONSchema>;
|
|
20
|
+
required?: string[];
|
|
21
|
+
anyOf?: JSONSchema[];
|
|
22
|
+
$ref?: string;
|
|
23
|
+
$defs?: Record<string, JSONSchema>;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Truncates tool names to the specified length while ensuring uniqueness.
|
|
28
|
+
* If truncation would cause duplicate names, appends a number to make them unique.
|
|
29
|
+
*/
|
|
30
|
+
export declare function truncateToolNames(names: string[], maxLength: number): Map<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Removes top-level unions from a tool by splitting it into multiple tools,
|
|
33
|
+
* one for each variant in the union.
|
|
34
|
+
*/
|
|
35
|
+
export declare function removeTopLevelUnions(tool: Tool): Tool[];
|
|
36
|
+
/**
|
|
37
|
+
* Inlines all $refs in a schema, eliminating $defs.
|
|
38
|
+
* If a circular reference is detected, the circular property is removed.
|
|
39
|
+
*/
|
|
40
|
+
export declare function inlineRefs(schema: JSONSchema): JSONSchema;
|
|
41
|
+
/**
|
|
42
|
+
* Removes anyOf fields from a schema, using only the first variant.
|
|
43
|
+
*/
|
|
44
|
+
export declare function removeAnyOf(schema: JSONSchema): JSONSchema;
|
|
45
|
+
/**
|
|
46
|
+
* Removes format fields from a schema and appends them to the description.
|
|
47
|
+
*/
|
|
48
|
+
export declare function removeFormats(schema: JSONSchema, formatsCapability: boolean): JSONSchema;
|
|
49
|
+
/**
|
|
50
|
+
* Applies all compatibility transformations to the endpoints based on the provided capabilities.
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyCompatibilityTransformations(endpoints: Endpoint[], capabilities: ClientCapabilities): Endpoint[];
|
|
53
|
+
//# sourceMappingURL=compat.d.mts.map
|
package/compat.d.mts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.d.mts","sourceRoot":"","sources":["src/compat.ts"],"names":[],"mappings":"OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,EAAE,QAAQ,EAAE;AAKnB,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,yBAAyB,EAAE,kBAOvC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2BAyB/F;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAwCzF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAyCvD;AA+BD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAazD;AAoED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA0C1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAkCxF;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,kBAAkB,GAC/B,QAAQ,EAAE,CAiEZ"}
|
package/compat.d.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import { Endpoint } from "./tools.js";
|
|
3
|
+
export interface ClientCapabilities {
|
|
4
|
+
topLevelUnions: boolean;
|
|
5
|
+
validJson: boolean;
|
|
6
|
+
refs: boolean;
|
|
7
|
+
unions: boolean;
|
|
8
|
+
formats: boolean;
|
|
9
|
+
toolNameLength: number | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultClientCapabilities: ClientCapabilities;
|
|
12
|
+
/**
|
|
13
|
+
* Attempts to parse strings into JSON objects if initial schema
|
|
14
|
+
* validation fails.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseEmbeddedJSON(args: Record<string, unknown>, schema: Record<string, unknown>): Record<string, unknown>;
|
|
17
|
+
export type JSONSchema = {
|
|
18
|
+
type?: string;
|
|
19
|
+
properties?: Record<string, JSONSchema>;
|
|
20
|
+
required?: string[];
|
|
21
|
+
anyOf?: JSONSchema[];
|
|
22
|
+
$ref?: string;
|
|
23
|
+
$defs?: Record<string, JSONSchema>;
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Truncates tool names to the specified length while ensuring uniqueness.
|
|
28
|
+
* If truncation would cause duplicate names, appends a number to make them unique.
|
|
29
|
+
*/
|
|
30
|
+
export declare function truncateToolNames(names: string[], maxLength: number): Map<string, string>;
|
|
31
|
+
/**
|
|
32
|
+
* Removes top-level unions from a tool by splitting it into multiple tools,
|
|
33
|
+
* one for each variant in the union.
|
|
34
|
+
*/
|
|
35
|
+
export declare function removeTopLevelUnions(tool: Tool): Tool[];
|
|
36
|
+
/**
|
|
37
|
+
* Inlines all $refs in a schema, eliminating $defs.
|
|
38
|
+
* If a circular reference is detected, the circular property is removed.
|
|
39
|
+
*/
|
|
40
|
+
export declare function inlineRefs(schema: JSONSchema): JSONSchema;
|
|
41
|
+
/**
|
|
42
|
+
* Removes anyOf fields from a schema, using only the first variant.
|
|
43
|
+
*/
|
|
44
|
+
export declare function removeAnyOf(schema: JSONSchema): JSONSchema;
|
|
45
|
+
/**
|
|
46
|
+
* Removes format fields from a schema and appends them to the description.
|
|
47
|
+
*/
|
|
48
|
+
export declare function removeFormats(schema: JSONSchema, formatsCapability: boolean): JSONSchema;
|
|
49
|
+
/**
|
|
50
|
+
* Applies all compatibility transformations to the endpoints based on the provided capabilities.
|
|
51
|
+
*/
|
|
52
|
+
export declare function applyCompatibilityTransformations(endpoints: Endpoint[], capabilities: ClientCapabilities): Endpoint[];
|
|
53
|
+
//# sourceMappingURL=compat.d.ts.map
|
package/compat.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["src/compat.ts"],"names":[],"mappings":"OAAO,EAAE,IAAI,EAAE,MAAM,oCAAoC;OAClD,EAAE,QAAQ,EAAE;AAKnB,MAAM,WAAW,kBAAkB;IACjC,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,eAAO,MAAM,yBAAyB,EAAE,kBAOvC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,2BAyB/F;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IACnC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAwCzF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,CAyCvD;AA+BD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CAazD;AAoED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,UAAU,GAAG,UAAU,CA0C1D;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,OAAO,GAAG,UAAU,CAkCxF;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAC/C,SAAS,EAAE,QAAQ,EAAE,EACrB,YAAY,EAAE,kBAAkB,GAC/B,QAAQ,EAAE,CAiEZ"}
|