@dalmia/calibrate-mcp 0.0.32 → 0.0.34

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 (105) hide show
  1. package/bin/mcp-server.js +576 -104
  2. package/bin/mcp-server.js.map +27 -14
  3. package/esm/funcs/annotatorsCreate.d.ts +16 -0
  4. package/esm/funcs/annotatorsCreate.d.ts.map +1 -0
  5. package/esm/funcs/annotatorsCreate.js +86 -0
  6. package/esm/funcs/annotatorsCreate.js.map +1 -0
  7. package/esm/funcs/annotatorsList.d.ts +16 -0
  8. package/esm/funcs/annotatorsList.d.ts.map +1 -0
  9. package/esm/funcs/annotatorsList.js +85 -0
  10. package/esm/funcs/annotatorsList.js.map +1 -0
  11. package/esm/funcs/annotatorsUpdate.d.ts +16 -0
  12. package/esm/funcs/annotatorsUpdate.d.ts.map +1 -0
  13. package/esm/funcs/annotatorsUpdate.js +92 -0
  14. package/esm/funcs/annotatorsUpdate.js.map +1 -0
  15. package/esm/landing-page.js +1 -1
  16. package/esm/lib/config.d.ts +2 -2
  17. package/esm/lib/config.js +2 -2
  18. package/esm/mcp-server/mcp-server.js +1 -1
  19. package/esm/mcp-server/server.d.ts.map +1 -1
  20. package/esm/mcp-server/server.js +7 -1
  21. package/esm/mcp-server/server.js.map +1 -1
  22. package/esm/mcp-server/tools/annotatorsCreate.d.ts +7 -0
  23. package/esm/mcp-server/tools/annotatorsCreate.d.ts.map +1 -0
  24. package/esm/mcp-server/tools/annotatorsCreate.js +34 -0
  25. package/esm/mcp-server/tools/annotatorsCreate.js.map +1 -0
  26. package/esm/mcp-server/tools/annotatorsList.d.ts +7 -0
  27. package/esm/mcp-server/tools/annotatorsList.d.ts.map +1 -0
  28. package/esm/mcp-server/tools/annotatorsList.js +34 -0
  29. package/esm/mcp-server/tools/annotatorsList.js.map +1 -0
  30. package/esm/mcp-server/tools/annotatorsUpdate.d.ts +7 -0
  31. package/esm/mcp-server/tools/annotatorsUpdate.d.ts.map +1 -0
  32. package/esm/mcp-server/tools/annotatorsUpdate.js +34 -0
  33. package/esm/mcp-server/tools/annotatorsUpdate.js.map +1 -0
  34. package/esm/models/{routersagentsagentresponse.d.ts → agentresponse.d.ts} +7 -7
  35. package/esm/models/agentresponse.d.ts.map +1 -0
  36. package/esm/models/{routersagentsagentresponse.js → agentresponse.js} +5 -5
  37. package/esm/models/agentresponse.js.map +1 -0
  38. package/esm/models/agentsummary.d.ts +1 -0
  39. package/esm/models/agentsummary.d.ts.map +1 -1
  40. package/esm/models/agentsummary.js +1 -0
  41. package/esm/models/agentsummary.js.map +1 -1
  42. package/esm/models/annotatorcreate.d.ts +6 -0
  43. package/esm/models/annotatorcreate.d.ts.map +1 -0
  44. package/esm/models/annotatorcreate.js +8 -0
  45. package/esm/models/annotatorcreate.js.map +1 -0
  46. package/esm/models/annotatorcreateresponse.d.ts +7 -0
  47. package/esm/models/annotatorcreateresponse.d.ts.map +1 -0
  48. package/esm/models/annotatorcreateresponse.js +9 -0
  49. package/esm/models/annotatorcreateresponse.js.map +1 -0
  50. package/esm/models/annotatorresponse.d.ts +12 -0
  51. package/esm/models/annotatorresponse.d.ts.map +1 -0
  52. package/esm/models/annotatorresponse.js +15 -0
  53. package/esm/models/annotatorresponse.js.map +1 -0
  54. package/esm/models/annotatorupdate.d.ts +6 -0
  55. package/esm/models/annotatorupdate.d.ts.map +1 -0
  56. package/esm/models/annotatorupdate.js +8 -0
  57. package/esm/models/annotatorupdate.js.map +1 -0
  58. package/esm/models/createannotatorendpointannotatorspostop.d.ts +12 -0
  59. package/esm/models/createannotatorendpointannotatorspostop.d.ts.map +1 -0
  60. package/esm/models/createannotatorendpointannotatorspostop.js +16 -0
  61. package/esm/models/createannotatorendpointannotatorspostop.js.map +1 -0
  62. package/esm/models/getagentendpointagentsagentuuidgetop.d.ts +2 -2
  63. package/esm/models/getagentendpointagentsagentuuidgetop.d.ts.map +1 -1
  64. package/esm/models/getagentendpointagentsagentuuidgetop.js +2 -2
  65. package/esm/models/getagentendpointagentsagentuuidgetop.js.map +1 -1
  66. package/esm/models/listannotatorsannotatorsgetop.d.ts +10 -0
  67. package/esm/models/listannotatorsannotatorsgetop.d.ts.map +1 -0
  68. package/esm/models/listannotatorsannotatorsgetop.js +14 -0
  69. package/esm/models/listannotatorsannotatorsgetop.js.map +1 -0
  70. package/esm/models/updateagentendpointagentsagentuuidputop.d.ts +2 -2
  71. package/esm/models/updateagentendpointagentsagentuuidputop.d.ts.map +1 -1
  72. package/esm/models/updateagentendpointagentsagentuuidputop.js +2 -2
  73. package/esm/models/updateagentendpointagentsagentuuidputop.js.map +1 -1
  74. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts +13 -0
  75. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.d.ts.map +1 -0
  76. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js +19 -0
  77. package/esm/models/updateannotatorendpointannotatorsannotatoruuidputop.js.map +1 -0
  78. package/esm/tool-names.d.ts.map +1 -1
  79. package/esm/tool-names.js +12 -0
  80. package/esm/tool-names.js.map +1 -1
  81. package/package.json +1 -1
  82. package/src/funcs/annotatorsCreate.ts +149 -0
  83. package/src/funcs/annotatorsList.ts +148 -0
  84. package/src/funcs/annotatorsUpdate.ts +160 -0
  85. package/src/landing-page.ts +1 -1
  86. package/src/lib/config.ts +2 -2
  87. package/src/mcp-server/mcp-server.ts +1 -1
  88. package/src/mcp-server/server.ts +7 -1
  89. package/src/mcp-server/tools/annotatorsCreate.ts +43 -0
  90. package/src/mcp-server/tools/annotatorsList.ts +42 -0
  91. package/src/mcp-server/tools/annotatorsUpdate.ts +42 -0
  92. package/src/models/{routersagentsagentresponse.ts → agentresponse.ts} +7 -11
  93. package/src/models/agentsummary.ts +2 -0
  94. package/src/models/annotatorcreate.ts +11 -0
  95. package/src/models/annotatorcreateresponse.ts +14 -0
  96. package/src/models/annotatorresponse.ts +36 -0
  97. package/src/models/annotatorupdate.ts +13 -0
  98. package/src/models/createannotatorendpointannotatorspostop.ts +40 -0
  99. package/src/models/getagentendpointagentsagentuuidgetop.ts +3 -6
  100. package/src/models/listannotatorsannotatorsgetop.ts +34 -0
  101. package/src/models/updateagentendpointagentsagentuuidputop.ts +3 -6
  102. package/src/models/updateannotatorendpointannotatorsannotatoruuidputop.ts +42 -0
  103. package/src/tool-names.ts +12 -0
  104. package/esm/models/routersagentsagentresponse.d.ts.map +0 -1
  105. package/esm/models/routersagentsagentresponse.js.map +0 -1
