@lightsage/mcp 0.4.24 → 0.4.25

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.
@@ -10,7 +10,7 @@ import { Result } from "../types/fp.js";
10
10
  * List Plugin Eval Results
11
11
  *
12
12
  * @remarks
13
- * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call `download_url` with the same API key. Returns 404 when no results exist for the date.
13
+ * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until `expires_at` (15 minutes), so fetch it with any HTTP client, for example `curl -o results.zip "<download_url>"`. Returns 404 when no results exist for the date.
14
14
  */
15
15
  export declare function pluginEvalsResultsList(client$: LightsageMcpCore, request: V2PluginEvalsResultsListRequest, options?: RequestOptions): APIPromise<Result<Response, APIError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
16
  //# sourceMappingURL=pluginEvalsResultsList.d.ts.map
@@ -13,7 +13,7 @@ import { APIPromise } from "../types/async.js";
13
13
  * List Plugin Eval Results
14
14
  *
15
15
  * @remarks
16
- * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call `download_url` with the same API key. Returns 404 when no results exist for the date.
16
+ * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until `expires_at` (15 minutes), so fetch it with any HTTP client, for example `curl -o results.zip "<download_url>"`. Returns 404 when no results exist for the date.
17
17
  */
18
18
  export function pluginEvalsResultsList(client$, request, options) {
19
19
  return new APIPromise($do(client$, request, options));
@@ -916,7 +916,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
916
916
  <h1>Instructions</h1>
917
917
  <p>One-click installation for Claude Desktop users</p>
918
918
  <div class="instruction-item">
919
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.24/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
919
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.25/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
920
920
  📥 Download MCP Bundle
921
921
  </a>
922
922
  </div>
@@ -35,8 +35,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
35
35
  export declare const SDK_METADATA: {
36
36
  readonly language: "typescript";
37
37
  readonly openapiDocVersion: "1.0.0";
38
- readonly sdkVersion: "0.4.24";
38
+ readonly sdkVersion: "0.4.25";
39
39
  readonly genVersion: "2.948.4";
40
- readonly userAgent: "speakeasy-sdk/mcp-typescript 0.4.24 2.948.4 1.0.0 @lightsage/mcp";
40
+ readonly userAgent: "speakeasy-sdk/mcp-typescript 0.4.25 2.948.4 1.0.0 @lightsage/mcp";
41
41
  };
42
42
  //# sourceMappingURL=config.d.ts.map
package/esm/lib/config.js CHANGED
@@ -28,8 +28,8 @@ export function serverURLFromOptions(options) {
28
28
  export const SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "1.0.0",
31
- sdkVersion: "0.4.24",
31
+ sdkVersion: "0.4.25",
32
32
  genVersion: "2.948.4",
33
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.24 2.948.4 1.0.0 @lightsage/mcp",
33
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.25 2.948.4 1.0.0 @lightsage/mcp",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "0.4.24",
22
+ currentVersion: "0.4.25",
23
23
  },
24
24
  });
25
25
  run(app, process.argv.slice(2), buildContext(process));
@@ -93,7 +93,7 @@ export function createMCPServer(deps) {
93
93
  sizes: ["any"],
94
94
  }],
95
95
  name: "LightsageMcp",
96
- version: "0.4.24",
96
+ version: "0.4.25",
97
97
  });
