@naturali/cli 0.222.0 → 0.224.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 +60 -8
  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.224.0";
21
21
  //#endregion
22
22
  //#region ../sdk/src/generated/core/bodySerializer.gen.ts
23
23
  const serializeFormDataPair = (data, key, value) => {
@@ -3790,7 +3790,7 @@ var McpServers = class {
3790
3790
  * Create an MCP server
3791
3791
  *
3792
3792
  * Each item of `tools` is checked against the tool it names: the project's own or an installed one, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`.
3793
- * `daily_call_limit` is required when `auth` is `none` or `oauth` with `mode: any_account`.
3793
+ * `daily_call_limit` is required when `auth` is `none`.
3794
3794
  *
3795
3795
  */
3796
3796
  static createMcpServer(options) {
@@ -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.
@@ -16984,7 +16995,7 @@ const routes = {
16984
16995
  "create-mcp-server": {
16985
16996
  serviceClass: "McpServers",
16986
16997
  operationId: "createMcpServer",
16987
- description: "Each item of `tools` is checked against the tool it names: the project's own or an installed one, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. `daily_call_limit` is required when `auth` is `none` or `oauth` with `mode: any_account`.",
16998
+ description: "Each item of `tools` is checked against the tool it names: the project's own or an installed one, else `400`. `action` is required, and must be one of the tool's available actions, when the tool declares `actions`; otherwise it is ignored and stored as `null`. A tool whose definition reads `{{context:naturali_caller_…}}` is refused unless `auth.type` is `oauth`. `daily_call_limit` is required when `auth` is `none`.",
16988
16999
  moduleDocsUrl: "https://naturali.ai/docs/modules/mcp-servers",
16989
17000
  httpMethod: "post",
16990
17001
  pathParams: ["project_id"],
@@ -17057,14 +17068,14 @@ const routes = {
17057
17068
  },
17058
17069
  {
17059
17070
  "name": "auth",
17060
- "description": "Who may connect. `oauth` with `mode` `members` (project members), `allowlist` (the listed emails) or `any_account` (any naturali account); `header` (holders of a key from [`POST /v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys`](/docs/api/mcp-servers/create-mcp-server-key), sent in `header_name`, default `Authorization`); `none` (anyone).",
17071
+ "description": "Who may connect. `oauth` without `issuer` signs callers in by naturali login, with `mode` `members` (project members) or `allowlist` (the listed emails, verified); `oauth` with `issuer` accepts tokens of the tenant's authorization server; `header` (holders of a key from [`POST /v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys`](/docs/api/mcp-servers/create-mcp-server-key), sent in `header_name`, default `Authorization`); `none` (anyone).",
17061
17072
  "required": true,
17062
17073
  "type": "object",
17063
17074
  "in": "body"
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`.",
17068
17079
  "required": false,
17069
17080
  "type": "integer",
17070
17081
  "in": "body"
@@ -17178,7 +17189,7 @@ const routes = {
17178
17189
  },
17179
17190
  {
17180
17191
  "name": "auth",
17181
- "description": "Who may connect. `oauth` with `mode` `members` (project members), `allowlist` (the listed emails) or `any_account` (any naturali account); `header` (holders of a key from [`POST /v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys`](/docs/api/mcp-servers/create-mcp-server-key), sent in `header_name`, default `Authorization`); `none` (anyone).",
17192
+ "description": "Who may connect. `oauth` without `issuer` signs callers in by naturali login, with `mode` `members` (project members) or `allowlist` (the listed emails, verified); `oauth` with `issuer` accepts tokens of the tenant's authorization server; `header` (holders of a key from [`POST /v1/projects/{project_id}/mcp-servers/{mcp_server_id}/keys`](/docs/api/mcp-servers/create-mcp-server-key), sent in `header_name`, default `Authorization`); `none` (anyone).",
17182
17193
  "required": false,
17183
17194
  "type": "object",
17184
17195
  "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.224.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.224.0",
35
35
  "@ttoss/openapi-codegen": "^0.10.0",
36
36
  "@types/node": "^26.5.1",
37
37
  "tsdown": "^0.23.0",