tuix-mcp-host-client 0.0.266 → 0.0.267
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/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** |
|
|
687
|
+
| **400** | Invalid body, name or apiDocsUrl | - |
|
|
688
688
|
| **401** | Unauthorized | - |
|
|
689
689
|
| **402** | Payment Required | - |
|
|
690
690
|
| **500** | Internal Server Error | - |
|
|
@@ -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']
|
|
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;;
|
|
1
|
+
{"version":3,"file":"CreateMCPServerDTO.js","sourceRoot":"","sources":["CreateMCPServerDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsBH,oEAIC;AAED,gEAEC;AAED,0EASC;AAED,4DAEC;AAED,sEAUC;AAtCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,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;QAChC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,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,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"}
|
|
@@ -22,13 +22,19 @@ export interface CreateMCPServerDTO {
|
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
*/
|
|
25
|
-
apiDocsUrl
|
|
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']
|
|
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
|
|