tuix-mcp-host-client 0.0.266 → 0.0.268

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/apis/ClientApi.js CHANGED
@@ -928,7 +928,7 @@ class ClientApi extends runtime.BaseAPI {
928
928
  };
929
929
  }
930
930
  /**
931
- * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. A URL change only affects chat sessions started afterwards.
931
+ * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. Changing the URL to a different host (scheme, host or port) requires headers to be sent again, so stored credentials are never sent to a new host. A URL change only affects chat sessions started afterwards.
932
932
  * Update an external MCP server
933
933
  */
934
934
  async updateMCPServerRaw(requestParameters, initOverrides) {
@@ -937,7 +937,7 @@ class ClientApi extends runtime.BaseAPI {
937
937
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, MCPServerDTO_1.MCPServerDTOFromJSON)(jsonValue));
938
938
  }
939
939
  /**
940
- * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. A URL change only affects chat sessions started afterwards.
940
+ * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. Changing the URL to a different host (scheme, host or port) requires headers to be sent again, so stored credentials are never sent to a new host. A URL change only affects chat sessions started afterwards.
941
941
  * Update an external MCP server
942
942
  */
943
943
  async updateMCPServer(requestParameters, initOverrides) {
package/apis/ClientApi.ts CHANGED
@@ -1529,7 +1529,7 @@ export class ClientApi extends runtime.BaseAPI {
1529
1529
  }
1530
1530
 
1531
1531
  /**
1532
- * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. A URL change only affects chat sessions started afterwards.
1532
+ * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. Changing the URL to a different host (scheme, host or port) requires headers to be sent again, so stored credentials are never sent to a new host. A URL change only affects chat sessions started afterwards.
1533
1533
  * Update an external MCP server
1534
1534
  */
1535
1535
  async updateMCPServerRaw(requestParameters: UpdateMCPServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MCPServerDTO>> {
@@ -1540,7 +1540,7 @@ export class ClientApi extends runtime.BaseAPI {
1540
1540
  }
1541
1541
 
1542
1542
  /**
1543
- * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. A URL change only affects chat sessions started afterwards.
1543
+ * Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. Changing the URL to a different host (scheme, host or port) requires headers to be sent again, so stored credentials are never sent to a new host. A URL change only affects chat sessions started afterwards.
1544
1544
  * Update an external MCP server
1545
1545
  */
1546
1546
  async updateMCPServer(requestParameters: UpdateMCPServerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MCPServerDTO> {
package/docs/ClientApi.md CHANGED
@@ -684,7 +684,7 @@ No authorization required
684
684
  | Status code | Description | Response headers |
685
685
  |-------------|-------------|------------------|
686
686
  | **201** | Created MCP server | - |
687
- | **400** | Bad Request | - |
687
+ | **400** | Invalid body, name or apiDocsUrl | - |
688
688
  | **401** | Unauthorized | - |
689
689
  | **402** | Payment Required | - |
690
690
  | **500** | Internal Server Error | - |
@@ -1665,7 +1665,7 @@ No authorization required
1665
1665
 
1666
1666
  Update an external MCP server
1667
1667
 
1668
- Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. A URL change only affects chat sessions started afterwards.
1668
+ Update name, URL or headers of an external MCP server. Only external servers can be updated. When the URL or headers change, the server is checked live before saving. headers replaces the whole map when present: omit it to keep the current headers, or send {} to remove them. Changing the URL to a different host (scheme, host or port) requires headers to be sent again, so stored credentials are never sent to a new host. A URL change only affects chat sessions started afterwards.
1669
1669
 
1670
1670
  ### Example
1671
1671
 
@@ -1725,7 +1725,7 @@ No authorization required
1725
1725
  | Status code | Description | Response headers |
1726
1726
  |-------------|-------------|------------------|
1727
1727
  | **200** | Updated MCP server | - |
1728
- | **400** | Invalid body, header or URL | - |
1728
+ | **400** | Invalid body, header or URL, or headers missing for a new host | - |
1729
1729
  | **401** | Unauthorized | - |
1730
1730
  | **402** | Payment Required | - |
1731
1731
  | **404** | Not Found | - |
@@ -7,6 +7,7 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `apiDocsUrl` | string
10
+ `name` | string
10
11
 
11
12
  ## Example
12
13
 
@@ -16,6 +17,7 @@ import type { CreateMCPServerDTO } from ''
16
17
  // TODO: Update the object below with actual values
17
18
  const example = {
18
19
  "apiDocsUrl": null,
20
+ "name": null,
19
21
  } satisfies CreateMCPServerDTO
20
22
 
21
23
  console.log(example)
@@ -22,6 +22,10 @@ exports.CreateMCPServerDTOToJSONTyped = CreateMCPServerDTOToJSONTyped;
22
22
  * Check if a given object implements the CreateMCPServerDTO interface.
23
23
  */
24
24
  function instanceOfCreateMCPServerDTO(value) {
25
+ if (!('apiDocsUrl' in value) || value['apiDocsUrl'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
25
29
  return true;
26
30
  }
27
31
  function CreateMCPServerDTOFromJSON(json) {
@@ -32,7 +36,8 @@ function CreateMCPServerDTOFromJSONTyped(json, ignoreDiscriminator) {
32
36
  return json;
33
37
  }
34
38
  return {
35
- 'apiDocsUrl': json['apiDocsUrl'] == null ? undefined : json['apiDocsUrl'],
39
+ 'apiDocsUrl': json['apiDocsUrl'],
40
+ 'name': json['name'],
36
41
  };
37
42
  }
38
43
  function CreateMCPServerDTOToJSON(json) {
@@ -44,6 +49,7 @@ function CreateMCPServerDTOToJSONTyped(value, ignoreDiscriminator = false) {
44
49
  }
45
50
  return {
46
51
  'apiDocsUrl': value['apiDocsUrl'],
52
+ 'name': value['name'],
47
53
  };
48
54
  }
49
55
  //# sourceMappingURL=CreateMCPServerDTO.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CreateMCPServerDTO.js","sourceRoot":"","sources":["CreateMCPServerDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkBH,oEAEC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAlCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;KAC5E,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH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AAM,CAAC;KACxB,CAAC;AACN,CAAC"}
@@ -22,13 +22,19 @@ export interface CreateMCPServerDTO {
22
22
  /**
23
23
  *
24
24
  */
25
- apiDocsUrl?: string;
25
+ apiDocsUrl: string;
26
+ /**
27
+ *
28
+ */
29
+ name: string;
26
30
  }
27
31
 
28
32
  /**
29
33
  * Check if a given object implements the CreateMCPServerDTO interface.
30
34
  */
31
35
  export function instanceOfCreateMCPServerDTO(value: object): value is CreateMCPServerDTO {
36
+ if (!('apiDocsUrl' in value) || value['apiDocsUrl'] === undefined) return false;
37
+ if (!('name' in value) || value['name'] === undefined) return false;
32
38
  return true;
33
39
  }
34
40
 
@@ -42,7 +48,8 @@ export function CreateMCPServerDTOFromJSONTyped(json: any, ignoreDiscriminator:
42
48
  }
43
49
  return {
44
50
 
45
- 'apiDocsUrl': json['apiDocsUrl'] == null ? undefined : json['apiDocsUrl'],
51
+ 'apiDocsUrl': json['apiDocsUrl'],
52
+ 'name': json['name'],
46
53
  };
47
54
  }
48
55
 
@@ -58,6 +65,7 @@ export function CreateMCPServerDTOToJSONTyped(value?: CreateMCPServerDTO | null,
58
65
  return {
59
66
 
60
67
  'apiDocsUrl': value['apiDocsUrl'],
68
+ 'name': value['name'],
61
69
  };
62
70
  }
63
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuix-mcp-host-client",
3
- "version": "0.0.266",
3
+ "version": "0.0.268",
4
4
  "description": "This package facilitates the client request to tuix tuix-mcp-host",
5
5
  "main": "index.js",
6
6
  "private": false,