@naturali/cli 0.222.0 → 0.223.0

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 (2) hide show
  1. package/dist/index.mjs +56 -4
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ var __exportAll = (all, no_symbols) => {
17
17
  };
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "0.222.0";
20
+ var version = "0.223.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -3806,7 +3806,7 @@ var McpServers = class {
3806
3806
  /**
3807
3807
  * Delete an MCP server
3808
3808
  *
3809
- * Removes the server and its keys.
3809
+ * Removes the server, its keys and its call log.
3810
3810
  */
3811
3811
  static deleteMcpServer(options) {
3812
3812
  return (options.client ?? client).delete({
@@ -3869,6 +3869,17 @@ var McpServers = class {
3869
3869
  });
3870
3870
  }
3871
3871
  /**
3872
+ * List MCP server usage
3873
+ *
3874
+ * The server's call log, newest day first: one row per UTC day, caller and item, with its calls and how many failed. Arguments are not stored. Today's `count` summed over the rows is what `daily_call_limit` is checked against.
3875
+ */
3876
+ static listMcpServerUsage(options) {
3877
+ return (options.client ?? client).get({
3878
+ url: "/v1/projects/{project_id}/mcp-servers/{mcp_server_id}/usage",
3879
+ ...options
3880
+ });
3881
+ }
3882
+ /**
3872
3883
  * Revoke an MCP server key
3873
3884
  *
3874
3885
  * Deletes the key; a client holding it can no longer connect.
@@ -17064,7 +17075,7 @@ const routes = {
17064
17075
  },
17065
17076
  {
17066
17077
  "name": "daily_call_limit",
17067
- "description": "Calls per day; required for `none` and `any_account`.",
17078
+ "description": "Tool calls per UTC day, over every caller; past it a call is `429 mcp_daily_limit_reached`. Required for `none` and `any_account`.",
17068
17079
  "required": false,
17069
17080
  "type": "integer",
17070
17081
  "in": "body"
@@ -17195,7 +17206,7 @@ const routes = {
17195
17206
  "delete-mcp-server": {
17196
17207
  serviceClass: "McpServers",
17197
17208
  operationId: "deleteMcpServer",
17198
- description: "Removes the server and its keys.",
17209
+ description: "Removes the server, its keys and its call log.",
17199
17210
  moduleDocsUrl: "https://naturali.ai/docs/modules/mcp-servers",
17200
17211
  httpMethod: "delete",
17201
17212
  pathParams: ["project_id", "mcp_server_id"],
@@ -17298,6 +17309,47 @@ const routes = {
17298
17309
  }
17299
17310
  ]
17300
17311
  },
17312
+ "list-mcp-server-usage": {
17313
+ serviceClass: "McpServers",
17314
+ operationId: "listMcpServerUsage",
17315
+ description: "The server's call log, newest day first: one row per UTC day, caller and item, with its calls and how many failed. Arguments are not stored. Today's `count` summed over the rows is what `daily_call_limit` is checked against.",
17316
+ moduleDocsUrl: "https://naturali.ai/docs/modules/mcp-servers",
17317
+ httpMethod: "get",
17318
+ pathParams: ["project_id", "mcp_server_id"],
17319
+ queryParams: ["limit", "cursor"],
17320
+ headerParams: [],
17321
+ cookieParams: [],
17322
+ flags: [
17323
+ {
17324
+ "name": "project_id",
17325
+ "description": "Project public ID (proj_ prefix).",
17326
+ "required": true,
17327
+ "type": "string",
17328
+ "in": "path"
17329
+ },
17330
+ {
17331
+ "name": "mcp_server_id",
17332
+ "description": "MCP server public ID (mcps_ prefix).",
17333
+ "required": true,
17334
+ "type": "string",
17335
+ "in": "path"
17336
+ },
17337
+ {
17338
+ "name": "limit",
17339
+ "description": "Results per page, 1 to 100 (default 50). Above 100 it is clamped; below 1 or not an integer it is `400`.",
17340
+ "required": false,
17341
+ "type": "integer",
17342
+ "in": "query"
17343
+ },
17344
+ {
17345
+ "name": "cursor",
17346
+ "description": "The previous page's `next_cursor`; omit it for the first page. A cursor this list did not issue is `400`.",
17347
+ "required": false,
17348
+ "type": "string",
17349
+ "in": "query"
17350
+ }
17351
+ ]
17352
+ },
17301
17353
  "delete-mcp-server-key": {
17302
17354
  serviceClass: "McpServers",
17303
17355
  operationId: "deleteMcpServerKey",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/cli",
3
- "version": "0.222.0",
3
+ "version": "0.223.0",
4
4
  "description": "Command-line interface for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -31,7 +31,7 @@
31
31
  "yaml": "^2.9.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@naturali/sdk": "0.222.0",
34
+ "@naturali/sdk": "0.223.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",