@dalmia/calibrate-mcp 0.0.83 → 0.0.85

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 (38) hide show
  1. package/bin/mcp-server.js +185 -21
  2. package/bin/mcp-server.js.map +16 -12
  3. package/esm/funcs/workspaceCurrent.d.ts +16 -0
  4. package/esm/funcs/workspaceCurrent.d.ts.map +1 -0
  5. package/esm/funcs/workspaceCurrent.js +86 -0
  6. package/esm/funcs/workspaceCurrent.js.map +1 -0
  7. package/esm/landing-page.js +1 -1
  8. package/esm/lib/config.d.ts +2 -2
  9. package/esm/lib/config.js +2 -2
  10. package/esm/mcp-server/mcp-server.js +1 -1
  11. package/esm/mcp-server/server.d.ts.map +1 -1
  12. package/esm/mcp-server/server.js +3 -1
  13. package/esm/mcp-server/server.js.map +1 -1
  14. package/esm/mcp-server/tools/workspaceCurrent.d.ts +7 -0
  15. package/esm/mcp-server/tools/workspaceCurrent.d.ts.map +1 -0
  16. package/esm/mcp-server/tools/workspaceCurrent.js +39 -0
  17. package/esm/mcp-server/tools/workspaceCurrent.js.map +1 -0
  18. package/esm/models/currentworkspaceresponse.d.ts +7 -0
  19. package/esm/models/currentworkspaceresponse.d.ts.map +1 -0
  20. package/esm/models/currentworkspaceresponse.js +9 -0
  21. package/esm/models/currentworkspaceresponse.js.map +1 -0
  22. package/esm/models/getcurrentworkspaceorganizationscurrentgetop.d.ts +10 -0
  23. package/esm/models/getcurrentworkspaceorganizationscurrentgetop.d.ts.map +1 -0
  24. package/esm/models/getcurrentworkspaceorganizationscurrentgetop.js +14 -0
  25. package/esm/models/getcurrentworkspaceorganizationscurrentgetop.js.map +1 -0
  26. package/esm/tool-names.d.ts.map +1 -1
  27. package/esm/tool-names.js +4 -0
  28. package/esm/tool-names.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/funcs/workspaceCurrent.ts +149 -0
  31. package/src/landing-page.ts +1 -1
  32. package/src/lib/config.ts +2 -2
  33. package/src/mcp-server/mcp-server.ts +1 -1
  34. package/src/mcp-server/server.ts +3 -1
  35. package/src/mcp-server/tools/workspaceCurrent.ts +47 -0
  36. package/src/models/currentworkspaceresponse.ts +16 -0
  37. package/src/models/getcurrentworkspaceorganizationscurrentgetop.ts +32 -0
  38. package/src/tool-names.ts +4 -0
@@ -0,0 +1,16 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+
7
+ export type CurrentWorkspaceResponse = { uuid: string; name: string };
8
+
9
+ export const CurrentWorkspaceResponse$zodSchema: z.ZodType<
10
+ CurrentWorkspaceResponse
11
+ > = z.object({
12
+ name: z.string().describe("Workspace display name"),
13
+ uuid: z.string().describe(
14
+ "Workspace ID. Put this at the front of a Calibrate web address to link straight to something in this workspace, as in `/<uuid>/tests`",
15
+ ),
16
+ });
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod";
6
+ import {
7
+ CurrentWorkspaceResponse,
8
+ CurrentWorkspaceResponse$zodSchema,
9
+ } from "./currentworkspaceresponse.js";
10
+ import {
11
+ HTTPValidationError,
12
+ HTTPValidationError$zodSchema,
13
+ } from "./httpvalidationerror.js";
14
+
15
+ export type GetCurrentWorkspaceOrganizationsCurrentGetRequest = {
16
+ xAPIKey?: string | null | undefined;
17
+ };
18
+
19
+ export const GetCurrentWorkspaceOrganizationsCurrentGetRequest$zodSchema:
20
+ z.ZodType<GetCurrentWorkspaceOrganizationsCurrentGetRequest> = z.object({
21
+ xAPIKey: z.string().nullable().optional(),
22
+ });
23
+
24
+ export type GetCurrentWorkspaceOrganizationsCurrentGetResponse =
25
+ | CurrentWorkspaceResponse
26
+ | HTTPValidationError;
27
+
28
+ export const GetCurrentWorkspaceOrganizationsCurrentGetResponse$zodSchema:
29
+ z.ZodType<GetCurrentWorkspaceOrganizationsCurrentGetResponse> = z.union([
30
+ CurrentWorkspaceResponse$zodSchema,
31
+ HTTPValidationError$zodSchema,
32
+ ]);
package/src/tool-names.ts CHANGED
@@ -176,6 +176,10 @@ export const toolNames: Array<{ name: string; description: string }>= [
176
176
  "name": "update-annotator",
177
177
  "description": "Rename an annotator in your workspace.\n"
178
178
  },
179
+ {
180
+ "name": "get-current-workspace",
181
+ "description": "Get the workspace the caller's API key belongs to, as its ID and\nname. Put the ID at the front of a Calibrate web address to link\nstraight to something in that workspace, as in `/<uuid>/tests`.\nWithout it, a link opens whichever workspace the reader looked at\nlast. Requires a Calibrate API key (CALIBRATE_API_KEY).\n"
182
+ },
179
183
  {
180
184
  "name": "create-trace",
181
185
  "description": "Store one production agent turn against an agent in the caller's org:\nthe conversation history as input, what the agent produced as output,\nand optional metadata. Use this to capture live traffic for later\nreview and conversion into tests. Fails with 429 once the workspace\nhits its trace limit.\n"