liara-mcp 1.0.0 → 1.1.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.
- package/README.md +25 -0
- package/dist/handlers/app-handlers.d.ts +3 -0
- package/dist/handlers/app-handlers.d.ts.map +1 -0
- package/dist/handlers/app-handlers.js +48 -0
- package/dist/handlers/app-handlers.js.map +1 -0
- package/dist/handlers/consolidated-handlers.d.ts +9 -0
- package/dist/handlers/consolidated-handlers.d.ts.map +1 -0
- package/dist/handlers/consolidated-handlers.js +400 -0
- package/dist/handlers/consolidated-handlers.js.map +1 -0
- package/dist/handlers/database-handlers.d.ts +3 -0
- package/dist/handlers/database-handlers.d.ts.map +1 -0
- package/dist/handlers/database-handlers.js +75 -0
- package/dist/handlers/database-handlers.js.map +1 -0
- package/dist/handlers/deployment-handlers.d.ts +3 -0
- package/dist/handlers/deployment-handlers.d.ts.map +1 -0
- package/dist/handlers/deployment-handlers.js +43 -0
- package/dist/handlers/deployment-handlers.js.map +1 -0
- package/dist/handlers/disk-handlers.d.ts +3 -0
- package/dist/handlers/disk-handlers.d.ts.map +1 -0
- package/dist/handlers/disk-handlers.js +48 -0
- package/dist/handlers/disk-handlers.js.map +1 -0
- package/dist/handlers/dns-handlers.d.ts +3 -0
- package/dist/handlers/dns-handlers.d.ts.map +1 -0
- package/dist/handlers/dns-handlers.js +63 -0
- package/dist/handlers/dns-handlers.js.map +1 -0
- package/dist/handlers/domain-handlers.d.ts +3 -0
- package/dist/handlers/domain-handlers.d.ts.map +1 -0
- package/dist/handlers/domain-handlers.js +28 -0
- package/dist/handlers/domain-handlers.js.map +1 -0
- package/dist/handlers/env-handlers.d.ts +3 -0
- package/dist/handlers/env-handlers.d.ts.map +1 -0
- package/dist/handlers/env-handlers.js +32 -0
- package/dist/handlers/env-handlers.js.map +1 -0
- package/dist/handlers/index.d.ts +8 -0
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +94 -0
- package/dist/handlers/index.js.map +1 -0
- package/dist/handlers/mail-handlers.d.ts +3 -0
- package/dist/handlers/mail-handlers.d.ts.map +1 -0
- package/dist/handlers/mail-handlers.js +51 -0
- package/dist/handlers/mail-handlers.js.map +1 -0
- package/dist/handlers/network-handlers.d.ts +3 -0
- package/dist/handlers/network-handlers.d.ts.map +1 -0
- package/dist/handlers/network-handlers.js +28 -0
- package/dist/handlers/network-handlers.js.map +1 -0
- package/dist/handlers/observability-handlers.d.ts +3 -0
- package/dist/handlers/observability-handlers.d.ts.map +1 -0
- package/dist/handlers/observability-handlers.js +24 -0
- package/dist/handlers/observability-handlers.js.map +1 -0
- package/dist/handlers/plan-handlers.d.ts +3 -0
- package/dist/handlers/plan-handlers.d.ts.map +1 -0
- package/dist/handlers/plan-handlers.js +20 -0
- package/dist/handlers/plan-handlers.js.map +1 -0
- package/dist/handlers/settings-handlers.d.ts +3 -0
- package/dist/handlers/settings-handlers.d.ts.map +1 -0
- package/dist/handlers/settings-handlers.js +29 -0
- package/dist/handlers/settings-handlers.js.map +1 -0
- package/dist/handlers/storage-handlers.d.ts +3 -0
- package/dist/handlers/storage-handlers.d.ts.map +1 -0
- package/dist/handlers/storage-handlers.js +48 -0
- package/dist/handlers/storage-handlers.js.map +1 -0
- package/dist/handlers/types.d.ts +27 -0
- package/dist/handlers/types.d.ts.map +1 -0
- package/dist/handlers/types.js +31 -0
- package/dist/handlers/types.js.map +1 -0
- package/dist/handlers/user-handlers.d.ts +3 -0
- package/dist/handlers/user-handlers.d.ts.map +1 -0
- package/dist/handlers/user-handlers.js +16 -0
- package/dist/handlers/user-handlers.js.map +1 -0
- package/dist/handlers/vm-handlers.d.ts +3 -0
- package/dist/handlers/vm-handlers.d.ts.map +1 -0
- package/dist/handlers/vm-handlers.js +68 -0
- package/dist/handlers/vm-handlers.js.map +1 -0
- package/dist/index.js +6 -2986
- package/dist/index.js.map +1 -1
- package/dist/services/observability.js +1 -1
- package/dist/services/observability.js.map +1 -1
- package/dist/tools/app-tools.d.ts +6 -0
- package/dist/tools/app-tools.d.ts.map +1 -0
- package/dist/tools/app-tools.js +133 -0
- package/dist/tools/app-tools.js.map +1 -0
- package/dist/tools/consolidated-tools.d.ts +6 -0
- package/dist/tools/consolidated-tools.d.ts.map +1 -0
- package/dist/tools/consolidated-tools.js +256 -0
- package/dist/tools/consolidated-tools.js.map +1 -0
- package/dist/tools/database-tools.d.ts +6 -0
- package/dist/tools/database-tools.d.ts.map +1 -0
- package/dist/tools/database-tools.js +252 -0
- package/dist/tools/database-tools.js.map +1 -0
- package/dist/tools/deployment-tools.d.ts +6 -0
- package/dist/tools/deployment-tools.d.ts.map +1 -0
- package/dist/tools/deployment-tools.js +140 -0
- package/dist/tools/deployment-tools.js.map +1 -0
- package/dist/tools/disk-tools.d.ts +6 -0
- package/dist/tools/disk-tools.d.ts.map +1 -0
- package/dist/tools/disk-tools.js +167 -0
- package/dist/tools/disk-tools.js.map +1 -0
- package/dist/tools/dns-tools.d.ts +6 -0
- package/dist/tools/dns-tools.d.ts.map +1 -0
- package/dist/tools/dns-tools.js +184 -0
- package/dist/tools/dns-tools.js.map +1 -0
- package/dist/tools/domain-tools.d.ts +6 -0
- package/dist/tools/domain-tools.d.ts.map +1 -0
- package/dist/tools/domain-tools.js +63 -0
- package/dist/tools/domain-tools.js.map +1 -0
- package/dist/tools/env-tools.d.ts +6 -0
- package/dist/tools/env-tools.d.ts.map +1 -0
- package/dist/tools/env-tools.js +112 -0
- package/dist/tools/env-tools.js.map +1 -0
- package/dist/tools/index.d.ts +28 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +72 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/mail-tools.d.ts +6 -0
- package/dist/tools/mail-tools.d.ts.map +1 -0
- package/dist/tools/mail-tools.js +148 -0
- package/dist/tools/mail-tools.js.map +1 -0
- package/dist/tools/network-tools.d.ts +6 -0
- package/dist/tools/network-tools.d.ts.map +1 -0
- package/dist/tools/network-tools.js +63 -0
- package/dist/tools/network-tools.js.map +1 -0
- package/dist/tools/observability-tools.d.ts +6 -0
- package/dist/tools/observability-tools.d.ts.map +1 -0
- package/dist/tools/observability-tools.js +49 -0
- package/dist/tools/observability-tools.js.map +1 -0
- package/dist/tools/plan-tools.d.ts +6 -0
- package/dist/tools/plan-tools.d.ts.map +1 -0
- package/dist/tools/plan-tools.js +38 -0
- package/dist/tools/plan-tools.js.map +1 -0
- package/dist/tools/settings-tools.d.ts +6 -0
- package/dist/tools/settings-tools.d.ts.map +1 -0
- package/dist/tools/settings-tools.js +77 -0
- package/dist/tools/settings-tools.js.map +1 -0
- package/dist/tools/storage-tools.d.ts +6 -0
- package/dist/tools/storage-tools.d.ts.map +1 -0
- package/dist/tools/storage-tools.js +166 -0
- package/dist/tools/storage-tools.js.map +1 -0
- package/dist/tools/types.d.ts +34 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +27 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/tools/user-tools.d.ts +6 -0
- package/dist/tools/user-tools.d.ts.map +1 -0
- package/dist/tools/user-tools.js +13 -0
- package/dist/tools/user-tools.js.map +1 -0
- package/dist/tools/vm-tools.d.ts +6 -0
- package/dist/tools/vm-tools.d.ts.map +1 -0
- package/dist/tools/vm-tools.js +240 -0
- package/dist/tools/vm-tools.js.map +1 -0
- package/dist/utils/errors.js +2 -2
- package/dist/utils/errors.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Mail tool definitions
|
|
3
|
+
*/
|
|
4
|
+
import { getPaginationProperties } from './types.js';
|
|
5
|
+
export function getMailTools() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'liara_list_mail_servers',
|
|
9
|
+
description: 'List all mail servers',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: getPaginationProperties(),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'liara_get_mail_server',
|
|
17
|
+
description: 'Get details of a mail server',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
mailId: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The mail server ID',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
required: ['mailId'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'liara_create_mail_server',
|
|
31
|
+
description: 'Create a new mail server',
|
|
32
|
+
inputSchema: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
name: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Mail server name',
|
|
38
|
+
},
|
|
39
|
+
mode: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Mail server mode',
|
|
42
|
+
enum: ['DEV', 'LIVE'],
|
|
43
|
+
},
|
|
44
|
+
planID: {
|
|
45
|
+
type: 'string',
|
|
46
|
+
description: 'Plan ID for the mail server (required)',
|
|
47
|
+
},
|
|
48
|
+
domain: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
description: 'Domain name for the mail server (required)',
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
required: ['planID', 'domain'],
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: 'liara_delete_mail_server',
|
|
58
|
+
description: 'Delete a mail server',
|
|
59
|
+
inputSchema: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
properties: {
|
|
62
|
+
mailId: {
|
|
63
|
+
type: 'string',
|
|
64
|
+
description: 'The mail server ID to delete',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
required: ['mailId'],
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
name: 'liara_send_email',
|
|
72
|
+
description: 'Send an email via a mail server',
|
|
73
|
+
inputSchema: {
|
|
74
|
+
type: 'object',
|
|
75
|
+
properties: {
|
|
76
|
+
mailId: {
|
|
77
|
+
type: 'string',
|
|
78
|
+
description: 'The mail server ID',
|
|
79
|
+
},
|
|
80
|
+
from: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
description: 'From email address',
|
|
83
|
+
},
|
|
84
|
+
to: {
|
|
85
|
+
type: 'string',
|
|
86
|
+
description: 'To email address(es) - comma-separated for multiple',
|
|
87
|
+
},
|
|
88
|
+
subject: {
|
|
89
|
+
type: 'string',
|
|
90
|
+
description: 'Email subject',
|
|
91
|
+
},
|
|
92
|
+
html: {
|
|
93
|
+
type: 'string',
|
|
94
|
+
description: 'HTML email content (optional)',
|
|
95
|
+
},
|
|
96
|
+
text: {
|
|
97
|
+
type: 'string',
|
|
98
|
+
description: 'Plain text email content (optional)',
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
required: ['mailId', 'from', 'to', 'subject'],
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: 'liara_start_mail_server',
|
|
106
|
+
description: 'Start a mail server',
|
|
107
|
+
inputSchema: {
|
|
108
|
+
type: 'object',
|
|
109
|
+
properties: {
|
|
110
|
+
mailId: {
|
|
111
|
+
type: 'string',
|
|
112
|
+
description: 'The mail server ID',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
required: ['mailId'],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: 'liara_stop_mail_server',
|
|
120
|
+
description: 'Stop a mail server',
|
|
121
|
+
inputSchema: {
|
|
122
|
+
type: 'object',
|
|
123
|
+
properties: {
|
|
124
|
+
mailId: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
description: 'The mail server ID',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
required: ['mailId'],
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
name: 'liara_restart_mail_server',
|
|
134
|
+
description: 'Restart a mail server',
|
|
135
|
+
inputSchema: {
|
|
136
|
+
type: 'object',
|
|
137
|
+
properties: {
|
|
138
|
+
mailId: {
|
|
139
|
+
type: 'string',
|
|
140
|
+
description: 'The mail server ID',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
required: ['mailId'],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
];
|
|
147
|
+
}
|
|
148
|
+
//# sourceMappingURL=mail-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mail-tools.js","sourceRoot":"","sources":["../../src/tools/mail-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAkB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,UAAU,YAAY;IACxB,OAAO;QACH;YACI,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,uBAAuB,EAAE;aACxC;SACJ;QACD;YACI,IAAI,EAAE,uBAAuB;YAC7B,WAAW,EAAE,8BAA8B;YAC3C,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oBAAoB;qBACpC;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;SACJ;QACD;YACI,IAAI,EAAE,0BAA0B;YAChC,WAAW,EAAE,0BAA0B;YACvC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kBAAkB;qBAClC;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,kBAAkB;wBAC/B,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC;qBACxB;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,QA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,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oBAAoB;qBACpC;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;SACJ;QACD;YACI,IAAI,EAAE,wBAAwB;YAC9B,WAAW,EAAE,oBAAoB;YACjC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oBAAoB;qBACpC;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;SACJ;QACD;YACI,IAAI,EAAE,2BAA2B;YACjC,WAAW,EAAE,uBAAuB;YACpC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oBAAoB;qBACpC;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;SACJ;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-tools.d.ts","sourceRoot":"","sources":["../../src/tools/network-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAA2B,MAAM,YAAY,CAAC;AAErE,wBAAgB,eAAe,IAAI,cAAc,EAAE,CAyDlD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Network tool definitions
|
|
3
|
+
*/
|
|
4
|
+
import { getPaginationProperties } from './types.js';
|
|
5
|
+
export function getNetworkTools() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'liara_list_networks',
|
|
9
|
+
description: 'List all networks',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: getPaginationProperties(),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'liara_get_network',
|
|
17
|
+
description: 'Get details of a network',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
networkId: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The network ID',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
required: ['networkId'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'liara_create_network',
|
|
31
|
+
description: 'Create a new network',
|
|
32
|
+
inputSchema: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
name: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Network name',
|
|
38
|
+
},
|
|
39
|
+
cidr: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'CIDR block (optional)',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
required: ['name'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'liara_delete_network',
|
|
49
|
+
description: 'Delete a network',
|
|
50
|
+
inputSchema: {
|
|
51
|
+
type: 'object',
|
|
52
|
+
properties: {
|
|
53
|
+
networkId: {
|
|
54
|
+
type: 'string',
|
|
55
|
+
description: 'The network ID to delete',
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
required: ['networkId'],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=network-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"network-tools.js","sourceRoot":"","sources":["../../src/tools/network-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAkB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,UAAU,eAAe;IAC3B,OAAO;QACH;YACI,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE,uBAAuB,EAAE;aACxC;SACJ;QACD;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,0BAA0B;YACvC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gBAAgB;qBAChC;iBACJ;gBACD,QAAQ,EAAE,CAAC,WAAW,CAAC;aAC1B;SACJ;QACD;YACI,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,sBAAsB;YACnC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,cAAc;qBAC9B;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,uBAAuB;qBACvC;iBACJ;gBACD,QAAQ,EAAE,CAAC,MAAM,CAAC;aACrB;SACJ;QACD;YACI,IAAI,EAAE,sBAAsB;YAC5B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,0BAA0B;qBAC1C;iBACJ;gBACD,QAAQ,EAAE,CAAC,WAAW,CAAC;aAC1B;SACJ;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observability-tools.d.ts","sourceRoot":"","sources":["../../src/tools/observability-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,qBAAqB,IAAI,cAAc,EAAE,CA+CxD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export function getObservabilityTools() {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
name: 'liara_get_metrics',
|
|
5
|
+
description: 'Get app metrics summary',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
appName: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
description: 'The name of the app',
|
|
12
|
+
},
|
|
13
|
+
period: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Time period for metrics (optional)',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
required: ['appName'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'liara_get_logs',
|
|
23
|
+
description: 'Get app logs',
|
|
24
|
+
inputSchema: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
appName: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'The name of the app',
|
|
30
|
+
},
|
|
31
|
+
limit: {
|
|
32
|
+
type: 'number',
|
|
33
|
+
description: 'Maximum number of log entries (optional, default: 100)',
|
|
34
|
+
},
|
|
35
|
+
since: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'ISO timestamp to fetch logs since (optional)',
|
|
38
|
+
},
|
|
39
|
+
until: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'ISO timestamp to fetch logs until (optional)',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
required: ['appName'],
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
];
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=observability-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observability-tools.js","sourceRoot":"","sources":["../../src/tools/observability-tools.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,qBAAqB;IACjC,OAAO;QACH;YACI,IAAI,EAAE,mBAAmB;YACzB,WAAW,EAAE,yBAAyB;YACtC,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qBAAqB;qBACrC;oBACD,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,oCAAoC;qBACpD;iBACJ;gBACD,QAAQ,EAAE,CAAC,SAAS,CAAC;aACxB;SACJ;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qBAAqB;qBACrC;oBACD,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wDAAwD;qBACxE;oBACD,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8CAA8C;qBAC9D;oBACD,KAAK,EAAE;wBACH,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,8CAA8C;qBAC9D;iBACJ;gBACD,QAAQ,EAAE,CAAC,SAAS,CAAC;aACxB;SACJ;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-tools.d.ts","sourceRoot":"","sources":["../../src/tools/plan-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAA2B,MAAM,YAAY,CAAC;AAErE,wBAAgB,YAAY,IAAI,cAAc,EAAE,CAgC/C"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Plan tool definitions
|
|
3
|
+
*/
|
|
4
|
+
import { getPaginationProperties } from './types.js';
|
|
5
|
+
export function getPlanTools() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'liara_list_plans',
|
|
9
|
+
description: 'List available plans (apps, databases, or VMs)',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {
|
|
13
|
+
planType: {
|
|
14
|
+
type: 'string',
|
|
15
|
+
description: 'Filter by plan type',
|
|
16
|
+
enum: ['app', 'database', 'vm'],
|
|
17
|
+
},
|
|
18
|
+
...getPaginationProperties(),
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'liara_get_plan',
|
|
24
|
+
description: 'Get details of a specific plan',
|
|
25
|
+
inputSchema: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
planId: {
|
|
29
|
+
type: 'string',
|
|
30
|
+
description: 'The plan ID',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
required: ['planId'],
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=plan-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plan-tools.js","sourceRoot":"","sources":["../../src/tools/plan-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAkB,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAErE,MAAM,UAAU,YAAY;IACxB,OAAO;QACH;YACI,IAAI,EAAE,kBAAkB;YACxB,WAAW,EAAE,gDAAgD;YAC7D,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,QAAQ,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qBAAqB;wBAClC,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,CAAC;qBAClC;oBACD,GAAG,uBAAuB,EAAE;iBAC/B;aACJ;SACJ;QACD;YACI,IAAI,EAAE,gBAAgB;YACtB,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,MAAM,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,aAAa;qBAC7B;iBACJ;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACvB;SACJ;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-tools.d.ts","sourceRoot":"","sources":["../../src/tools/settings-tools.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAAgB,gBAAgB,IAAI,cAAc,EAAE,CA2EnD"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export function getSettingsTools() {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
name: 'liara_set_zero_downtime',
|
|
5
|
+
description: 'Enable or disable zero-downtime deployment for an app',
|
|
6
|
+
inputSchema: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
properties: {
|
|
9
|
+
appName: {
|
|
10
|
+
type: 'string',
|
|
11
|
+
description: 'The name of the app',
|
|
12
|
+
},
|
|
13
|
+
enabled: {
|
|
14
|
+
type: 'boolean',
|
|
15
|
+
description: 'Enable (true) or disable (false) zero-downtime deployment',
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
required: ['appName', 'enabled'],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'liara_set_default_subdomain',
|
|
23
|
+
description: 'Enable or disable default subdomain for an app',
|
|
24
|
+
inputSchema: {
|
|
25
|
+
type: 'object',
|
|
26
|
+
properties: {
|
|
27
|
+
appName: {
|
|
28
|
+
type: 'string',
|
|
29
|
+
description: 'The name of the app',
|
|
30
|
+
},
|
|
31
|
+
enabled: {
|
|
32
|
+
type: 'boolean',
|
|
33
|
+
description: 'Enable (true) or disable (false) default subdomain',
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
required: ['appName', 'enabled'],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'liara_set_fixed_ip',
|
|
41
|
+
description: 'Enable or disable static IP for an app (returns IP when enabling)',
|
|
42
|
+
inputSchema: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
properties: {
|
|
45
|
+
appName: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
description: 'The name of the app',
|
|
48
|
+
},
|
|
49
|
+
enabled: {
|
|
50
|
+
type: 'boolean',
|
|
51
|
+
description: 'Enable (true) or disable (false) static IP',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
required: ['appName', 'enabled'],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'liara_set_read_only',
|
|
59
|
+
description: 'Enable or disable read-only mode for an app',
|
|
60
|
+
inputSchema: {
|
|
61
|
+
type: 'object',
|
|
62
|
+
properties: {
|
|
63
|
+
appName: {
|
|
64
|
+
type: 'string',
|
|
65
|
+
description: 'The name of the app',
|
|
66
|
+
},
|
|
67
|
+
enabled: {
|
|
68
|
+
type: 'boolean',
|
|
69
|
+
description: 'Enable (true) or disable (false) read-only mode',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
required: ['appName', 'enabled'],
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=settings-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-tools.js","sourceRoot":"","sources":["../../src/tools/settings-tools.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,gBAAgB;IAC5B,OAAO;QACH;YACI,IAAI,EAAE,yBAAyB;YAC/B,WAAW,EAAE,uDAAuD;YACpE,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,OAAO,EAAE;wBACL,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,qBAAqB;qBACrC;oBACD,OAAO,EAAE;wBACL,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,2DAA2D;qBAC3E;iBACJ;gB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AACH,OAAO,EAAE,cAAc,EAA2B,MAAM,YAAY,CAAC;AAErE,wBAAgB,eAAe,IAAI,cAAc,EAAE,CAgKlD"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Storage (Bucket) tool definitions
|
|
3
|
+
*/
|
|
4
|
+
import { getPaginationProperties } from './types.js';
|
|
5
|
+
export function getStorageTools() {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
name: 'liara_list_buckets',
|
|
9
|
+
description: 'List all storage buckets',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: getPaginationProperties(),
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'liara_get_bucket',
|
|
17
|
+
description: 'Get details of a specific bucket',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
name: {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'The name of the bucket',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
required: ['name'],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'liara_create_bucket',
|
|
31
|
+
description: 'Create a new storage bucket',
|
|
32
|
+
inputSchema: {
|
|
33
|
+
type: 'object',
|
|
34
|
+
properties: {
|
|
35
|
+
name: {
|
|
36
|
+
type: 'string',
|
|
37
|
+
description: 'Bucket name',
|
|
38
|
+
},
|
|
39
|
+
region: {
|
|
40
|
+
type: 'string',
|
|
41
|
+
description: 'Region (optional)',
|
|
42
|
+
},
|
|
43
|
+
permission: {
|
|
44
|
+
type: 'string',
|
|
45
|
+
description: 'Permission level',
|
|
46
|
+
enum: ['private', 'public-read'],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
required: ['name'],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'liara_delete_bucket',
|
|
54
|
+
description: 'Delete a storage bucket',
|
|
55
|
+
inputSchema: {
|
|
56
|
+
type: 'object',
|
|
57
|
+
properties: {
|
|
58
|
+
name: {
|
|
59
|
+
type: 'string',
|
|
60
|
+
description: 'The name of the bucket to delete',
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
required: ['name'],
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'liara_get_bucket_credentials',
|
|
68
|
+
description: 'Get S3-compatible credentials for a bucket',
|
|
69
|
+
inputSchema: {
|
|
70
|
+
type: 'object',
|
|
71
|
+
properties: {
|
|
72
|
+
name: {
|
|
73
|
+
type: 'string',
|
|
74
|
+
description: 'The name of the bucket',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
required: ['name'],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: 'liara_list_objects',
|
|
82
|
+
description: 'List objects in a bucket',
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: 'object',
|
|
85
|
+
properties: {
|
|
86
|
+
bucketName: {
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: 'The name of the bucket',
|
|
89
|
+
},
|
|
90
|
+
prefix: {
|
|
91
|
+
type: 'string',
|
|
92
|
+
description: 'Prefix to filter objects (optional)',
|
|
93
|
+
},
|
|
94
|
+
maxKeys: {
|
|
95
|
+
type: 'number',
|
|
96
|
+
description: 'Maximum number of objects to return (optional)',
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
required: ['bucketName'],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: 'liara_upload_object',
|
|
104
|
+
description: 'Upload an object to a bucket',
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
bucketName: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
description: 'The name of the bucket',
|
|
111
|
+
},
|
|
112
|
+
objectKey: {
|
|
113
|
+
type: 'string',
|
|
114
|
+
description: 'The object key (path)',
|
|
115
|
+
},
|
|
116
|
+
filePath: {
|
|
117
|
+
type: 'string',
|
|
118
|
+
description: 'Path to the file to upload',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
required: ['bucketName', 'objectKey', 'filePath'],
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: 'liara_get_object_download_url',
|
|
126
|
+
description: 'Get download URL for an object',
|
|
127
|
+
inputSchema: {
|
|
128
|
+
type: 'object',
|
|
129
|
+
properties: {
|
|
130
|
+
bucketName: {
|
|
131
|
+
type: 'string',
|
|
132
|
+
description: 'The name of the bucket',
|
|
133
|
+
},
|
|
134
|
+
objectKey: {
|
|
135
|
+
type: 'string',
|
|
136
|
+
description: 'The object key',
|
|
137
|
+
},
|
|
138
|
+
expiresIn: {
|
|
139
|
+
type: 'number',
|
|
140
|
+
description: 'URL expiration time in seconds (optional)',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
required: ['bucketName', 'objectKey'],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
name: 'liara_delete_object',
|
|
148
|
+
description: 'Delete an object from a bucket',
|
|
149
|
+
inputSchema: {
|
|
150
|
+
type: 'object',
|
|
151
|
+
properties: {
|
|
152
|
+
bucketName: {
|
|
153
|
+
type: 'string',
|
|
154
|
+
description: 'The name of the bucket',
|
|
155
|
+
},
|
|
156
|
+
objectKey: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
description: 'The object key to delete',
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
required: ['bucketName', 'objectKey'],
|
|
162
|
+
},
|
|
163
|
+
},
|
|
164
|
+
];
|
|
165
|
+
}
|
|
166
|
+
//# sourceMappingURL=storage-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-tools.js","sourceRoot":"","sources":["../../src/tools/storage-tools.ts"],"names":[],"mappings":"AAAA;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ACd,WAAW,EAAE,wBAAwB;qBACxC;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,gBAAgB;qBAChC;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,2CAA2C;qBAC3D;iBACJ;gBACD,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;aACxC;SACJ;QACD;YACI,IAAI,EAAE,qBAAqB;YAC3B,WAAW,EAAE,gCAAgC;YAC7C,WAAW,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACR,UAAU,EAAE;wBACR,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,wBAAwB;qBACxC;oBACD,SAAS,EAAE;wBACP,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,0BAA0B;qBAC1C;iBACJ;gBACD,QAAQ,EAAE,CAAC,YAAY,EAAE,WAAW,CAAC;aACxC;SACJ;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared types for MCP tool definitions
|
|
3
|
+
*/
|
|
4
|
+
export interface ToolDefinition {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: {
|
|
8
|
+
type: 'object';
|
|
9
|
+
properties: Record<string, any>;
|
|
10
|
+
required?: string[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get pagination properties for tool schemas
|
|
15
|
+
*/
|
|
16
|
+
export declare function getPaginationProperties(): {
|
|
17
|
+
page: {
|
|
18
|
+
type: "number";
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
perPage: {
|
|
22
|
+
type: "number";
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
limit: {
|
|
26
|
+
type: "number";
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
offset: {
|
|
30
|
+
type: "number";
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=types.d.ts.map
|