tuix-mcp-host-client 0.0.161 → 0.0.162
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/.openapi-generator/FILES +6 -2
- package/apis/ClientApi.js +88 -41
- package/apis/ClientApi.js.map +1 -1
- package/apis/ClientApi.ts +165 -73
- package/docs/CallMCPServerToolDTO.md +36 -0
- package/docs/{UpdateMCPServerDTO.md → CallMCPServerToolResultDTO.md} +6 -8
- package/docs/ClientApi.md +142 -57
- package/docs/MCPServerToolDTO.md +40 -0
- package/models/CallMCPServerToolDTO.js +51 -0
- package/models/CallMCPServerToolDTO.js.map +1 -0
- package/models/CallMCPServerToolDTO.ts +69 -0
- package/models/CallMCPServerToolResultDTO.js +49 -0
- package/models/CallMCPServerToolResultDTO.js.map +1 -0
- package/models/CallMCPServerToolResultDTO.ts +63 -0
- package/models/MCPServerToolDTO.js +57 -0
- package/models/MCPServerToolDTO.js.map +1 -0
- package/models/MCPServerToolDTO.ts +82 -0
- package/models/index.js +3 -1
- package/models/index.js.map +1 -1
- package/models/index.ts +3 -1
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/models/UpdateMCPServerDTO.js +0 -51
- package/models/UpdateMCPServerDTO.js.map +0 -1
- package/models/UpdateMCPServerDTO.ts +0 -69
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
#
|
|
2
|
+
# CallMCPServerToolResultDTO
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
## Properties
|
|
6
6
|
|
|
7
7
|
Name | Type
|
|
8
8
|
------------ | -------------
|
|
9
|
-
`
|
|
10
|
-
`url` | string
|
|
9
|
+
`result` | any
|
|
11
10
|
|
|
12
11
|
## Example
|
|
13
12
|
|
|
14
13
|
```typescript
|
|
15
|
-
import type {
|
|
14
|
+
import type { CallMCPServerToolResultDTO } from ''
|
|
16
15
|
|
|
17
16
|
// TODO: Update the object below with actual values
|
|
18
17
|
const example = {
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
} satisfies UpdateMCPServerDTO
|
|
18
|
+
"result": null,
|
|
19
|
+
} satisfies CallMCPServerToolResultDTO
|
|
22
20
|
|
|
23
21
|
console.log(example)
|
|
24
22
|
|
|
@@ -27,7 +25,7 @@ const exampleJSON: string = JSON.stringify(example)
|
|
|
27
25
|
console.log(exampleJSON)
|
|
28
26
|
|
|
29
27
|
// Parse the JSON string back to an object
|
|
30
|
-
const exampleParsed = JSON.parse(exampleJSON) as
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as CallMCPServerToolResultDTO
|
|
31
29
|
console.log(exampleParsed)
|
|
32
30
|
```
|
|
33
31
|
|
package/docs/ClientApi.md
CHANGED
|
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:3000*
|
|
|
8
8
|
| [**apiKeysIdDelete**](ClientApi.md#apikeysiddelete) | **DELETE** /api-keys/{id} | Delete an API key |
|
|
9
9
|
| [**apiKeysPost**](ClientApi.md#apikeyspost) | **POST** /api-keys | Create a new API key |
|
|
10
10
|
| [**attachMCPServer**](ClientApi.md#attachmcpserver) | **POST** /applications/{applicationId}/mcp-servers | Attach MCP server to application |
|
|
11
|
+
| [**callMCPServerTool**](ClientApi.md#callmcpservertool) | **POST** /mcp-servers/{mcpServerId}/tools/{toolName}/executions | Call a tool of an MCP server |
|
|
11
12
|
| [**createAccount**](ClientApi.md#createaccount) | **POST** /accounts | Creates a new account |
|
|
12
13
|
| [**createApplication**](ClientApi.md#createapplication) | **POST** /applications | Create a new application |
|
|
13
14
|
| [**createMCPServer**](ClientApi.md#createmcpserver) | **POST** /mcp-servers | Create a new MCP server |
|
|
@@ -21,9 +22,9 @@ All URIs are relative to *http://localhost:3000*
|
|
|
21
22
|
| [**getMCPServerStatus**](ClientApi.md#getmcpserverstatus) | **GET** /mcp-servers/{mcpServerId}/status | Get MCP server generation status |
|
|
22
23
|
| [**getMCPServers**](ClientApi.md#getmcpservers) | **GET** /mcp-servers | List MCP servers for account |
|
|
23
24
|
| [**getMCPServersByApplication**](ClientApi.md#getmcpserversbyapplication) | **GET** /applications/{applicationId}/mcp-servers | List MCP servers for an application |
|
|
25
|
+
| [**listMCPServerTools**](ClientApi.md#listmcpservertools) | **GET** /mcp-servers/{mcpServerId}/tools | List tools of an MCP server |
|
|
24
26
|
| [**searchApplicationTools**](ClientApi.md#searchapplicationtools) | **GET** /applications/{applicationId}/tools-search | Search an application\'s MCP tools (debug) |
|
|
25
27
|
| [**updateApplication**](ClientApi.md#updateapplication) | **PATCH** /applications/{applicationId} | Update an application |
|
|
26
|
-
| [**updateMCPServer**](ClientApi.md#updatemcpserver) | **PATCH** /mcp-servers/{mcpServerId} | Update an existing MCP server |
|
|
27
28
|
|
|
28
29
|
|
|
29
30
|
|
|
@@ -317,6 +318,88 @@ No authorization required
|
|
|
317
318
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
318
319
|
|
|
319
320
|
|
|
321
|
+
## callMCPServerTool
|
|
322
|
+
|
|
323
|
+
> CallMCPServerToolResultDTO callMCPServerTool(mcpServerId, toolName, callMCPServerToolDTO, xDownstreamAuthorization)
|
|
324
|
+
|
|
325
|
+
Call a tool of an MCP server
|
|
326
|
+
|
|
327
|
+
Send a JSON-RPC tools/call request to a deployed MCP server and return its result
|
|
328
|
+
|
|
329
|
+
### Example
|
|
330
|
+
|
|
331
|
+
```ts
|
|
332
|
+
import {
|
|
333
|
+
Configuration,
|
|
334
|
+
ClientApi,
|
|
335
|
+
} from '';
|
|
336
|
+
import type { CallMCPServerToolRequest } from '';
|
|
337
|
+
|
|
338
|
+
async function example() {
|
|
339
|
+
console.log("🚀 Testing SDK...");
|
|
340
|
+
const api = new ClientApi();
|
|
341
|
+
|
|
342
|
+
const body = {
|
|
343
|
+
// string | MCP Server ID
|
|
344
|
+
mcpServerId: mcpServerId_example,
|
|
345
|
+
// string | Tool name to call
|
|
346
|
+
toolName: toolName_example,
|
|
347
|
+
// CallMCPServerToolDTO | Tool call data
|
|
348
|
+
callMCPServerToolDTO: ...,
|
|
349
|
+
// string | Downstream authorization token for the MCP server (optional)
|
|
350
|
+
xDownstreamAuthorization: xDownstreamAuthorization_example,
|
|
351
|
+
} satisfies CallMCPServerToolRequest;
|
|
352
|
+
|
|
353
|
+
try {
|
|
354
|
+
const data = await api.callMCPServerTool(body);
|
|
355
|
+
console.log(data);
|
|
356
|
+
} catch (error) {
|
|
357
|
+
console.error(error);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// Run the test
|
|
362
|
+
example().catch(console.error);
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### Parameters
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
| Name | Type | Description | Notes |
|
|
369
|
+
|------------- | ------------- | ------------- | -------------|
|
|
370
|
+
| **mcpServerId** | `string` | MCP Server ID | [Defaults to `undefined`] |
|
|
371
|
+
| **toolName** | `string` | Tool name to call | [Defaults to `undefined`] |
|
|
372
|
+
| **callMCPServerToolDTO** | [CallMCPServerToolDTO](CallMCPServerToolDTO.md) | Tool call data | |
|
|
373
|
+
| **xDownstreamAuthorization** | `string` | Downstream authorization token for the MCP server | [Optional] [Defaults to `undefined`] |
|
|
374
|
+
|
|
375
|
+
### Return type
|
|
376
|
+
|
|
377
|
+
[**CallMCPServerToolResultDTO**](CallMCPServerToolResultDTO.md)
|
|
378
|
+
|
|
379
|
+
### Authorization
|
|
380
|
+
|
|
381
|
+
No authorization required
|
|
382
|
+
|
|
383
|
+
### HTTP request headers
|
|
384
|
+
|
|
385
|
+
- **Content-Type**: `application/json`
|
|
386
|
+
- **Accept**: `application/json`
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
### HTTP response details
|
|
390
|
+
| Status code | Description | Response headers |
|
|
391
|
+
|-------------|-------------|------------------|
|
|
392
|
+
| **200** | Tool call result | - |
|
|
393
|
+
| **400** | Bad Request | - |
|
|
394
|
+
| **401** | Unauthorized | - |
|
|
395
|
+
| **402** | Payment Required | - |
|
|
396
|
+
| **404** | Not Found | - |
|
|
397
|
+
| **500** | Internal Server Error | - |
|
|
398
|
+
| **502** | Bad Gateway | - |
|
|
399
|
+
|
|
400
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
401
|
+
|
|
402
|
+
|
|
320
403
|
## createAccount
|
|
321
404
|
|
|
322
405
|
> AccountDTO createAccount(createAccountDTO)
|
|
@@ -1269,13 +1352,13 @@ No authorization required
|
|
|
1269
1352
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1270
1353
|
|
|
1271
1354
|
|
|
1272
|
-
##
|
|
1355
|
+
## listMCPServerTools
|
|
1273
1356
|
|
|
1274
|
-
>
|
|
1357
|
+
> Array<MCPServerToolDTO> listMCPServerTools(mcpServerId, xDownstreamAuthorization)
|
|
1275
1358
|
|
|
1276
|
-
|
|
1359
|
+
List tools of an MCP server
|
|
1277
1360
|
|
|
1278
|
-
|
|
1361
|
+
Send a JSON-RPC tools/list request to a deployed MCP server and return its tools with their roles
|
|
1279
1362
|
|
|
1280
1363
|
### Example
|
|
1281
1364
|
|
|
@@ -1284,23 +1367,21 @@ import {
|
|
|
1284
1367
|
Configuration,
|
|
1285
1368
|
ClientApi,
|
|
1286
1369
|
} from '';
|
|
1287
|
-
import type {
|
|
1370
|
+
import type { ListMCPServerToolsRequest } from '';
|
|
1288
1371
|
|
|
1289
1372
|
async function example() {
|
|
1290
1373
|
console.log("🚀 Testing SDK...");
|
|
1291
1374
|
const api = new ClientApi();
|
|
1292
1375
|
|
|
1293
1376
|
const body = {
|
|
1294
|
-
// string |
|
|
1295
|
-
|
|
1296
|
-
// string |
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
role: role_example,
|
|
1300
|
-
} satisfies SearchApplicationToolsRequest;
|
|
1377
|
+
// string | MCP Server ID
|
|
1378
|
+
mcpServerId: mcpServerId_example,
|
|
1379
|
+
// string | Downstream authorization token for the MCP server (optional)
|
|
1380
|
+
xDownstreamAuthorization: xDownstreamAuthorization_example,
|
|
1381
|
+
} satisfies ListMCPServerToolsRequest;
|
|
1301
1382
|
|
|
1302
1383
|
try {
|
|
1303
|
-
const data = await api.
|
|
1384
|
+
const data = await api.listMCPServerTools(body);
|
|
1304
1385
|
console.log(data);
|
|
1305
1386
|
} catch (error) {
|
|
1306
1387
|
console.error(error);
|
|
@@ -1316,13 +1397,12 @@ example().catch(console.error);
|
|
|
1316
1397
|
|
|
1317
1398
|
| Name | Type | Description | Notes |
|
|
1318
1399
|
|------------- | ------------- | ------------- | -------------|
|
|
1319
|
-
| **
|
|
1320
|
-
| **
|
|
1321
|
-
| **role** | `string` | Role to simulate; when omitted no role filtering is applied | [Optional] [Defaults to `undefined`] |
|
|
1400
|
+
| **mcpServerId** | `string` | MCP Server ID | [Defaults to `undefined`] |
|
|
1401
|
+
| **xDownstreamAuthorization** | `string` | Downstream authorization token for the MCP server | [Optional] [Defaults to `undefined`] |
|
|
1322
1402
|
|
|
1323
1403
|
### Return type
|
|
1324
1404
|
|
|
1325
|
-
[**
|
|
1405
|
+
[**Array<MCPServerToolDTO>**](MCPServerToolDTO.md)
|
|
1326
1406
|
|
|
1327
1407
|
### Authorization
|
|
1328
1408
|
|
|
@@ -1337,23 +1417,24 @@ No authorization required
|
|
|
1337
1417
|
### HTTP response details
|
|
1338
1418
|
| Status code | Description | Response headers |
|
|
1339
1419
|
|-------------|-------------|------------------|
|
|
1340
|
-
| **200** |
|
|
1420
|
+
| **200** | Tools exposed by the MCP server | - |
|
|
1341
1421
|
| **400** | Bad Request | - |
|
|
1342
1422
|
| **401** | Unauthorized | - |
|
|
1343
1423
|
| **402** | Payment Required | - |
|
|
1344
1424
|
| **404** | Not Found | - |
|
|
1345
1425
|
| **500** | Internal Server Error | - |
|
|
1426
|
+
| **502** | Bad Gateway | - |
|
|
1346
1427
|
|
|
1347
1428
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1348
1429
|
|
|
1349
1430
|
|
|
1350
|
-
##
|
|
1431
|
+
## searchApplicationTools
|
|
1351
1432
|
|
|
1352
|
-
>
|
|
1433
|
+
> SearchToolsResponseDTO searchApplicationTools(applicationId, query, role)
|
|
1353
1434
|
|
|
1354
|
-
|
|
1435
|
+
Search an application\'s MCP tools (debug)
|
|
1355
1436
|
|
|
1356
|
-
|
|
1437
|
+
Lists the tools of the application\'s MCP servers, applies role filtering and ranks them against the query with BM25 and a fuzzy fallback. Intended for tuning search quality: no session is created and nothing is cached.
|
|
1357
1438
|
|
|
1358
1439
|
### Example
|
|
1359
1440
|
|
|
@@ -1362,7 +1443,7 @@ import {
|
|
|
1362
1443
|
Configuration,
|
|
1363
1444
|
ClientApi,
|
|
1364
1445
|
} from '';
|
|
1365
|
-
import type {
|
|
1446
|
+
import type { SearchApplicationToolsRequest } from '';
|
|
1366
1447
|
|
|
1367
1448
|
async function example() {
|
|
1368
1449
|
console.log("🚀 Testing SDK...");
|
|
@@ -1371,12 +1452,14 @@ async function example() {
|
|
|
1371
1452
|
const body = {
|
|
1372
1453
|
// string | Application ID
|
|
1373
1454
|
applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1374
|
-
//
|
|
1375
|
-
|
|
1376
|
-
|
|
1455
|
+
// string | Search query
|
|
1456
|
+
query: query_example,
|
|
1457
|
+
// string | Role to simulate; when omitted no role filtering is applied (optional)
|
|
1458
|
+
role: role_example,
|
|
1459
|
+
} satisfies SearchApplicationToolsRequest;
|
|
1377
1460
|
|
|
1378
1461
|
try {
|
|
1379
|
-
const data = await api.
|
|
1462
|
+
const data = await api.searchApplicationTools(body);
|
|
1380
1463
|
console.log(data);
|
|
1381
1464
|
} catch (error) {
|
|
1382
1465
|
console.error(error);
|
|
@@ -1393,11 +1476,12 @@ example().catch(console.error);
|
|
|
1393
1476
|
| Name | Type | Description | Notes |
|
|
1394
1477
|
|------------- | ------------- | ------------- | -------------|
|
|
1395
1478
|
| **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
|
|
1396
|
-
| **
|
|
1479
|
+
| **query** | `string` | Search query | [Defaults to `undefined`] |
|
|
1480
|
+
| **role** | `string` | Role to simulate; when omitted no role filtering is applied | [Optional] [Defaults to `undefined`] |
|
|
1397
1481
|
|
|
1398
1482
|
### Return type
|
|
1399
1483
|
|
|
1400
|
-
[**
|
|
1484
|
+
[**SearchToolsResponseDTO**](SearchToolsResponseDTO.md)
|
|
1401
1485
|
|
|
1402
1486
|
### Authorization
|
|
1403
1487
|
|
|
@@ -1405,31 +1489,30 @@ No authorization required
|
|
|
1405
1489
|
|
|
1406
1490
|
### HTTP request headers
|
|
1407
1491
|
|
|
1408
|
-
- **Content-Type**:
|
|
1492
|
+
- **Content-Type**: Not defined
|
|
1409
1493
|
- **Accept**: `application/json`
|
|
1410
1494
|
|
|
1411
1495
|
|
|
1412
1496
|
### HTTP response details
|
|
1413
1497
|
| Status code | Description | Response headers |
|
|
1414
1498
|
|-------------|-------------|------------------|
|
|
1415
|
-
| **200** |
|
|
1416
|
-
| **400** |
|
|
1417
|
-
| **401** |
|
|
1418
|
-
| **402** |
|
|
1419
|
-
| **
|
|
1420
|
-
| **
|
|
1421
|
-
| **500** | Return an error if the server founds an error | - |
|
|
1499
|
+
| **200** | Listed tools and ranked results | - |
|
|
1500
|
+
| **400** | Bad Request | - |
|
|
1501
|
+
| **401** | Unauthorized | - |
|
|
1502
|
+
| **402** | Payment Required | - |
|
|
1503
|
+
| **404** | Not Found | - |
|
|
1504
|
+
| **500** | Internal Server Error | - |
|
|
1422
1505
|
|
|
1423
1506
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1424
1507
|
|
|
1425
1508
|
|
|
1426
|
-
##
|
|
1509
|
+
## updateApplication
|
|
1427
1510
|
|
|
1428
|
-
>
|
|
1511
|
+
> ApplicationDTO updateApplication(applicationId, updateApplicationDTO)
|
|
1429
1512
|
|
|
1430
|
-
Update an
|
|
1513
|
+
Update an application
|
|
1431
1514
|
|
|
1432
|
-
Update an
|
|
1515
|
+
Update an application belonging to the authenticated account
|
|
1433
1516
|
|
|
1434
1517
|
### Example
|
|
1435
1518
|
|
|
@@ -1438,21 +1521,21 @@ import {
|
|
|
1438
1521
|
Configuration,
|
|
1439
1522
|
ClientApi,
|
|
1440
1523
|
} from '';
|
|
1441
|
-
import type {
|
|
1524
|
+
import type { UpdateApplicationRequest } from '';
|
|
1442
1525
|
|
|
1443
1526
|
async function example() {
|
|
1444
1527
|
console.log("🚀 Testing SDK...");
|
|
1445
1528
|
const api = new ClientApi();
|
|
1446
1529
|
|
|
1447
1530
|
const body = {
|
|
1448
|
-
// string |
|
|
1449
|
-
|
|
1450
|
-
//
|
|
1451
|
-
|
|
1452
|
-
} satisfies
|
|
1531
|
+
// string | Application ID
|
|
1532
|
+
applicationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1533
|
+
// UpdateApplicationDTO | Application update data
|
|
1534
|
+
updateApplicationDTO: ...,
|
|
1535
|
+
} satisfies UpdateApplicationRequest;
|
|
1453
1536
|
|
|
1454
1537
|
try {
|
|
1455
|
-
const data = await api.
|
|
1538
|
+
const data = await api.updateApplication(body);
|
|
1456
1539
|
console.log(data);
|
|
1457
1540
|
} catch (error) {
|
|
1458
1541
|
console.error(error);
|
|
@@ -1468,12 +1551,12 @@ example().catch(console.error);
|
|
|
1468
1551
|
|
|
1469
1552
|
| Name | Type | Description | Notes |
|
|
1470
1553
|
|------------- | ------------- | ------------- | -------------|
|
|
1471
|
-
| **
|
|
1472
|
-
| **
|
|
1554
|
+
| **applicationId** | `string` | Application ID | [Defaults to `undefined`] |
|
|
1555
|
+
| **updateApplicationDTO** | [UpdateApplicationDTO](UpdateApplicationDTO.md) | Application update data | |
|
|
1473
1556
|
|
|
1474
1557
|
### Return type
|
|
1475
1558
|
|
|
1476
|
-
[**
|
|
1559
|
+
[**ApplicationDTO**](ApplicationDTO.md)
|
|
1477
1560
|
|
|
1478
1561
|
### Authorization
|
|
1479
1562
|
|
|
@@ -1488,11 +1571,13 @@ No authorization required
|
|
|
1488
1571
|
### HTTP response details
|
|
1489
1572
|
| Status code | Description | Response headers |
|
|
1490
1573
|
|-------------|-------------|------------------|
|
|
1491
|
-
| **200** |
|
|
1492
|
-
| **400** |
|
|
1493
|
-
| **401** |
|
|
1494
|
-
| **402** |
|
|
1495
|
-
| **
|
|
1574
|
+
| **200** | Updates an application and return an updated application if the ID exists | - |
|
|
1575
|
+
| **400** | Return an error if aiModelId does not reference an existing AI model | - |
|
|
1576
|
+
| **401** | Return an error if the user is not authenticated | - |
|
|
1577
|
+
| **402** | Return an error if the trial access has expired | - |
|
|
1578
|
+
| **403** | Return an error if the user does not have the required permissions | - |
|
|
1579
|
+
| **404** | Return an error if the application is not found | - |
|
|
1580
|
+
| **500** | Return an error if the server founds an error | - |
|
|
1496
1581
|
|
|
1497
1582
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1498
1583
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# MCPServerToolDTO
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`description` | string
|
|
10
|
+
`inputSchema` | { [key: string]: any; }
|
|
11
|
+
`name` | string
|
|
12
|
+
`roles` | Array<string>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { MCPServerToolDTO } from ''
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"description": null,
|
|
22
|
+
"inputSchema": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"roles": null,
|
|
25
|
+
} satisfies MCPServerToolDTO
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as MCPServerToolDTO
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix MCP Host API
|
|
6
|
+
* Service managing MCP servers for Tuix applications.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCallMCPServerToolDTO = instanceOfCallMCPServerToolDTO;
|
|
17
|
+
exports.CallMCPServerToolDTOFromJSON = CallMCPServerToolDTOFromJSON;
|
|
18
|
+
exports.CallMCPServerToolDTOFromJSONTyped = CallMCPServerToolDTOFromJSONTyped;
|
|
19
|
+
exports.CallMCPServerToolDTOToJSON = CallMCPServerToolDTOToJSON;
|
|
20
|
+
exports.CallMCPServerToolDTOToJSONTyped = CallMCPServerToolDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CallMCPServerToolDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCallMCPServerToolDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CallMCPServerToolDTOFromJSON(json) {
|
|
28
|
+
return CallMCPServerToolDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CallMCPServerToolDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'arguments': json['arguments'] == null ? undefined : json['arguments'],
|
|
36
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function CallMCPServerToolDTOToJSON(json) {
|
|
40
|
+
return CallMCPServerToolDTOToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function CallMCPServerToolDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'arguments': value['arguments'],
|
|
48
|
+
'sessionId': value['sessionId'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=CallMCPServerToolDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallMCPServerToolDTO.js","sourceRoot":"","sources":["CallMCPServerToolDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsBH,wEAEC;AAED,oEAEC;AAED,8EASC;AAED,gEAEC;AAED,0EAUC;AApCD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACtE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix MCP Host API
|
|
5
|
+
* Service managing MCP servers for Tuix applications.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CallMCPServerToolDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface CallMCPServerToolDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
arguments?: { [key: string]: any; };
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
sessionId?: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the CallMCPServerToolDTO interface.
|
|
34
|
+
*/
|
|
35
|
+
export function instanceOfCallMCPServerToolDTO(value: object): value is CallMCPServerToolDTO {
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CallMCPServerToolDTOFromJSON(json: any): CallMCPServerToolDTO {
|
|
40
|
+
return CallMCPServerToolDTOFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function CallMCPServerToolDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallMCPServerToolDTO {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
|
|
49
|
+
'arguments': json['arguments'] == null ? undefined : json['arguments'],
|
|
50
|
+
'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function CallMCPServerToolDTOToJSON(json: any): CallMCPServerToolDTO {
|
|
55
|
+
return CallMCPServerToolDTOToJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function CallMCPServerToolDTOToJSONTyped(value?: CallMCPServerToolDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'arguments': value['arguments'],
|
|
66
|
+
'sessionId': value['sessionId'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tuix MCP Host API
|
|
6
|
+
* Service managing MCP servers for Tuix applications.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCallMCPServerToolResultDTO = instanceOfCallMCPServerToolResultDTO;
|
|
17
|
+
exports.CallMCPServerToolResultDTOFromJSON = CallMCPServerToolResultDTOFromJSON;
|
|
18
|
+
exports.CallMCPServerToolResultDTOFromJSONTyped = CallMCPServerToolResultDTOFromJSONTyped;
|
|
19
|
+
exports.CallMCPServerToolResultDTOToJSON = CallMCPServerToolResultDTOToJSON;
|
|
20
|
+
exports.CallMCPServerToolResultDTOToJSONTyped = CallMCPServerToolResultDTOToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CallMCPServerToolResultDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCallMCPServerToolResultDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function CallMCPServerToolResultDTOFromJSON(json) {
|
|
28
|
+
return CallMCPServerToolResultDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function CallMCPServerToolResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'result': json['result'] === undefined ? undefined : json['result'] === null ? null : json['result'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function CallMCPServerToolResultDTOToJSON(json) {
|
|
39
|
+
return CallMCPServerToolResultDTOToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function CallMCPServerToolResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'result': value['result'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=CallMCPServerToolResultDTO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CallMCPServerToolResultDTO.js","sourceRoot":"","sources":["CallMCPServerToolResultDTO.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkBH,oFAEC;AAED,gFAEC;AAED,0FAQC;AAED,4EAEC;AAED,sFASC;AAlCD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KACvG,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tuix MCP Host API
|
|
5
|
+
* Service managing MCP servers for Tuix applications.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.0.1
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CallMCPServerToolResultDTO
|
|
20
|
+
*/
|
|
21
|
+
export interface CallMCPServerToolResultDTO {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
result?: any | null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Check if a given object implements the CallMCPServerToolResultDTO interface.
|
|
30
|
+
*/
|
|
31
|
+
export function instanceOfCallMCPServerToolResultDTO(value: object): value is CallMCPServerToolResultDTO {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function CallMCPServerToolResultDTOFromJSON(json: any): CallMCPServerToolResultDTO {
|
|
36
|
+
return CallMCPServerToolResultDTOFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function CallMCPServerToolResultDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): CallMCPServerToolResultDTO {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
|
|
45
|
+
'result': json['result'] === undefined ? undefined : json['result'] === null ? null : json['result'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function CallMCPServerToolResultDTOToJSON(json: any): CallMCPServerToolResultDTO {
|
|
50
|
+
return CallMCPServerToolResultDTOToJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function CallMCPServerToolResultDTOToJSONTyped(value?: CallMCPServerToolResultDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
return {
|
|
59
|
+
|
|
60
|
+
'result': value['result'],
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|