@@ -0,0 +1,149 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { CalibrateMcpCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import {
13
+ CreateAnnotatorEndpointAnnotatorsPostRequest,
14
+ CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema,
15
+ } from "../models/createannotatorendpointannotatorspostop.js";
16
+ import { APIError } from "../models/errors/apierror.js";
17
+ import {
18
+ ConnectionError,
19
+ InvalidRequestError,
20
+ RequestAbortedError,
21
+ RequestTimeoutError,
22
+ UnexpectedClientError,
23
+ } from "../models/errors/httpclienterrors.js";
24
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Create annotator
30
+ *
31
+ * @remarks
32
+ * Create an annotator, a human labeller who can be assigned annotation tasks
33
+ */
34
+ export function annotatorsCreate(
35
+ client$: CalibrateMcpCore,
36
+ request: CreateAnnotatorEndpointAnnotatorsPostRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ Response,
41
+ | APIError
42
+ | SDKValidationError
43
+ | UnexpectedClientError
44
+ | InvalidRequestError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | ConnectionError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client$,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client$: CalibrateMcpCore,
59
+ request: CreateAnnotatorEndpointAnnotatorsPostRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ Response,
65
+ | APIError
66
+ | SDKValidationError
67
+ | UnexpectedClientError
68
+ | InvalidRequestError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | ConnectionError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed$ = safeParse(
77
+ request,
78
+ (value$) =>
79
+ CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema.parse(value$),
80
+ "Input validation failed",
81
+ );
82
+ if (!parsed$.ok) {
83
+ return [parsed$, { status: "invalid" }];
84
+ }
85
+ const payload$ = parsed$.value;
86
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
87
+ const path$ = pathToFunc("/annotators")();
88
+
89
+ const headers$ = new Headers(compactMap({
90
+ "Content-Type": "application/json",
91
+ Accept: "application/json",
92
+ "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
93
+ explode: false,
94
+ charEncoding: "none",
95
+ }),
96
+ }));
97
+ const securityInput = await extractSecurity(client$._options.security);
98
+ const requestSecurity = resolveGlobalSecurity(securityInput);
99
+
100
+ const context = {
101
+ options: client$._options,
102
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
103
+ operationID: "create_annotator_endpoint_annotators_post",
104
+ oAuth2Scopes: null,
105
+ resolvedSecurity: requestSecurity,
106
+ securitySource: client$._options.security,
107
+ retryConfig: options?.retries
108
+ || client$._options.retryConfig
109
+ || { strategy: "none" },
110
+ retryCodes: options?.retryCodes || [
111
+ "429",
112
+ "500",
113
+ "502",
114
+ "503",
115
+ "504",
116
+ ],
117
+ };
118
+
119
+ const requestRes = client$._createRequest(context, {
120
+ security: requestSecurity,
121
+ method: "POST",
122
+ baseURL: options?.serverURL,
123
+ path: path$,
124
+ headers: headers$,
125
+ body: body$,
126
+ userAgent: client$._options.userAgent,
127
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
128
+ || -1,
129
+ }, options);
130
+ if (!requestRes.ok) {
131
+ return [requestRes, { status: "invalid" }];
132
+ }
133
+ const req$ = requestRes.value;
134
+
135
+ const doResult = await client$._do(req$, {
136
+ context,
137
+ errorCodes: [],
138
+ retryConfig: context.retryConfig,
139
+ retryCodes: context.retryCodes,
140
+ });
141
+ if (!doResult.ok) {
142
+ return [doResult, { status: "request-error", request: req$ }];
143
+ }
144
+ return [doResult, {
145
+ status: "complete",
146
+ "request": req$,
147
+ response: doResult.value,
148
+ }];
149
+ }
@@ -0,0 +1,148 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { CalibrateMcpCore } from "../core.js";
6
+ import { encodeSimple } from "../lib/encodings.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import {
22
+ ListAnnotatorsAnnotatorsGetRequest,
23
+ ListAnnotatorsAnnotatorsGetRequest$zodSchema,
24
+ } from "../models/listannotatorsannotatorsgetop.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * List annotators
30
+ *
31
+ * @remarks
32
+ * List annotators with job counts and agreement stats
33
+ */
34
+ export function annotatorsList(
35
+ client$: CalibrateMcpCore,
36
+ request?: ListAnnotatorsAnnotatorsGetRequest | undefined,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ Response,
41
+ | APIError
42
+ | SDKValidationError
43
+ | UnexpectedClientError
44
+ | InvalidRequestError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | ConnectionError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client$,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client$: CalibrateMcpCore,
59
+ request?: ListAnnotatorsAnnotatorsGetRequest | undefined,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ Response,
65
+ | APIError
66
+ | SDKValidationError
67
+ | UnexpectedClientError
68
+ | InvalidRequestError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | ConnectionError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed$ = safeParse(
77
+ request,
78
+ (value$) =>
79
+ ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional().parse(value$),
80
+ "Input validation failed",
81
+ );
82
+ if (!parsed$.ok) {
83
+ return [parsed$, { status: "invalid" }];
84
+ }
85
+ const payload$ = parsed$.value;
86
+ const body$ = null;
87
+ const path$ = pathToFunc("/annotators")();
88
+
89
+ const headers$ = new Headers(compactMap({
90
+ Accept: "application/json",
91
+ "X-API-Key": encodeSimple("X-API-Key", payload$?.xAPIKey, {
92
+ explode: false,
93
+ charEncoding: "none",
94
+ }),
95
+ }));
96
+ const securityInput = await extractSecurity(client$._options.security);
97
+ const requestSecurity = resolveGlobalSecurity(securityInput);
98
+
99
+ const context = {
100
+ options: client$._options,
101
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
102
+ operationID: "list_annotators_annotators_get",
103
+ oAuth2Scopes: null,
104
+ resolvedSecurity: requestSecurity,
105
+ securitySource: client$._options.security,
106
+ retryConfig: options?.retries
107
+ || client$._options.retryConfig
108
+ || { strategy: "none" },
109
+ retryCodes: options?.retryCodes || [
110
+ "429",
111
+ "500",
112
+ "502",
113
+ "503",
114
+ "504",
115
+ ],
116
+ };
117
+
118
+ const requestRes = client$._createRequest(context, {
119
+ security: requestSecurity,
120
+ method: "GET",
121
+ baseURL: options?.serverURL,
122
+ path: path$,
123
+ headers: headers$,
124
+ body: body$,
125
+ userAgent: client$._options.userAgent,
126
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
127
+ || -1,
128
+ }, options);
129
+ if (!requestRes.ok) {
130
+ return [requestRes, { status: "invalid" }];
131
+ }
132
+ const req$ = requestRes.value;
133
+
134
+ const doResult = await client$._do(req$, {
135
+ context,
136
+ errorCodes: [],
137
+ retryConfig: context.retryConfig,
138
+ retryCodes: context.retryCodes,
139
+ });
140
+ if (!doResult.ok) {
141
+ return [doResult, { status: "request-error", request: req$ }];
142
+ }
143
+ return [doResult, {
144
+ status: "complete",
145
+ "request": req$,
146
+ response: doResult.value,
147
+ }];
148
+ }
@@ -0,0 +1,160 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { CalibrateMcpCore } from "../core.js";
6
+ import { encodeJSON, encodeSimple } from "../lib/encodings.js";
7
+ import { compactMap } from "../lib/primitives.js";
8
+ import { safeParse } from "../lib/schemas.js";
9
+ import { RequestOptions } from "../lib/sdks.js";
10
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
11
+ import { pathToFunc } from "../lib/url.js";
12
+ import { APIError } from "../models/errors/apierror.js";
13
+ import {
14
+ ConnectionError,
15
+ InvalidRequestError,
16
+ RequestAbortedError,
17
+ RequestTimeoutError,
18
+ UnexpectedClientError,
19
+ } from "../models/errors/httpclienterrors.js";
20
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
21
+ import {
22
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
23
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema,
24
+ } from "../models/updateannotatorendpointannotatorsannotatoruuidputop.js";
25
+ import { APICall, APIPromise } from "../types/async.js";
26
+ import { Result } from "../types/fp.js";
27
+
28
+ /**
29
+ * Update annotator
30
+ *
31
+ * @remarks
32
+ * Update an annotator's name
33
+ */
34
+ export function annotatorsUpdate(
35
+ client$: CalibrateMcpCore,
36
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
37
+ options?: RequestOptions,
38
+ ): APIPromise<
39
+ Result<
40
+ Response,
41
+ | APIError
42
+ | SDKValidationError
43
+ | UnexpectedClientError
44
+ | InvalidRequestError
45
+ | RequestAbortedError
46
+ | RequestTimeoutError
47
+ | ConnectionError
48
+ >
49
+ > {
50
+ return new APIPromise($do(
51
+ client$,
52
+ request,
53
+ options,
54
+ ));
55
+ }
56
+
57
+ async function $do(
58
+ client$: CalibrateMcpCore,
59
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest,
60
+ options?: RequestOptions,
61
+ ): Promise<
62
+ [
63
+ Result<
64
+ Response,
65
+ | APIError
66
+ | SDKValidationError
67
+ | UnexpectedClientError
68
+ | InvalidRequestError
69
+ | RequestAbortedError
70
+ | RequestTimeoutError
71
+ | ConnectionError
72
+ >,
73
+ APICall,
74
+ ]
75
+ > {
76
+ const parsed$ = safeParse(
77
+ request,
78
+ (value$) =>
79
+ UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema.parse(
80
+ value$,
81
+ ),
82
+ "Input validation failed",
83
+ );
84
+ if (!parsed$.ok) {
85
+ return [parsed$, { status: "invalid" }];
86
+ }
87
+ const payload$ = parsed$.value;
88
+ const body$ = encodeJSON("body", payload$.body, { explode: true });
89
+
90
+ const pathParams$ = {
91
+ annotator_uuid: encodeSimple("annotator_uuid", payload$.annotator_uuid, {
92
+ explode: false,
93
+ charEncoding: "percent",
94
+ }),
95
+ };
96
+ const path$ = pathToFunc("/annotators/{annotator_uuid}")(
97
+ pathParams$,
98
+ );
99
+
100
+ const headers$ = new Headers(compactMap({
101
+ "Content-Type": "application/json",
102
+ Accept: "application/json",
103
+ "X-API-Key": encodeSimple("X-API-Key", payload$.xAPIKey, {
104
+ explode: false,
105
+ charEncoding: "none",
106
+ }),
107
+ }));
108
+ const securityInput = await extractSecurity(client$._options.security);
109
+ const requestSecurity = resolveGlobalSecurity(securityInput);
110
+
111
+ const context = {
112
+ options: client$._options,
113
+ baseURL: options?.serverURL ?? client$._baseURL ?? "",
114
+ operationID: "update_annotator_endpoint_annotators__annotator_uuid__put",
115
+ oAuth2Scopes: null,
116
+ resolvedSecurity: requestSecurity,
117
+ securitySource: client$._options.security,
118
+ retryConfig: options?.retries
119
+ || client$._options.retryConfig
120
+ || { strategy: "none" },
121
+ retryCodes: options?.retryCodes || [
122
+ "429",
123
+ "500",
124
+ "502",
125
+ "503",
126
+ "504",
127
+ ],
128
+ };
129
+
130
+ const requestRes = client$._createRequest(context, {
131
+ security: requestSecurity,
132
+ method: "PUT",
133
+ baseURL: options?.serverURL,
134
+ path: path$,
135
+ headers: headers$,
136
+ body: body$,
137
+ userAgent: client$._options.userAgent,
138
+ timeoutMs: options?.timeoutMs || client$._options.timeoutMs
139
+ || -1,
140
+ }, options);
141
+ if (!requestRes.ok) {
142
+ return [requestRes, { status: "invalid" }];
143
+ }
144
+ const req$ = requestRes.value;
145
+
146
+ const doResult = await client$._do(req$, {
147
+ context,
148
+ errorCodes: [],
149
+ retryConfig: context.retryConfig,
150
+ retryCodes: context.retryCodes,
151
+ });
152
+ if (!doResult.ok) {
153
+ return [doResult, { status: "request-error", request: req$ }];
154
+ }
155
+ return [doResult, {
156
+ status: "complete",
157
+ "request": req$,
158
+ response: doResult.value,
159
+ }];
160
+ }
@@ -930,7 +930,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
930
930
  <h1>Instructions</h1>