98
98
  const getClient = deps.getSDK || (() => new LightsageMcpCore({
99
99
  security: deps.security,
@@ -12,7 +12,7 @@ export const tool$pluginEvalsResultsList = {
12
12
  name: "plugin-evals-results-list",
13
13
  description: `List Plugin Eval Results
14
14
 
15
- Returns a day's plugin eval results, one per plugin with results that day. Each has a \`download_url\` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call \`download_url\` with the same API key. Returns 404 when no results exist for the date.`,
15
+ Returns a day's plugin eval results, one per plugin with results that day. Each has a \`download_url\` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until \`expires_at\` (15 minutes), so fetch it with any HTTP client, for example \`curl -o results.zip "<download_url>"\`. Returns 404 when no results exist for the date.`,
16
16
  annotations: {
17
17
  "title": "",
18
18
  "destructiveHint": false,
@@ -1 +1 @@
1
- {"version":3,"file":"pluginEvalsResultsList.js","sourceRoot":"","sources":["../../../src/mcp-server/tools/pluginEvalsResultsList.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,yCAAyC,EAAE,MAAM,4CAA4C,CAAC;AACvG,OAAO,EAAE,YAAY,EAAkB,MAAM,aAAa,CAAC;AAE3D,MAAM,IAAI,GAAG;IACX,OAAO,EAAE,yCAAyC;CACnD,CAAC;AAEF,MAAM,CAAC,MAAM,2BAA2B,GAAgC;IACtE,IAAI,EAAE,2BAA2B;IACjC,WAAW,EAAE;;8SAE+R;IAC5S,WAAW,EAAE;QACX,OAAO,EAAE,EAAE;QACX,iBAAiB,EAAE,KAAK;QACxB,gBAAgB,EAAE,KAAK;QACvB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;KACrB;IACD,IAAI;IACJ,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE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,MAAM,EACN,IAAI,CAAC,OAAO,EACZ,EAAE,YAAY,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CACzC,CAAC,QAAQ,EAAE,CAAC;QAEb,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;gBACvD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;QAED,OAAO,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACF,CAAC"}
@@ -5,6 +5,7 @@ export type PublicPluginEvalResultsDownload = {
5
5
  prompts?: number | null | undefined;
6
6
  filename?: string | null | undefined;
7
7
  download_url: string;
8
+ expires_at: string;
8
9
  created_at?: string | null | undefined;
9
10
  };
10
11
  export declare const PublicPluginEvalResultsDownload$zodSchema: z.ZodType<PublicPluginEvalResultsDownload>;
@@ -1 +1 @@
1
- {"version":3,"file":"publicpluginevalresultsdownload.d.ts","sourceRoot":"","sources":["../../src/models/publicpluginevalresultsdownload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,+BAA+B,CAgB/B,CAAC"}
1
+ {"version":3,"file":"publicpluginevalresultsdownload.d.ts","sourceRoot":"","sources":["../../src/models/publicpluginevalresultsdownload.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,+BAA+B,CAmB/B,CAAC"}
@@ -5,7 +5,8 @@
5
5
  import * as z from "zod";
6
6
  export const PublicPluginEvalResultsDownload$zodSchema = z.object({
7
7
  created_at: z.iso.datetime({ offset: true }).nullable().optional().describe("When the results were prepared."),
8
- download_url: z.string().describe("Downloads the zip of the day's runs and their insights report. Call it with the same API key."),
8
+ download_url: z.string().describe("Downloads the zip of the day's runs and their insights report. It works without an API key until `expires_at`, so any HTTP client can fetch it, for example `curl -o results.zip \"<download_url>\"`. List the results again for a new link."),
9
+ expires_at: z.iso.datetime({ offset: true }).describe("When `download_url` stops working, 15 minutes after the list was requested."),
9
10
  filename: z.string().nullable().optional().describe("The zip file's name."),
10
11
  plugin: z.string().describe("The plugin's slug, such as `firecrawl`."),
11
12
  prompts: z.int().nullable().optional().describe("Distinct prompts included in the download."),
@@ -1 +1 @@
1
- {"version":3,"file":"publicpluginevalresultsdownload.js","sourceRoot":"","sources":["../../src/models/publicpluginevalresultsdownload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM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,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CACnD,6EAA6E,CAC9E;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC3E,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IACtE,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7C,4CAA4C,CAC7C;IACD,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC1C,gCAAgC,CACjC;CACF,CAAC,CAAC"}
package/esm/tool-names.js CHANGED
@@ -266,7 +266,7 @@ export const toolNames = [
266
266
  },
267
267
  {
268
268
  "name": "plugin-evals-results-list",
269
- "description": "List Plugin Eval Results\n\nReturns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call `download_url` with the same API key. Returns 404 when no results exist for the date."
269
+ "description": "List Plugin Eval Results\n\nReturns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until `expires_at` (15 minutes), so fetch it with any HTTP client, for example `curl -o results.zip \"<download_url>\"`. Returns 404 when no results exist for the date."
270
270
  },
271
271
  {
272
272
  "name": "agents-list",
@@ -1 +1 @@
1
- {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,6GAA6G;KAC7H;IACD;QACE,MAAM,EAAE,wBAAwB;QAChC,aAAa,EAAE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;IACD;QACE,MAAM,EAAE,6BAA6B;QACrC,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,qSAAqS;KACrT;IACD;QACE,MAAM,EAAE,iCAAiC;QACzC,aAAa,EAAE,qDAAqD;KACrE;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,sQAAsQ;KACtR;IACD;QACE,MAAM,EAAE,+BAA+B;QACvC,aAAa,EAAE,+FAA+F;KAC/G;IACD;QACE,MAAM,EAAE,qCAAqC;QAC7C,aAAa,EAAE,iKAAiK;KACjL;IACD;QACE,MAAM,EAAE,2BAA2B;QACnC,aAAa,EAAE,uUAAuU;KACvV;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,0fAA0f;KAC1gB;IACD;QACE,MAAM,EAAE,mBAAmB;QAC3B,aAAa,EAAE,6OAA6O;KAC7P;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,wFAAwF;KACxG;IACD;QACE,MAAM,EAAE,uBAAuB;QAC/B,aAAa,EAAE,mEAAmE;KACnF;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,uFAAuF;KACvG;IACD;QACE,MAAM,EAAE,qBAAqB;QAC7B,aAAa,EAAE,mGAAmG;KACnH;IACD;QACE,MAAM,EAAE,mBAAmB;QAC3B,aAAa,EAAE,oFAAoF;KACpG;IACD;QACE,MAAM,EAAE,kBAAkB;QAC1B,aAAa,EAAE,iGAAiG;KACjH;IACD;QACE,MAAM,EAAE,YAAY;QACpB,aAAa,EAAE,qFAAqF;KACrG;IACD;QACE,MAAM,EAAE,aAAa;QACrB,aAAa,EAAE,wFAAwF;KACxG;CACF,CAAC"}
1
+ {"version":3,"file":"tool-names.js","sourceRoot":"","sources":["../src/tool-names.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAgD;IACpE;QACE,MAAM,EAAE,Y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
22
  // Overwrites an Agent Preference eval's prompt and competitors.
23
23
  "agent-preference-evals-update",
24
+ // Renames a prompt topic or changes its description.
25
+ "prompts-topics-update",
26
+ // Overwrites a task's status, owner and details.
27
+ "tasks-update",
28
+ // Overwrites an eval configuration's agents, model and settings.
29
+ "evals-configurations-update",
30
+ // Overwrites an eval template's saved components.
31
+ "eval-templates-update",
32
+ // Overwrites a repository workspace's URL, branch and setup.
33
+ "repositories-update",
24
34
  ];
25
35
 
26
36
  /** Tools that send work to outside AI systems the caller does not control. */
@@ -47,7 +57,7 @@ export const ANNOTATION_OVERRIDES = Object.fromEntries([
47
57
  /**
48
58
  * Apply the annotation corrections and renames to an McpServer whose
49
59
  * generated tools are already registered. Tools that are not registered
50
- * (filtered out by MCP_ALLOWED_TOOLS, or dynamic mode) are skipped.
60
+ * (dynamic mode) are skipped.
51
61
  */
52
62
  export function applyToolOverrides(mcpServer) {
53
63
  const tools = mcpServer._registeredTools ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsage/mcp",
3
- "version": "0.4.24",
3
+ "version": "0.4.25",
4
4
  "author": "Speakeasy",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -39,7 +39,8 @@
39
39
  "nanoid@^5.0.0": ">=5.1.16 <6.0.0",
40
40
  "brace-expansion@^2.0.0": ">=2.1.4 <3.0.0",
41
41
  "body-parser": ">=2.4.0 <3.0.0",
42
- "@hono/node-server": ">=1.19.15 <2.0.0",
42
+ "@hono/node-server": ">=2.1.3 <3.0.0",
43
+ "minimatch@^10.0.0": ">=11.0.1 <12.0.0",
43
44
  "brace-expansion@^1.1.7": ">=1.1.18 <2.0.0",
44
45
  "brace-expansion@^5.0.0": ">=5.0.9 <6.0.0",
45
46
  "proxy-addr": ">=2.0.8 <3.0.0",
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
30
30
  * List Plugin Eval Results
31
31
  *
32
32
  * @remarks
33
- * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call `download_url` with the same API key. Returns 404 when no results exist for the date.
33
+ * Returns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until `expires_at` (15 minutes), so fetch it with any HTTP client, for example `curl -o results.zip "<download_url>"`. Returns 404 when no results exist for the date.
34
34
  */
35
35
  export function pluginEvalsResultsList(
36
36
  client$: LightsageMcpCore,
@@ -931,7 +931,7 @@ http_headers = { "lightsage-api-key-auth" = "YOUR_LIGHTSAGE_API_KEY_AUTH" }`;
931
931
  <h1>Instructions</h1>
932
932
  <p>One-click installation for Claude Desktop users</p>
933
933
  <div class="instruction-item">
934
- <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.24/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
934
+ <a href="https://github.com/lightsagehq/mcp/releases/download/v0.4.25/mcp-server.mcpb" download="mcp-server.mcpb" class="action-button header-action" style="display: inline-flex; margin-bottom: 16px;">
935
935
  📥 Download MCP Bundle
936
936
  </a>
937
937
  </div>
package/src/lib/config.ts CHANGED
@@ -66,7 +66,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
66
66
  export const SDK_METADATA = {
67
67
  language: "typescript",
68
68
  openapiDocVersion: "1.0.0",
69
- sdkVersion: "0.4.24",
69
+ sdkVersion: "0.4.25",
70
70
  genVersion: "2.948.4",
71
- userAgent: "speakeasy-sdk/mcp-typescript 0.4.24 2.948.4 1.0.0 @lightsage/mcp",
71
+ userAgent: "speakeasy-sdk/mcp-typescript 0.4.25 2.948.4 1.0.0 @lightsage/mcp",
72
72
  } as const;
@@ -22,7 +22,7 @@ const routes = buildRouteMap({
22
22
  export const app = buildApplication(routes, {
23
23
  name: "mcp",
24
24
  versionInfo: {
25
- currentVersion: "0.4.24",
25
+ currentVersion: "0.4.25",
26
26
  },
27
27
  });
28
28
 
@@ -115,7 +115,7 @@ export function createMCPServer(deps: {
115
115
  sizes: ["any"],
116
116
  }],
117
117
  name: "LightsageMcp",
118
- version: "0.4.24",
118
+ version: "0.4.25",
119
119
  });
120
120
 
121
121
  const getClient = deps.getSDK || (() =>
@@ -15,7 +15,7 @@ export const tool$pluginEvalsResultsList: ToolDefinition<typeof args> = {
15
15
  name: "plugin-evals-results-list",
16
16
  description: `List Plugin Eval Results
17
17
 
18
- Returns a day's plugin eval results, one per plugin with results that day. Each has a \`download_url\` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call \`download_url\` with the same API key. Returns 404 when no results exist for the date.`,
18
+ Returns a day's plugin eval results, one per plugin with results that day. Each has a \`download_url\` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until \`expires_at\` (15 minutes), so fetch it with any HTTP client, for example \`curl -o results.zip "<download_url>"\`. Returns 404 when no results exist for the date.`,
19
19
  annotations: {
20
20
  "title": "",
21
21
  "destructiveHint": false,
@@ -11,6 +11,7 @@ export type PublicPluginEvalResultsDownload = {
11
11
  prompts?: number | null | undefined;
12
12
  filename?: string | null | undefined;
13
13
  download_url: string;
14
+ expires_at: string;
14
15
  created_at?: string | null | undefined;
15
16
  };
16
17
 
@@ -21,7 +22,10 @@ export const PublicPluginEvalResultsDownload$zodSchema: z.ZodType<
21
22
  "When the results were prepared.",
22
23
  ),
23
24
  download_url: z.string().describe(
24
- "Downloads the zip of the day's runs and their insights report. Call it with the same API key.",
25
+ "Downloads the zip of the day's runs and their insights report. It works without an API key until `expires_at`, so any HTTP client can fetch it, for example `curl -o results.zip \"<download_url>\"`. List the results again for a new link.",
26
+ ),
27
+ expires_at: z.iso.datetime({ offset: true }).describe(
28
+ "When `download_url` stops working, 15 minutes after the list was requested.",
25
29
  ),
26
30
  filename: z.string().nullable().optional().describe("The zip file's name."),
27
31
  plugin: z.string().describe("The plugin's slug, such as `firecrawl`."),
package/src/tool-names.ts CHANGED
@@ -266,7 +266,7 @@ export const toolNames: Array<{ name: string; description: string }>= [
266
266
  },
267
267
  {
268
268
  "name": "plugin-evals-results-list",
269
- "description": "List Plugin Eval Results\n\nReturns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. Call `download_url` with the same API key. Returns 404 when no results exist for the date."
269
+ "description": "List Plugin Eval Results\n\nReturns a day's plugin eval results, one per plugin with results that day. Each has a `download_url` for a zip of every run with and without the plugin installed, plus the insights report written from them. The link works without an API key until `expires_at` (15 minutes), so fetch it with any HTTP client, for example `curl -o results.zip \"<download_url>\"`. Returns 404 when no results exist for the date."
270
270
  },
271
271
  {
272
272
  "name": "agents-list",
@@ -169,21 +169,23 @@ test("MCP tools forward canonical eval resources unchanged", async () => {
169
169
  );
170
170
  assert.equal(runResult.isError, undefined);
171
171
 
172
- assert.deepEqual(requests, [
173
- {
174
- method: "POST",
175
- url: "/v2/evals",
176
- apiKey: "ls_simulation_test",
177
- // The schema fills in include_env_vars' default (true) on create.
178
- body: { ...createRequest, include_env_vars: true },
179
- },
180
- {
181
- method: "POST",
182
- url: "/v2/eval-runs",
183
- apiKey: "ls_simulation_test",
184
- body: runRequest,
185
- },
186
- ]);
172
+ // Every field the caller sent arrives unchanged. The schema may add
173
+ // documented defaults (for example include_env_vars on create), so extra
174
+ // fields are allowed; this test checks forwarding, not the schema.
175
+ assert.deepEqual(
176
+ requests.map(({ method, url, apiKey }) => ({ method, url, apiKey })),
177
+ [
178
+ { method: "POST", url: "/v2/evals", apiKey: "ls_simulation_test" },
179
+ { method: "POST", url: "/v2/eval-runs", apiKey: "ls_simulation_test" },
180
+ ],
181
+ );
182
+ for (const [index, request] of [createRequest, runRequest].entries()) {
183
+ const body = requests[index].body;
184
+ const forwarded = Object.fromEntries(
185
+ Object.keys(request).map((key) => [key, body[key]]),
186
+ );
187
+ assert.deepEqual(forwarded, request, `${requests[index].url} forwards its fields`);
188
+ }
187
189
  } finally {
188
190
  server.close();
189
191
  }
@@ -68,3 +68,18 @@ test("tools without overrides keep their generated hints", async () => {
68
68
  const tools = await listTools(["prompts-list"]);
69
69
  assert.equal(tools.get("prompts-list").annotations.readOnlyHint, true);
70
70
  });
71
+
72
+ test("every listed tool that overwrites or stops work is marked destructive", async () => {
73
+ const tools = await listTools(undefined);
74
+ const overwriting = [...tools.keys()].filter((name) =>
75
+ /-(update|set|cancel|delete)$/.test(name)
76
+ );
77
+ assert.ok(overwriting.length > 0);
78
+ for (const name of overwriting) {
79
+ assert.equal(
80
+ tools.get(name).annotations?.destructiveHint,
81
+ true,
82
+ `${name} should be destructive`,
83
+ );
84
+ }
85
+ });