@dalmia/calibrate-mcp 0.0.82 → 0.0.84
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/bin/mcp-server.js +157 -6
- package/bin/mcp-server.js.map +12 -8
- package/esm/funcs/workspaceCurrent.d.ts +16 -0
- package/esm/funcs/workspaceCurrent.d.ts.map +1 -0
- package/esm/funcs/workspaceCurrent.js +86 -0
- package/esm/funcs/workspaceCurrent.js.map +1 -0
- package/esm/landing-page.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/workspaceCurrent.d.ts +7 -0
- package/esm/mcp-server/tools/workspaceCurrent.d.ts.map +1 -0
- package/esm/mcp-server/tools/workspaceCurrent.js +39 -0
- package/esm/mcp-server/tools/workspaceCurrent.js.map +1 -0
- package/esm/models/currentworkspaceresponse.d.ts +7 -0
- package/esm/models/currentworkspaceresponse.d.ts.map +1 -0
- package/esm/models/currentworkspaceresponse.js +9 -0
- package/esm/models/currentworkspaceresponse.js.map +1 -0
- package/esm/models/getcurrentworkspaceorganizationscurrentgetop.d.ts +10 -0
- package/esm/models/getcurrentworkspaceorganizationscurrentgetop.d.ts.map +1 -0
- package/esm/models/getcurrentworkspaceorganizationscurrentgetop.js +14 -0
- package/esm/models/getcurrentworkspaceorganizationscurrentgetop.js.map +1 -0
- package/esm/tool-names.d.ts.map +1 -1
- package/esm/tool-names.js +4 -0
- package/esm/tool-names.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/workspaceCurrent.ts +149 -0
- package/src/landing-page.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/workspaceCurrent.ts +47 -0
- package/src/models/currentworkspaceresponse.ts +16 -0
- package/src/models/getcurrentworkspaceorganizationscurrentgetop.ts +32 -0
- package/src/tool-names.ts +4 -0
package/bin/mcp-server.js
CHANGED
|
@@ -53266,9 +53266,9 @@ var init_config = __esm(() => {
|
|
|
53266
53266
|
SDK_METADATA = {
|
|
53267
53267
|
language: "typescript",
|
|
53268
53268
|
openapiDocVersion: "0.1.0",
|
|
53269
|
-
sdkVersion: "0.0.
|
|
53269
|
+
sdkVersion: "0.0.84",
|
|
53270
53270
|
genVersion: "2.915.1",
|
|
53271
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0.
|
|
53271
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.0.84 2.915.1 0.1.0 @dalmia/calibrate-mcp"
|
|
53272
53272
|
};
|
|
53273
53273
|
});
|
|
53274
53274
|
|
|
@@ -62797,11 +62797,151 @@ hits its trace limit.
|
|
|
62797
62797
|
};
|
|
62798
62798
|
});
|
|
62799
62799
|
|
|
62800
|
+
// src/models/currentworkspaceresponse.ts
|
|
62801
|
+
var CurrentWorkspaceResponse$zodSchema;
|
|
62802
|
+
var init_currentworkspaceresponse = __esm(() => {
|
|
62803
|
+
init_zod();
|
|
62804
|
+
CurrentWorkspaceResponse$zodSchema = object({
|
|
62805
|
+
name: string2().describe("Workspace display name"),
|
|
62806
|
+
uuid: string2().describe("Workspace ID. Put this at the front of a Calibrate web address to link straight to something in this workspace, as in `/<uuid>/tests`")
|
|
62807
|
+
});
|
|
62808
|
+
});
|
|
62809
|
+
|
|
62810
|
+
// src/models/getcurrentworkspaceorganizationscurrentgetop.ts
|
|
62811
|
+
var GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema, GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema;
|
|
62812
|
+
var init_getcurrentworkspaceorganizationscurrentgetop = __esm(() => {
|
|
62813
|
+
init_zod();
|
|
62814
|
+
init_currentworkspaceresponse();
|
|
62815
|
+
init_httpvalidationerror();
|
|
62816
|
+
GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema = object({
|
|
62817
|
+
xAPIKey: string2().nullable().optional()
|
|
62818
|
+
});
|
|
62819
|
+
GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema = union([
|
|
62820
|
+
CurrentWorkspaceResponse$zodSchema,
|
|
62821
|
+
HTTPValidationError$zodSchema
|
|
62822
|
+
]);
|
|
62823
|
+
});
|
|
62824
|
+
|
|
62825
|
+
// src/funcs/workspaceCurrent.ts
|
|
62826
|
+
function workspaceCurrent(client$, request, options) {
|
|
62827
|
+
return new APIPromise($do46(client$, request, options));
|
|
62828
|
+
}
|
|
62829
|
+
async function $do46(client$, request, options) {
|
|
62830
|
+
const parsed$ = safeParse4(request, (value$) => GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional().parse(value$), "Input validation failed");
|
|
62831
|
+
if (!parsed$.ok) {
|
|
62832
|
+
return [parsed$, { status: "invalid" }];
|
|
62833
|
+
}
|
|
62834
|
+
const payload$ = parsed$.value;
|
|
62835
|
+
const body$ = null;
|
|
62836
|
+
const path$ = pathToFunc("/organizations/current")();
|
|
62837
|
+
const headers$ = new Headers(compactMap({
|
|
62838
|
+
Accept: "application/json",
|
|
62839
|
+
"X-API-Key": encodeSimple("X-API-Key", payload$?.xAPIKey, {
|
|
62840
|
+
explode: false,
|
|
62841
|
+
charEncoding: "none"
|
|
62842
|
+
})
|
|
62843
|
+
}));
|
|
62844
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
62845
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
62846
|
+
const context = {
|
|
62847
|
+
options: client$._options,
|
|
62848
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
62849
|
+
operationID: "get_current_workspace_organizations_current_get",
|
|
62850
|
+
oAuth2Scopes: null,
|
|
62851
|
+
resolvedSecurity: requestSecurity,
|
|
62852
|
+
securitySource: client$._options.security,
|
|
62853
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
62854
|
+
retryCodes: options?.retryCodes || [
|
|
62855
|
+
"429",
|
|
62856
|
+
"500",
|
|
62857
|
+
"502",
|
|
62858
|
+
"503",
|
|
62859
|
+
"504"
|
|
62860
|
+
]
|
|
62861
|
+
};
|
|
62862
|
+
const requestRes = client$._createRequest(context, {
|
|
62863
|
+
security: requestSecurity,
|
|
62864
|
+
method: "GET",
|
|
62865
|
+
baseURL: options?.serverURL,
|
|
62866
|
+
path: path$,
|
|
62867
|
+
headers: headers$,
|
|
62868
|
+
body: body$,
|
|
62869
|
+
userAgent: client$._options.userAgent,
|
|
62870
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
62871
|
+
}, options);
|
|
62872
|
+
if (!requestRes.ok) {
|
|
62873
|
+
return [requestRes, { status: "invalid" }];
|
|
62874
|
+
}
|
|
62875
|
+
const req$ = requestRes.value;
|
|
62876
|
+
const doResult = await client$._do(req$, {
|
|
62877
|
+
context,
|
|
62878
|
+
errorCodes: [],
|
|
62879
|
+
retryConfig: context.retryConfig,
|
|
62880
|
+
retryCodes: context.retryCodes
|
|
62881
|
+
});
|
|
62882
|
+
if (!doResult.ok) {
|
|
62883
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
62884
|
+
}
|
|
62885
|
+
return [doResult, {
|
|
62886
|
+
status: "complete",
|
|
62887
|
+
request: req$,
|
|
62888
|
+
response: doResult.value
|
|
62889
|
+
}];
|
|
62890
|
+
}
|
|
62891
|
+
var init_workspaceCurrent = __esm(() => {
|
|
62892
|
+
init_encodings();
|
|
62893
|
+
init_primitives();
|
|
62894
|
+
init_schemas4();
|
|
62895
|
+
init_security();
|
|
62896
|
+
init_url();
|
|
62897
|
+
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
62898
|
+
init_async();
|
|
62899
|
+
});
|
|
62900
|
+
|
|
62901
|
+
// src/mcp-server/tools/workspaceCurrent.ts
|
|
62902
|
+
var args46, tool$workspaceCurrent;
|
|
62903
|
+
var init_workspaceCurrent2 = __esm(() => {
|
|
62904
|
+
init_workspaceCurrent();
|
|
62905
|
+
init_getcurrentworkspaceorganizationscurrentgetop();
|
|
62906
|
+
init_tools();
|
|
62907
|
+
args46 = {
|
|
62908
|
+
request: GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema.optional()
|
|
62909
|
+
};
|
|
62910
|
+
tool$workspaceCurrent = {
|
|
62911
|
+
name: "get-current-workspace",
|
|
62912
|
+
description: `Get the workspace the caller's API key belongs to, as its ID and
|
|
62913
|
+
name. Put the ID at the front of a Calibrate web address to link
|
|
62914
|
+
straight to something in that workspace, as in \`/<uuid>/tests\`.
|
|
62915
|
+
Without it, a link opens whichever workspace the reader looked at
|
|
62916
|
+
last. Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
62917
|
+
`,
|
|
62918
|
+
scopes: ["read"],
|
|
62919
|
+
annotations: {
|
|
62920
|
+
title: "Get the current workspace",
|
|
62921
|
+
destructiveHint: false,
|
|
62922
|
+
idempotentHint: true,
|
|
62923
|
+
openWorldHint: true,
|
|
62924
|
+
readOnlyHint: true
|
|
62925
|
+
},
|
|
62926
|
+
args: args46,
|
|
62927
|
+
tool: async (client, args, ctx) => {
|
|
62928
|
+
const [result] = await workspaceCurrent(client, args.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
62929
|
+
if (!result.ok) {
|
|
62930
|
+
return {
|
|
62931
|
+
content: [{ type: "text", text: result.error.message }],
|
|
62932
|
+
isError: true
|
|
62933
|
+
};
|
|
62934
|
+
}
|
|
62935
|
+
return formatResult(result.value);
|
|
62936
|
+
}
|
|
62937
|
+
};
|
|
62938
|
+
});
|
|
62939
|
+
|
|
62800
62940
|
// src/mcp-server/server.ts
|
|
62801
62941
|
function createMCPServer(deps) {
|
|
62802
62942
|
const server = new McpServer({
|
|
62803
62943
|
name: "CalibrateMcp",
|
|
62804
|
-
version: "0.0.
|
|
62944
|
+
version: "0.0.84"
|
|
62805
62945
|
});
|
|
62806
62946
|
const getClient = deps.getSDK || (() => new CalibrateMcpCore({
|
|
62807
62947
|
security: deps.security,
|
|
@@ -62864,6 +63004,7 @@ function createMCPServer(deps) {
|
|
|
62864
63004
|
tool(tool$annotatorsCreate);
|
|
62865
63005
|
tool(tool$annotatorsList);
|
|
62866
63006
|
tool(tool$annotatorsUpdate);
|
|
63007
|
+
tool(tool$workspaceCurrent);
|
|
62867
63008
|
tool(tool$tracesCreate);
|
|
62868
63009
|
if (deps.dynamic) {
|
|
62869
63010
|
registerDynamicTools(deps.logger, server, getClient, toolMap, scopes);
|
|
@@ -62920,6 +63061,7 @@ var init_server2 = __esm(() => {
|
|
|
62920
63061
|
init_testsList2();
|
|
62921
63062
|
init_testsUpdate2();
|
|
62922
63063
|
init_tracesCreate2();
|
|
63064
|
+
init_workspaceCurrent2();
|
|
62923
63065
|
});
|
|
62924
63066
|
|
|
62925
63067
|
// src/tool-names.ts
|
|
@@ -63198,6 +63340,15 @@ must be in your workspace.
|
|
|
63198
63340
|
{
|
|
63199
63341
|
name: "update-annotator",
|
|
63200
63342
|
description: `Rename an annotator in your workspace.
|
|
63343
|
+
`
|
|
63344
|
+
},
|
|
63345
|
+
{
|
|
63346
|
+
name: "get-current-workspace",
|
|
63347
|
+
description: `Get the workspace the caller's API key belongs to, as its ID and
|
|
63348
|
+
name. Put the ID at the front of a Calibrate web address to link
|
|
63349
|
+
straight to something in that workspace, as in \`/<uuid>/tests\`.
|
|
63350
|
+
Without it, a link opens whichever workspace the reader looked at
|
|
63351
|
+
last. Requires a Calibrate API key (CALIBRATE_API_KEY).
|
|
63201
63352
|
`
|
|
63202
63353
|
},
|
|
63203
63354
|
{
|
|
@@ -64115,7 +64266,7 @@ http_headers = { "api-key-auth" = "YOUR_API_KEY_AUTH" }`;
|
|
|
64115
64266
|
<h1>Instructions</h1>
|
|
64116
64267
|
<p>One-click installation for Claude Desktop users</p>
|
|
64117
64268
|
<div class="instruction-item">
|
|
64118
|
-
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.
|
|
64269
|
+
<a href="https://github.com/dalmia/calibrate-mcp/releases/download/v0.0.84/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
|
|
64119
64270
|
\uD83D\uDCE5 Download MCP Bundle
|
|
64120
64271
|
</a>
|
|
64121
64272
|
</div>
|
|
@@ -67069,7 +67220,7 @@ var routes = buildRouteMap({
|
|
|
67069
67220
|
var app = buildApplication(routes, {
|
|
67070
67221
|
name: "mcp",
|
|
67071
67222
|
versionInfo: {
|
|
67072
|
-
currentVersion: "0.0.
|
|
67223
|
+
currentVersion: "0.0.84"
|
|
67073
67224
|
}
|
|
67074
67225
|
});
|
|
67075
67226
|
run(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -67077,5 +67228,5 @@ export {
|
|
|
67077
67228
|
app
|
|
67078
67229
|
};
|
|
67079
67230
|
|
|
67080
|
-
//# debugId=
|
|
67231
|
+
//# debugId=836868EA84BFD5EF64756E2164756E21
|
|
67081
67232
|
//# sourceMappingURL=mcp-server.js.map
|