@appaflytech/wappa-mcp 0.0.10 → 0.0.12
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 +40 -0
- package/dist/auth.d.ts +25 -0
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +35 -0
- package/dist/auth.js.map +1 -1
- package/dist/client.d.ts +39 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +159 -6
- package/dist/client.js.map +1 -1
- package/dist/factory.d.ts +32 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +286 -0
- package/dist/factory.js.map +1 -0
- package/dist/http/auth.d.ts +33 -0
- package/dist/http/auth.d.ts.map +1 -0
- package/dist/http/auth.js +55 -0
- package/dist/http/auth.js.map +1 -0
- package/dist/http/session.d.ts +30 -0
- package/dist/http/session.d.ts.map +1 -0
- package/dist/http/session.js +56 -0
- package/dist/http/session.js.map +1 -0
- package/dist/http/transport.d.ts +21 -0
- package/dist/http/transport.d.ts.map +1 -0
- package/dist/http/transport.js +101 -0
- package/dist/http/transport.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -262
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +25 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +94 -0
- package/dist/server.js.map +1 -0
- package/dist/tools/ai-chat-sessions.d.ts +143 -0
- package/dist/tools/ai-chat-sessions.d.ts.map +1 -0
- package/dist/tools/ai-chat-sessions.js +144 -0
- package/dist/tools/ai-chat-sessions.js.map +1 -0
- package/dist/tools/app-users.d.ts +440 -0
- package/dist/tools/app-users.d.ts.map +1 -0
- package/dist/tools/app-users.js +347 -0
- package/dist/tools/app-users.js.map +1 -0
- package/dist/tools/component-categories.d.ts +157 -0
- package/dist/tools/component-categories.d.ts.map +1 -0
- package/dist/tools/component-categories.js +162 -0
- package/dist/tools/component-categories.js.map +1 -0
- package/dist/tools/countries.d.ts +148 -0
- package/dist/tools/countries.d.ts.map +1 -0
- package/dist/tools/countries.js +142 -0
- package/dist/tools/countries.js.map +1 -0
- package/dist/tools/db-routines.d.ts +229 -0
- package/dist/tools/db-routines.d.ts.map +1 -0
- package/dist/tools/db-routines.js +233 -0
- package/dist/tools/db-routines.js.map +1 -0
- package/dist/tools/dynamic-entities.d.ts +166 -0
- package/dist/tools/dynamic-entities.d.ts.map +1 -1
- package/dist/tools/dynamic-entities.js +156 -0
- package/dist/tools/dynamic-entities.js.map +1 -1
- package/dist/tools/entities.d.ts +119 -0
- package/dist/tools/entities.d.ts.map +1 -1
- package/dist/tools/entities.js +413 -4
- package/dist/tools/entities.js.map +1 -1
- package/dist/tools/error-logs.d.ts +67 -0
- package/dist/tools/error-logs.d.ts.map +1 -0
- package/dist/tools/error-logs.js +74 -0
- package/dist/tools/error-logs.js.map +1 -0
- package/dist/tools/general.d.ts.map +1 -1
- package/dist/tools/general.js +218 -0
- package/dist/tools/general.js.map +1 -1
- package/dist/tools/layouts.d.ts +21 -0
- package/dist/tools/layouts.d.ts.map +1 -1
- package/dist/tools/layouts.js +20 -2
- package/dist/tools/layouts.js.map +1 -1
- package/dist/tools/operations.d.ts +184 -0
- package/dist/tools/operations.d.ts.map +1 -0
- package/dist/tools/operations.js +217 -0
- package/dist/tools/operations.js.map +1 -0
- package/dist/tools/organizations.d.ts +178 -0
- package/dist/tools/organizations.d.ts.map +1 -0
- package/dist/tools/organizations.js +158 -0
- package/dist/tools/organizations.js.map +1 -0
- package/dist/tools/page-entities.d.ts +522 -0
- package/dist/tools/page-entities.d.ts.map +1 -0
- package/dist/tools/page-entities.js +535 -0
- package/dist/tools/page-entities.js.map +1 -0
- package/dist/tools/pages.d.ts +226 -0
- package/dist/tools/pages.d.ts.map +1 -1
- package/dist/tools/pages.js +473 -17
- package/dist/tools/pages.js.map +1 -1
- package/dist/tools/plans.d.ts +293 -0
- package/dist/tools/plans.d.ts.map +1 -0
- package/dist/tools/plans.js +213 -0
- package/dist/tools/plans.js.map +1 -0
- package/dist/tools/plugins.d.ts +230 -0
- package/dist/tools/plugins.d.ts.map +1 -0
- package/dist/tools/plugins.js +218 -0
- package/dist/tools/plugins.js.map +1 -0
- package/dist/tools/push-notifications.d.ts +261 -0
- package/dist/tools/push-notifications.d.ts.map +1 -0
- package/dist/tools/push-notifications.js +246 -0
- package/dist/tools/push-notifications.js.map +1 -0
- package/dist/tools/queries.d.ts +274 -0
- package/dist/tools/queries.d.ts.map +1 -1
- package/dist/tools/queries.js +319 -17
- package/dist/tools/queries.js.map +1 -1
- package/dist/tools/query-categories.d.ts +192 -0
- package/dist/tools/query-categories.d.ts.map +1 -0
- package/dist/tools/query-categories.js +204 -0
- package/dist/tools/query-categories.js.map +1 -0
- package/dist/tools/regions.d.ts +148 -0
- package/dist/tools/regions.d.ts.map +1 -0
- package/dist/tools/regions.js +148 -0
- package/dist/tools/regions.js.map +1 -0
- package/dist/tools/roles.d.ts +284 -0
- package/dist/tools/roles.d.ts.map +1 -0
- package/dist/tools/roles.js +291 -0
- package/dist/tools/roles.js.map +1 -0
- package/dist/tools/settings.d.ts +160 -0
- package/dist/tools/settings.d.ts.map +1 -0
- package/dist/tools/settings.js +187 -0
- package/dist/tools/settings.js.map +1 -0
- package/dist/tools/showcases.d.ts +184 -0
- package/dist/tools/showcases.d.ts.map +1 -0
- package/dist/tools/showcases.js +179 -0
- package/dist/tools/showcases.js.map +1 -0
- package/dist/tools/storage.d.ts +297 -0
- package/dist/tools/storage.d.ts.map +1 -0
- package/dist/tools/storage.js +302 -0
- package/dist/tools/storage.js.map +1 -0
- package/dist/tools/subscriptions.d.ts +166 -0
- package/dist/tools/subscriptions.d.ts.map +1 -0
- package/dist/tools/subscriptions.js +144 -0
- package/dist/tools/subscriptions.js.map +1 -0
- package/dist/tools/system-tools.d.ts +124 -0
- package/dist/tools/system-tools.d.ts.map +1 -0
- package/dist/tools/system-tools.js +147 -0
- package/dist/tools/system-tools.js.map +1 -0
- package/dist/tools/system-variables.d.ts +167 -0
- package/dist/tools/system-variables.d.ts.map +1 -0
- package/dist/tools/system-variables.js +176 -0
- package/dist/tools/system-variables.js.map +1 -0
- package/dist/tools/users.d.ts +266 -0
- package/dist/tools/users.d.ts.map +1 -0
- package/dist/tools/users.js +235 -0
- package/dist/tools/users.js.map +1 -0
- package/dist/tools/workflows.d.ts +278 -0
- package/dist/tools/workflows.d.ts.map +1 -0
- package/dist/tools/workflows.js +267 -0
- package/dist/tools/workflows.js.map +1 -0
- package/package.json +12 -3
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tools for WAP App-Users (site end-users) + per-site Mail (SMTP) configuration.
|
|
3
|
+
*
|
|
4
|
+
* Two site-scoped route groups:
|
|
5
|
+
* 1) /{site}/app-users — son kullanıcı (app user) CRUD, istatistik, giriş geçmişi,
|
|
6
|
+
* durum (aktif/pasif), şifre sıfırlama.
|
|
7
|
+
* 2) /{site}/mail-config — siteye özel SMTP yapılandırması (get/set/test/delete).
|
|
8
|
+
*/
|
|
9
|
+
export function getAppUserTools(client) {
|
|
10
|
+
return {
|
|
11
|
+
// ─── List App Users ───────────────────────────────────
|
|
12
|
+
list_app_users: {
|
|
13
|
+
description: "Sitedeki son kullanıcıları (app user) sayfalı listeler. Arama destekler (e-posta/ad).",
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: "object",
|
|
16
|
+
properties: {
|
|
17
|
+
page: {
|
|
18
|
+
type: "number",
|
|
19
|
+
description: "Sayfa numarası (1-based, varsayılan: 1)",
|
|
20
|
+
},
|
|
21
|
+
pageSize: {
|
|
22
|
+
type: "number",
|
|
23
|
+
description: "Sayfa boyutu (varsayılan: 20)",
|
|
24
|
+
},
|
|
25
|
+
search: {
|
|
26
|
+
type: "string",
|
|
27
|
+
description: "Arama terimi (e-posta veya ad ile filtreler)",
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
handler: async (args) => {
|
|
32
|
+
const params = {};
|
|
33
|
+
if (args.page !== undefined)
|
|
34
|
+
params.page = String(args.page);
|
|
35
|
+
if (args.pageSize !== undefined)
|
|
36
|
+
params.pageSize = String(args.pageSize);
|
|
37
|
+
if (args.search !== undefined)
|
|
38
|
+
params.search = args.search;
|
|
39
|
+
const result = await client.request("GET", "/{site}/app-users", undefined, params);
|
|
40
|
+
return {
|
|
41
|
+
content: [
|
|
42
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
// ─── App User Stats ───────────────────────────────────
|
|
48
|
+
get_app_user_stats: {
|
|
49
|
+
description: "Sitedeki son kullanıcı istatistiklerini getirir (toplam / aktif / pasif).",
|
|
50
|
+
inputSchema: {
|
|
51
|
+
type: "object",
|
|
52
|
+
properties: {},
|
|
53
|
+
},
|
|
54
|
+
handler: async () => {
|
|
55
|
+
const result = await client.request("GET", "/{site}/app-users/stats");
|
|
56
|
+
return {
|
|
57
|
+
content: [
|
|
58
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
59
|
+
],
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
// ─── Get App User ─────────────────────────────────────
|
|
64
|
+
get_app_user: {
|
|
65
|
+
description: "Tek bir son kullanıcının detaylarını ID ile getirir.",
|
|
66
|
+
inputSchema: {
|
|
67
|
+
type: "object",
|
|
68
|
+
properties: {
|
|
69
|
+
id: { type: "string", description: "Kullanıcı ID (GUID)" },
|
|
70
|
+
},
|
|
71
|
+
required: ["id"],
|
|
72
|
+
},
|
|
73
|
+
handler: async (args) => {
|
|
74
|
+
const result = await client.request("GET", `/{site}/app-users/${args.id}`);
|
|
75
|
+
return {
|
|
76
|
+
content: [
|
|
77
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
// ─── App User Login History ───────────────────────────
|
|
83
|
+
get_app_user_login_history: {
|
|
84
|
+
description: "Bir son kullanıcının giriş geçmişini getirir (en son girişler).",
|
|
85
|
+
inputSchema: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: {
|
|
88
|
+
id: { type: "string", description: "Kullanıcı ID (GUID)" },
|
|
89
|
+
take: {
|
|
90
|
+
type: "number",
|
|
91
|
+
description: "Kaç kayıt getirileceği (varsayılan: 50)",
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
required: ["id"],
|
|
95
|
+
},
|
|
96
|
+
handler: async (args) => {
|
|
97
|
+
const params = {};
|
|
98
|
+
if (args.take !== undefined)
|
|
99
|
+
params.take = String(args.take);
|
|
100
|
+
const result = await client.request("GET", `/{site}/app-users/${args.id}/login-history`, undefined, params);
|
|
101
|
+
return {
|
|
102
|
+
content: [
|
|
103
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
104
|
+
],
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
// ─── Create App User ──────────────────────────────────
|
|
109
|
+
create_app_user: {
|
|
110
|
+
description: `Yeni bir son kullanıcı (app user) oluşturur.
|
|
111
|
+
'email' ve 'password' zorunludur. 'gender': 0/1/2 gibi sayısal değer.
|
|
112
|
+
'birthDate': ISO tarih (örn. "1990-01-01") ya da null.`,
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: "object",
|
|
115
|
+
properties: {
|
|
116
|
+
email: { type: "string", description: "Kullanıcı e-posta adresi" },
|
|
117
|
+
password: { type: "string", description: "Kullanıcı şifresi" },
|
|
118
|
+
firstname: { type: "string", description: "Ad" },
|
|
119
|
+
lastname: { type: "string", description: "Soyad" },
|
|
120
|
+
middlename: { type: "string", description: "İkinci ad" },
|
|
121
|
+
phoneNumber: { type: "string", description: "Telefon numarası" },
|
|
122
|
+
gender: {
|
|
123
|
+
type: "number",
|
|
124
|
+
description: "Cinsiyet (sayısal kod, örn. 0/1/2)",
|
|
125
|
+
},
|
|
126
|
+
birthDate: {
|
|
127
|
+
type: "string",
|
|
128
|
+
description: 'Doğum tarihi (ISO, örn. "1990-01-01")',
|
|
129
|
+
},
|
|
130
|
+
country: { type: "string", description: "Ülke adı" },
|
|
131
|
+
countryId: { type: "string", description: "Ülke ID (GUID)" },
|
|
132
|
+
city: { type: "string", description: "Şehir adı" },
|
|
133
|
+
cityId: { type: "string", description: "Şehir ID (GUID)" },
|
|
134
|
+
},
|
|
135
|
+
required: ["email", "password"],
|
|
136
|
+
},
|
|
137
|
+
handler: async (args) => {
|
|
138
|
+
const result = await client.request("POST", "/{site}/app-users", args);
|
|
139
|
+
return {
|
|
140
|
+
content: [
|
|
141
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
142
|
+
],
|
|
143
|
+
};
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
// ─── Update App User ──────────────────────────────────
|
|
147
|
+
update_app_user: {
|
|
148
|
+
description: "Mevcut bir son kullanıcının profil bilgilerini günceller (e-posta/şifre hariç).",
|
|
149
|
+
inputSchema: {
|
|
150
|
+
type: "object",
|
|
151
|
+
properties: {
|
|
152
|
+
id: { type: "string", description: "Güncellenecek kullanıcı ID" },
|
|
153
|
+
firstname: { type: "string", description: "Ad" },
|
|
154
|
+
lastname: { type: "string", description: "Soyad" },
|
|
155
|
+
middlename: { type: "string", description: "İkinci ad" },
|
|
156
|
+
phoneNumber: { type: "string", description: "Telefon numarası" },
|
|
157
|
+
gender: {
|
|
158
|
+
type: "number",
|
|
159
|
+
description: "Cinsiyet (sayısal kod, örn. 0/1/2)",
|
|
160
|
+
},
|
|
161
|
+
birthDate: {
|
|
162
|
+
type: "string",
|
|
163
|
+
description: 'Doğum tarihi (ISO, örn. "1990-01-01")',
|
|
164
|
+
},
|
|
165
|
+
country: { type: "string", description: "Ülke adı" },
|
|
166
|
+
countryId: { type: "string", description: "Ülke ID (GUID)" },
|
|
167
|
+
city: { type: "string", description: "Şehir adı" },
|
|
168
|
+
cityId: { type: "string", description: "Şehir ID (GUID)" },
|
|
169
|
+
address: { type: "string", description: "Adres" },
|
|
170
|
+
zipCode: { type: "string", description: "Posta kodu" },
|
|
171
|
+
identityNumber: {
|
|
172
|
+
type: "string",
|
|
173
|
+
description: "Kimlik numarası (TC vb.)",
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
required: ["id"],
|
|
177
|
+
},
|
|
178
|
+
handler: async (args) => {
|
|
179
|
+
const { id, ...data } = args;
|
|
180
|
+
const result = await client.request("PUT", `/{site}/app-users/${id}`, data);
|
|
181
|
+
return {
|
|
182
|
+
content: [
|
|
183
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
184
|
+
],
|
|
185
|
+
};
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
// ─── Set App User Status ──────────────────────────────
|
|
189
|
+
set_app_user_status: {
|
|
190
|
+
description: "Bir son kullanıcıyı aktif/pasif yapar (ban). 'isActive' false ise kullanıcı engellenir.",
|
|
191
|
+
inputSchema: {
|
|
192
|
+
type: "object",
|
|
193
|
+
properties: {
|
|
194
|
+
id: { type: "string", description: "Kullanıcı ID (GUID)" },
|
|
195
|
+
isActive: {
|
|
196
|
+
type: "boolean",
|
|
197
|
+
description: "true = aktif, false = pasif/engelli",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
required: ["id", "isActive"],
|
|
201
|
+
},
|
|
202
|
+
handler: async (args) => {
|
|
203
|
+
const result = await client.request("POST", `/{site}/app-users/${args.id}/status`, { isActive: args.isActive });
|
|
204
|
+
return {
|
|
205
|
+
content: [
|
|
206
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
207
|
+
],
|
|
208
|
+
};
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
// ─── Reset App User Password ──────────────────────────
|
|
212
|
+
reset_app_user_password: {
|
|
213
|
+
description: "Bir son kullanıcının şifresini yeni bir değerle sıfırlar.",
|
|
214
|
+
inputSchema: {
|
|
215
|
+
type: "object",
|
|
216
|
+
properties: {
|
|
217
|
+
id: { type: "string", description: "Kullanıcı ID (GUID)" },
|
|
218
|
+
newPassword: { type: "string", description: "Yeni şifre" },
|
|
219
|
+
},
|
|
220
|
+
required: ["id", "newPassword"],
|
|
221
|
+
},
|
|
222
|
+
handler: async (args) => {
|
|
223
|
+
const result = await client.request("POST", `/{site}/app-users/${args.id}/reset-password`, { newPassword: args.newPassword });
|
|
224
|
+
return {
|
|
225
|
+
content: [
|
|
226
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
227
|
+
],
|
|
228
|
+
};
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
// ─── Delete App User ──────────────────────────────────
|
|
232
|
+
delete_app_user: {
|
|
233
|
+
description: "Bir son kullanıcıyı siler. DİKKAT: Bu işlem geri alınamaz.",
|
|
234
|
+
inputSchema: {
|
|
235
|
+
type: "object",
|
|
236
|
+
properties: {
|
|
237
|
+
id: { type: "string", description: "Silinecek kullanıcı ID" },
|
|
238
|
+
},
|
|
239
|
+
required: ["id"],
|
|
240
|
+
},
|
|
241
|
+
handler: async (args) => {
|
|
242
|
+
const result = await client.request("DELETE", `/{site}/app-users/${args.id}`);
|
|
243
|
+
return {
|
|
244
|
+
content: [
|
|
245
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
246
|
+
],
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
// ─── Get Mail Config ──────────────────────────────────
|
|
251
|
+
get_mail_config: {
|
|
252
|
+
description: "Siteye özel SMTP/mail yapılandırma durumunu getirir (şifre dönmez, sadece güvenli alanlar).",
|
|
253
|
+
inputSchema: {
|
|
254
|
+
type: "object",
|
|
255
|
+
properties: {},
|
|
256
|
+
},
|
|
257
|
+
handler: async () => {
|
|
258
|
+
const result = await client.request("GET", "/{site}/mail-config");
|
|
259
|
+
return {
|
|
260
|
+
content: [
|
|
261
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
262
|
+
],
|
|
263
|
+
};
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
// ─── Set Mail Config ──────────────────────────────────
|
|
267
|
+
set_mail_config: {
|
|
268
|
+
description: `Sitenin SMTP yapılandırmasını ekler/günceller (upsert).
|
|
269
|
+
'security': 0=None, 1=StartTls, 2=SslOnConnect. 'password' boş bırakılırsa mevcut şifre korunur.`,
|
|
270
|
+
inputSchema: {
|
|
271
|
+
type: "object",
|
|
272
|
+
properties: {
|
|
273
|
+
host: { type: "string", description: "SMTP sunucu adresi (host)" },
|
|
274
|
+
port: { type: "number", description: "SMTP port (örn. 587, 465)" },
|
|
275
|
+
username: { type: "string", description: "SMTP kullanıcı adı" },
|
|
276
|
+
password: {
|
|
277
|
+
type: "string",
|
|
278
|
+
description: "SMTP şifresi (boş bırakılırsa mevcut korunur)",
|
|
279
|
+
},
|
|
280
|
+
fromAddress: {
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "Gönderen e-posta adresi (from)",
|
|
283
|
+
},
|
|
284
|
+
fromName: { type: "string", description: "Gönderen görünen ad" },
|
|
285
|
+
security: {
|
|
286
|
+
type: "number",
|
|
287
|
+
description: "Güvenlik: 0=None, 1=StartTls, 2=SslOnConnect",
|
|
288
|
+
},
|
|
289
|
+
enabled: {
|
|
290
|
+
type: "boolean",
|
|
291
|
+
description: "Mail gönderimi aktif mi (varsayılan: true)",
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
required: ["host", "port", "fromAddress", "security"],
|
|
295
|
+
},
|
|
296
|
+
handler: async (args) => {
|
|
297
|
+
const result = await client.request("PUT", "/{site}/mail-config", args);
|
|
298
|
+
return {
|
|
299
|
+
content: [
|
|
300
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
301
|
+
],
|
|
302
|
+
};
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
// ─── Test Mail Config ─────────────────────────────────
|
|
306
|
+
test_mail_config: {
|
|
307
|
+
description: "Kayıtlı SMTP yapılandırması ile belirtilen adrese bir test e-postası gönderir.",
|
|
308
|
+
inputSchema: {
|
|
309
|
+
type: "object",
|
|
310
|
+
properties: {
|
|
311
|
+
toEmail: {
|
|
312
|
+
type: "string",
|
|
313
|
+
description: "Test e-postasının gönderileceği adres",
|
|
314
|
+
},
|
|
315
|
+
},
|
|
316
|
+
required: ["toEmail"],
|
|
317
|
+
},
|
|
318
|
+
handler: async (args) => {
|
|
319
|
+
const result = await client.request("POST", "/{site}/mail-config/test", {
|
|
320
|
+
toEmail: args.toEmail,
|
|
321
|
+
});
|
|
322
|
+
return {
|
|
323
|
+
content: [
|
|
324
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
325
|
+
],
|
|
326
|
+
};
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
// ─── Delete Mail Config ───────────────────────────────
|
|
330
|
+
delete_mail_config: {
|
|
331
|
+
description: "Sitenin SMTP/mail yapılandırmasını siler.",
|
|
332
|
+
inputSchema: {
|
|
333
|
+
type: "object",
|
|
334
|
+
properties: {},
|
|
335
|
+
},
|
|
336
|
+
handler: async () => {
|
|
337
|
+
const result = await client.request("DELETE", "/{site}/mail-config");
|
|
338
|
+
return {
|
|
339
|
+
content: [
|
|
340
|
+
{ type: "text", text: JSON.stringify(result, null, 2) },
|
|
341
|
+
],
|
|
342
|
+
};
|
|
343
|
+
},
|
|
344
|
+
},
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
//# sourceMappingURL=app-users.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-users.js","sourceRoot":"","sources":["../../src/tools/app-users.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,UAAU,eAAe,CAAC,MAAiB;IAC/C,OAAO;QACL,yDAAyD;QACzD,cAAc,EAAE;YACd,WAAW,EACT,uFAAuF;YACzF,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,IAAI,EAAE;wBACJ,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AO,CAAC,MAAM,EAAE,0BAA0B,EAAE;oBACtE,OAAO,EAAE,IAAI,CAAC,OAAO;iBACtB,CAAC,CAAC;gBACH,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;qBACjE;iBACF,CAAC;YACJ,CAAC;SACF;QAED,yDAAyD;QACzD,kBAAkB,EAAE;YAClB,WAAW,EAAE,2CAA2C;YACxD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE,EAAE;aACf;YACD,OAAO,EAAE,KAAK,IAAI,EAAE;gBAClB,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;gBACrE,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;qBACjE;iBACF,CAAC;YACJ,CAAC;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tools for WAP Component Categories CRUD operations
|
|
3
|
+
* ComponentCategories = bileşenleri gruplamak için kullanılan kategoriler (site-scoped)
|
|
4
|
+
*/
|
|
5
|
+
import { WapClient } from "../client.js";
|
|
6
|
+
export declare function getComponentCategoryTools(client: WapClient): {
|
|
7
|
+
list_component_categories: {
|
|
8
|
+
description: string;
|
|
9
|
+
inputSchema: {
|
|
10
|
+
type: "object";
|
|
11
|
+
properties: {
|
|
12
|
+
title: {
|
|
13
|
+
type: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
isMobile: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
order: {
|
|
21
|
+
type: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
isDescending: {
|
|
25
|
+
type: string;
|
|
26
|
+
description: string;
|
|
27
|
+
};
|
|
28
|
+
pageIndex: {
|
|
29
|
+
type: string;
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
pageLength: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
handler: (args: {
|
|
39
|
+
title?: string;
|
|
40
|
+
isMobile?: boolean;
|
|
41
|
+
order?: string;
|
|
42
|
+
isDescending?: boolean;
|
|
43
|
+
pageIndex?: number;
|
|
44
|
+
pageLength?: number;
|
|
45
|
+
}) => Promise<{
|
|
46
|
+
content: {
|
|
47
|
+
type: "text";
|
|
48
|
+
text: string;
|
|
49
|
+
}[];
|
|
50
|
+
}>;
|
|
51
|
+
};
|
|
52
|
+
get_component_category: {
|
|
53
|
+
description: string;
|
|
54
|
+
inputSchema: {
|
|
55
|
+
type: "object";
|
|
56
|
+
properties: {
|
|
57
|
+
key: {
|
|
58
|
+
type: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
required: string[];
|
|
63
|
+
};
|
|
64
|
+
handler: (args: {
|
|
65
|
+
key: string;
|
|
66
|
+
}) => Promise<{
|
|
67
|
+
content: {
|
|
68
|
+
type: "text";
|
|
69
|
+
text: string;
|
|
70
|
+
}[];
|
|
71
|
+
}>;
|
|
72
|
+
};
|
|
73
|
+
create_component_category: {
|
|
74
|
+
description: string;
|
|
75
|
+
inputSchema: {
|
|
76
|
+
type: "object";
|
|
77
|
+
properties: {
|
|
78
|
+
key: {
|
|
79
|
+
type: string;
|
|
80
|
+
description: string;
|
|
81
|
+
};
|
|
82
|
+
title: {
|
|
83
|
+
type: string;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
isMobile: {
|
|
87
|
+
type: string;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
required: string[];
|
|
92
|
+
};
|
|
93
|
+
handler: (args: {
|
|
94
|
+
key: string;
|
|
95
|
+
title: string;
|
|
96
|
+
isMobile?: boolean;
|
|
97
|
+
}) => Promise<{
|
|
98
|
+
content: {
|
|
99
|
+
type: "text";
|
|
100
|
+
text: string;
|
|
101
|
+
}[];
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
update_component_category: {
|
|
105
|
+
description: string;
|
|
106
|
+
inputSchema: {
|
|
107
|
+
type: "object";
|
|
108
|
+
properties: {
|
|
109
|
+
key: {
|
|
110
|
+
type: string;
|
|
111
|
+
description: string;
|
|
112
|
+
};
|
|
113
|
+
title: {
|
|
114
|
+
type: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
isMobile: {
|
|
118
|
+
type: string;
|
|
119
|
+
description: string;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
required: string[];
|
|
123
|
+
};
|
|
124
|
+
handler: (args: {
|
|
125
|
+
key: string;
|
|
126
|
+
title: string;
|
|
127
|
+
isMobile?: boolean;
|
|
128
|
+
}) => Promise<{
|
|
129
|
+
content: {
|
|
130
|
+
type: "text";
|
|
131
|
+
text: string;
|
|
132
|
+
}[];
|
|
133
|
+
}>;
|
|
134
|
+
};
|
|
135
|
+
delete_component_category: {
|
|
136
|
+
description: string;
|
|
137
|
+
inputSchema: {
|
|
138
|
+
type: "object";
|
|
139
|
+
properties: {
|
|
140
|
+
key: {
|
|
141
|
+
type: string;
|
|
142
|
+
description: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
required: string[];
|
|
146
|
+
};
|
|
147
|
+
handler: (args: {
|
|
148
|
+
key: string;
|
|
149
|
+
}) => Promise<{
|
|
150
|
+
content: {
|
|
151
|
+
type: "text";
|
|
152
|
+
text: string;
|
|
153
|
+
}[];
|
|
154
|
+
}>;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
//# sourceMappingURL=component-categories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-categories.d.ts","sourceRoot":"","sources":["../../src/tools/component-categories.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAmC/B;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;;;;;;;;;;;;;;;;;;;wBAoCqB;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgCf;YACpB,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqCqB;YACpB,GAAG,EAAE,MAAM,CAAC;YACZ,KAAK,EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,OAAO,CAAC;SACpB;;;;;;;;;;;;;;;;;;;wBA4BqB;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE;;;;;;;EAa1C"}
|