931
931
  <p>One-click installation for Claude Desktop users</p>
932
932
  <div class="instruction-item">
933
- <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.32/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
933
+ <a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.34/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
934
934
  📥 Download MCP Bundle
935
935
  </a>
936
936
  </div>
package/src/lib/config.ts CHANGED
@@ -65,8 +65,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
65
65
  export const SDK_METADATA = {
66
66
  language: "typescript",
67
67
  openapiDocVersion: "0.1.0",
68
- sdkVersion: "0.0.32",
68
+ sdkVersion: "0.0.34",
69
69
  genVersion: "2.915.1",
70
70
  userAgent:
71
- "speakeasy-sdk/mcp-typescript 0.0.32 2.915.1 0.1.0 @dalmia/calibrate-mcp",
71
+ "speakeasy-sdk/mcp-typescript 0.0.34 2.915.1 0.1.0 @dalmia/calibrate-mcp",
72
72
  } as const;
@@ -21,7 +21,7 @@ const routes = buildRouteMap({
21
21
  export const app = buildApplication(routes, {
22
22
  name: "mcp",
23
23
  versionInfo: {
24
- currentVersion: "0.0.32",
24
+ currentVersion: "0.0.34",
25
25
  },
26
26
  });
27
27
 
@@ -43,6 +43,9 @@ import { tool$annotationTasksGetSummary } from "./tools/annotationTasksGetSummar
43
43
  import { tool$annotationTasksList } from "./tools/annotationTasksList.js";
44
44
  import { tool$annotationTasksSetEvaluators } from "./tools/annotationTasksSetEvaluators.js";
45
45
  import { tool$annotationTasksUpdateItems } from "./tools/annotationTasksUpdateItems.js";
46
+ import { tool$annotatorsCreate } from "./tools/annotatorsCreate.js";
47
+ import { tool$annotatorsList } from "./tools/annotatorsList.js";
48
+ import { tool$annotatorsUpdate } from "./tools/annotatorsUpdate.js";
46
49
  import { tool$evaluatorsCreate } from "./tools/evaluatorsCreate.js";
47
50
  import { tool$evaluatorsCreateVersion } from "./tools/evaluatorsCreateVersion.js";
48
51
  import { tool$evaluatorsGet } from "./tools/evaluatorsGet.js";
@@ -66,7 +69,7 @@ export function createMCPServer(deps: {
66
69
  }) {
67
70
  const server = new McpServer({
68
71
  name: "CalibrateMcp",
69
- version: "0.0.32",
72
+ version: "0.0.34",
70
73
  });
71
74
 
72
75
  const getClient = deps.getSDK || (() =>
@@ -146,6 +149,9 @@ export function createMCPServer(deps: {
146
149
  tool(tool$annotationTasksGetEvaluatorRun);
147
150
  tool(tool$annotationTasksGetAgreement);
148
151
  tool(tool$annotationTasksGetSummary);
152
+ tool(tool$annotatorsCreate);
153
+ tool(tool$annotatorsList);
154
+ tool(tool$annotatorsUpdate);
149
155
 
150
156
  if (deps.dynamic) {
151
157
  registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
@@ -0,0 +1,43 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsCreate } from "../../funcs/annotatorsCreate.js";
6
+ import { CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema } from "../../models/createannotatorendpointannotatorspostop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: CreateAnnotatorEndpointAnnotatorsPostRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$annotatorsCreate: ToolDefinition<typeof args> = {
14
+ name: "create-annotator",
15
+ description:
16
+ `Create an annotator, a human labeller who can be assigned annotation tasks.
17
+ `,
18
+ scopes: ["write"],
19
+ annotations: {
20
+ "title": "Create annotator",
21
+ "destructiveHint": false,
22
+ "idempotentHint": false,
23
+ "openWorldHint": true,
24
+ "readOnlyHint": false,
25
+ },
26
+ args,
27
+ tool: async (client, args, ctx) => {
28
+ const [result] = await annotatorsCreate(
29
+ client,
30
+ args.request,
31
+ { fetchOptions: { signal: ctx.signal } },
32
+ ).$inspect();
33
+
34
+ if (!result.ok) {
35
+ return {
36
+ content: [{ type: "text", text: result.error.message }],
37
+ isError: true,
38
+ };
39
+ }
40
+
41
+ return formatResult(result.value);
42
+ },
43
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsList } from "../../funcs/annotatorsList.js";
6
+ import { ListAnnotatorsAnnotatorsGetRequest$zodSchema } from "../../models/listannotatorsannotatorsgetop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: ListAnnotatorsAnnotatorsGetRequest$zodSchema.optional(),
11
+ };
12
+
13
+ export const tool$annotatorsList: ToolDefinition<typeof args> = {
14
+ name: "list-annotators",
15
+ description: `List your annotators with their job counts and agreement scores.
16
+ `,
17
+ scopes: ["read"],
18
+ annotations: {
19
+ "title": "List annotators",
20
+ "destructiveHint": false,
21
+ "idempotentHint": false,
22
+ "openWorldHint": true,
23
+ "readOnlyHint": true,
24
+ },
25
+ args,
26
+ tool: async (client, args, ctx) => {
27
+ const [result] = await annotatorsList(
28
+ client,
29
+ args.request,
30
+ { fetchOptions: { signal: ctx.signal } },
31
+ ).$inspect();
32
+
33
+ if (!result.ok) {
34
+ return {
35
+ content: [{ type: "text", text: result.error.message }],
36
+ isError: true,
37
+ };
38
+ }
39
+
40
+ return formatResult(result.value);
41
+ },
42
+ };
@@ -0,0 +1,42 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import { annotatorsUpdate } from "../../funcs/annotatorsUpdate.js";
6
+ import { UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema } from "../../models/updateannotatorendpointannotatorsannotatoruuidputop.js";
7
+ import { formatResult, ToolDefinition } from "../tools.js";
8
+
9
+ const args = {
10
+ request: UpdateAnnotatorEndpointAnnotatorsAnnotatorUuidPutRequest$zodSchema,
11
+ };
12
+
13
+ export const tool$annotatorsUpdate: ToolDefinition<typeof args> = {
14
+ name: "update-annotator",
15
+ description: `Rename an annotator in your workspace.
16
+ `,
17
+ scopes: ["write"],
18
+ annotations: {
19
+ "title": "Update annotator",
20
+ "destructiveHint": false,
21
+ "idempotentHint": true,
22
+ "openWorldHint": true,
23
+ "readOnlyHint": false,
24
+ },
25
+ args,
26
+ tool: async (client, args, ctx) => {
27
+ const [result] = await annotatorsUpdate(
28
+ client,
29
+ args.request,
30
+ { fetchOptions: { signal: ctx.signal } },
31
+ ).$inspect();
32
+
33
+ if (!result.ok) {
34
+ return {
35
+ content: [{ type: "text", text: result.error.message }],
36
+ isError: true,
37
+ };
38
+ }
39
+
40
+ return formatResult(result.value);
41
+ },
42
+ };
@@ -11,7 +11,7 @@ import { ClosedEnum } from "../types/enums.js";
11
11
  * @remarks
12
12
  * - `connection`: your existing agent connected to Calibrate
13
13
  */
14
- export const RoutersAgentsAgentResponseType = {
14
+ export const AgentResponseType = {
15
15
  Agent: "agent",
16
16
  Connection: "connection",
17
17
  } as const;
@@ -21,35 +21,31 @@ export const RoutersAgentsAgentResponseType = {
21
21
  * @remarks
22
22
  * - `connection`: your existing agent connected to Calibrate
23
23
  */
24
- export type RoutersAgentsAgentResponseType = ClosedEnum<
25
- typeof RoutersAgentsAgentResponseType
26
- >;
24
+ export type AgentResponseType = ClosedEnum<typeof AgentResponseType>;
27
25
 
28
- export const RoutersAgentsAgentResponseType$zodSchema = z.enum([
26
+ export const AgentResponseType$zodSchema = z.enum([
29
27
  "agent",
30
28
  "connection",
31
29
  ]).describe(
32
30
  "- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate",
33
31
  );
34
32
 
35
- export type RoutersAgentsAgentResponse = {
33
+ export type AgentResponse = {
36
34
  uuid: string;
37
35
  name: string;
38
- type: RoutersAgentsAgentResponseType;
36
+ type: AgentResponseType;
39
37
  config?: { [k: string]: any } | null | undefined;
40
38
  created_at: string;
41
39
  updated_at: string;
42
40
  };
43
41
 
44
- export const RoutersAgentsAgentResponse$zodSchema: z.ZodType<
45
- RoutersAgentsAgentResponse
46
- > = z.object({
42
+ export const AgentResponse$zodSchema: z.ZodType<AgentResponse> = z.object({
47
43
  config: z.record(z.string(), z.any()).nullable().optional().describe(
48
44
  "Agent configuration",
49
45
  ),
50
46
  created_at: z.string().describe("When the agent was created (ISO 8601 UTC)"),
51
47
  name: z.string().describe("Name of the agent"),
52
- type: RoutersAgentsAgentResponseType$zodSchema.describe(
48
+ type: AgentResponseType$zodSchema.describe(
53
49
  "- `agent`: built inside Calibrate\n- `connection`: your existing agent connected to Calibrate",
54
50
  ),
55
51
  updated_at: z.string().describe(