@appaflytech/wappa-mcp 0.0.11 → 0.0.13

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.
Files changed (113) hide show
  1. package/dist/base-components.d.ts +3 -0
  2. package/dist/base-components.d.ts.map +1 -1
  3. package/dist/base-components.js +130 -1
  4. package/dist/base-components.js.map +1 -1
  5. package/dist/client.d.ts +9 -3
  6. package/dist/client.d.ts.map +1 -1
  7. package/dist/client.js +63 -7
  8. package/dist/client.js.map +1 -1
  9. package/dist/factory.d.ts.map +1 -1
  10. package/dist/factory.js +38 -0
  11. package/dist/factory.js.map +1 -1
  12. package/dist/tools/ai-chat-sessions.d.ts +143 -0
  13. package/dist/tools/ai-chat-sessions.d.ts.map +1 -0
  14. package/dist/tools/ai-chat-sessions.js +144 -0
  15. package/dist/tools/ai-chat-sessions.js.map +1 -0
  16. package/dist/tools/app-users.d.ts +440 -0
  17. package/dist/tools/app-users.d.ts.map +1 -0
  18. package/dist/tools/app-users.js +347 -0
  19. package/dist/tools/app-users.js.map +1 -0
  20. package/dist/tools/component-categories.d.ts +157 -0
  21. package/dist/tools/component-categories.d.ts.map +1 -0
  22. package/dist/tools/component-categories.js +162 -0
  23. package/dist/tools/component-categories.js.map +1 -0
  24. package/dist/tools/components.js +2 -2
  25. package/dist/tools/components.js.map +1 -1
  26. package/dist/tools/countries.d.ts +148 -0
  27. package/dist/tools/countries.d.ts.map +1 -0
  28. package/dist/tools/countries.js +142 -0
  29. package/dist/tools/countries.js.map +1 -0
  30. package/dist/tools/db-routines.d.ts +229 -0
  31. package/dist/tools/db-routines.d.ts.map +1 -0
  32. package/dist/tools/db-routines.js +233 -0
  33. package/dist/tools/db-routines.js.map +1 -0
  34. package/dist/tools/dynamic-entities.d.ts +228 -0
  35. package/dist/tools/dynamic-entities.d.ts.map +1 -1
  36. package/dist/tools/dynamic-entities.js +292 -14
  37. package/dist/tools/dynamic-entities.js.map +1 -1
  38. package/dist/tools/entities.d.ts +119 -0
  39. package/dist/tools/entities.d.ts.map +1 -1
  40. package/dist/tools/entities.js +266 -38
  41. package/dist/tools/entities.js.map +1 -1
  42. package/dist/tools/error-logs.d.ts +67 -0
  43. package/dist/tools/error-logs.d.ts.map +1 -0
  44. package/dist/tools/error-logs.js +74 -0
  45. package/dist/tools/error-logs.js.map +1 -0
  46. package/dist/tools/general.d.ts.map +1 -1
  47. package/dist/tools/general.js +218 -0
  48. package/dist/tools/general.js.map +1 -1
  49. package/dist/tools/layouts.d.ts +21 -0
  50. package/dist/tools/layouts.d.ts.map +1 -1
  51. package/dist/tools/layouts.js +19 -0
  52. package/dist/tools/layouts.js.map +1 -1
  53. package/dist/tools/operations.d.ts +184 -0
  54. package/dist/tools/operations.d.ts.map +1 -0
  55. package/dist/tools/operations.js +217 -0
  56. package/dist/tools/operations.js.map +1 -0
  57. package/dist/tools/page-entities.d.ts +522 -0
  58. package/dist/tools/page-entities.d.ts.map +1 -0
  59. package/dist/tools/page-entities.js +535 -0
  60. package/dist/tools/page-entities.js.map +1 -0
  61. package/dist/tools/pages.d.ts +226 -0
  62. package/dist/tools/pages.d.ts.map +1 -1
  63. package/dist/tools/pages.js +194 -0
  64. package/dist/tools/pages.js.map +1 -1
  65. package/dist/tools/plugins.d.ts +230 -0
  66. package/dist/tools/plugins.d.ts.map +1 -0
  67. package/dist/tools/plugins.js +218 -0
  68. package/dist/tools/plugins.js.map +1 -0
  69. package/dist/tools/queries.d.ts +266 -0
  70. package/dist/tools/queries.d.ts.map +1 -1
  71. package/dist/tools/queries.js +288 -0
  72. package/dist/tools/queries.js.map +1 -1
  73. package/dist/tools/query-categories.d.ts +192 -0
  74. package/dist/tools/query-categories.d.ts.map +1 -0
  75. package/dist/tools/query-categories.js +204 -0
  76. package/dist/tools/query-categories.js.map +1 -0
  77. package/dist/tools/regions.d.ts +148 -0
  78. package/dist/tools/regions.d.ts.map +1 -0
  79. package/dist/tools/regions.js +148 -0
  80. package/dist/tools/regions.js.map +1 -0
  81. package/dist/tools/roles.d.ts +284 -0
  82. package/dist/tools/roles.d.ts.map +1 -0
  83. package/dist/tools/roles.js +291 -0
  84. package/dist/tools/roles.js.map +1 -0
  85. package/dist/tools/settings.d.ts +160 -0
  86. package/dist/tools/settings.d.ts.map +1 -0
  87. package/dist/tools/settings.js +187 -0
  88. package/dist/tools/settings.js.map +1 -0
  89. package/dist/tools/showcases.d.ts +184 -0
  90. package/dist/tools/showcases.d.ts.map +1 -0
  91. package/dist/tools/showcases.js +179 -0
  92. package/dist/tools/showcases.js.map +1 -0
  93. package/dist/tools/storage.d.ts +297 -0
  94. package/dist/tools/storage.d.ts.map +1 -0
  95. package/dist/tools/storage.js +302 -0
  96. package/dist/tools/storage.js.map +1 -0
  97. package/dist/tools/system-tools.d.ts +124 -0
  98. package/dist/tools/system-tools.d.ts.map +1 -0
  99. package/dist/tools/system-tools.js +147 -0
  100. package/dist/tools/system-tools.js.map +1 -0
  101. package/dist/tools/system-variables.d.ts +167 -0
  102. package/dist/tools/system-variables.d.ts.map +1 -0
  103. package/dist/tools/system-variables.js +176 -0
  104. package/dist/tools/system-variables.js.map +1 -0
  105. package/dist/tools/users.d.ts +266 -0
  106. package/dist/tools/users.d.ts.map +1 -0
  107. package/dist/tools/users.js +235 -0
  108. package/dist/tools/users.js.map +1 -0
  109. package/dist/tools/workflows.d.ts +278 -0
  110. package/dist/tools/workflows.d.ts.map +1 -0
  111. package/dist/tools/workflows.js +267 -0
  112. package/dist/tools/workflows.js.map +1 -0
  113. package/package.json +2 -2
@@ -0,0 +1,291 @@
1
+ /**
2
+ * MCP Tools for WAP Roles & Permissions
3
+ * Roller GLOBAL /roles altında yönetilir (tüm siteler için ortak).
4
+ * İzinler GLOBAL /permissions altından listelenir.
5
+ */
6
+ export function getRoleTools(client) {
7
+ return {
8
+ // ─── List Roles ───────────────────────────────────────
9
+ list_roles: {
10
+ description: "Tüm rolleri listeler. Roller global'dir (site bağımsız). İsim, açıklama ve tip ile filtrelenebilir.",
11
+ inputSchema: {
12
+ type: "object",
13
+ properties: {
14
+ name: { type: "string", description: "Rol adı ile filtrele" },
15
+ description: {
16
+ type: "string",
17
+ description: "Rol açıklaması ile filtrele",
18
+ },
19
+ type: {
20
+ type: "number",
21
+ description: "Rol tipi ile filtrele (1=SuperAdmin, 2=Admin, 3=Editor, 4=Custom)",
22
+ },
23
+ order: { type: "string", description: "Sıralama yapılacak alan" },
24
+ isDescending: {
25
+ type: "boolean",
26
+ description: "Azalan sıralama (true) / artan (false)",
27
+ },
28
+ pageIndex: {
29
+ type: "number",
30
+ description: "Sayfa numarası (0-based)",
31
+ },
32
+ pageLength: {
33
+ type: "number",
34
+ description: "Sayfa boyutu (varsayılan: 10)",
35
+ },
36
+ },
37
+ },
38
+ handler: async (args) => {
39
+ const params = {};
40
+ if (args.name)
41
+ params.Name = args.name;
42
+ if (args.description)
43
+ params.Description = args.description;
44
+ if (args.type !== undefined)
45
+ params.Type = String(args.type);
46
+ if (args.order)
47
+ params.Order = args.order;
48
+ if (args.isDescending !== undefined)
49
+ params.IsDescending = String(args.isDescending);
50
+ if (args.pageIndex !== undefined)
51
+ params.PageIndex = String(args.pageIndex);
52
+ if (args.pageLength !== undefined)
53
+ params.PageLength = String(args.pageLength);
54
+ const result = await client.request("GET", "/roles", undefined, params);
55
+ return {
56
+ content: [
57
+ { type: "text", text: JSON.stringify(result, null, 2) },
58
+ ],
59
+ };
60
+ },
61
+ },
62
+ // ─── Get Role ─────────────────────────────────────────
63
+ get_role: {
64
+ description: "Belirli bir rolün detaylarını ID ile getirir. İzinleri, template ve sol menü ayarlarını içerir.",
65
+ inputSchema: {
66
+ type: "object",
67
+ properties: {
68
+ id: { type: "string", description: "Rol ID (GUID)" },
69
+ },
70
+ required: ["id"],
71
+ },
72
+ handler: async (args) => {
73
+ const result = await client.request("GET", `/roles/${args.id}`);
74
+ return {
75
+ content: [
76
+ { type: "text", text: JSON.stringify(result, null, 2) },
77
+ ],
78
+ };
79
+ },
80
+ },
81
+ // ─── Create Role ──────────────────────────────────────
82
+ create_role: {
83
+ description: `Yeni bir rol oluşturur.
84
+ 'name': Rol adı (zorunlu).
85
+ 'type': Rol tipi (1=SuperAdmin, 2=Admin, 3=Editor, 4=Custom).
86
+ 'permission': İzin objesi. Şekli: { siteIds: string[], entities: [{ id, siteId, settings?, hasRead, hasCreate, hasUpdate, hasDelete, hasPublish, hasUnpublish }], systemModules: [{ module, permissionIds: string[], settings? }] }.
87
+ 'template': Opsiyonel template objesi { site: { type, settings? }, entity: { type, global, settings? } }.
88
+ 'leftMenu': Opsiyonel sol menü tasarım dizisi.`,
89
+ inputSchema: {
90
+ type: "object",
91
+ properties: {
92
+ name: { type: "string", description: "Rol adı" },
93
+ description: { type: "string", description: "Rol açıklaması" },
94
+ type: {
95
+ type: "number",
96
+ description: "Rol tipi (1=SuperAdmin, 2=Admin, 3=Editor, 4=Custom)",
97
+ },
98
+ permission: {
99
+ type: "object",
100
+ description: "İzin objesi: { siteIds, entities, systemModules } yapısında izin tanımları",
101
+ },
102
+ template: {
103
+ type: "object",
104
+ description: "İzin şablonu objesi: { site, entity } yapısında varsayılan izin şablonu",
105
+ },
106
+ leftMenu: {
107
+ type: "array",
108
+ description: "Bu role özel sol menü tasarımı (LeftMenuDesign dizisi)",
109
+ },
110
+ },
111
+ required: ["name", "type"],
112
+ },
113
+ handler: async (args) => {
114
+ const body = {
115
+ name: args.name,
116
+ type: args.type,
117
+ };
118
+ if (args.description !== undefined)
119
+ body.description = args.description;
120
+ if (args.permission !== undefined)
121
+ body.permission = args.permission;
122
+ if (args.template !== undefined)
123
+ body.template = args.template;
124
+ if (args.leftMenu !== undefined)
125
+ body.leftMenu = args.leftMenu;
126
+ const result = await client.request("POST", "/roles", body);
127
+ return {
128
+ content: [
129
+ { type: "text", text: JSON.stringify(result, null, 2) },
130
+ ],
131
+ };
132
+ },
133
+ },
134
+ // ─── Update Role ──────────────────────────────────────
135
+ update_role: {
136
+ description: `Mevcut bir rolü günceller.
137
+ 'permission' ve 'template' yapıları create_role ile aynıdır.`,
138
+ inputSchema: {
139
+ type: "object",
140
+ properties: {
141
+ id: { type: "string", description: "Güncellenecek rol ID (GUID)" },
142
+ name: { type: "string", description: "Yeni rol adı" },
143
+ description: { type: "string", description: "Yeni açıklama" },
144
+ type: {
145
+ type: "number",
146
+ description: "Rol tipi (1=SuperAdmin, 2=Admin, 3=Editor, 4=Custom)",
147
+ },
148
+ permission: {
149
+ type: "object",
150
+ description: "İzin objesi: { siteIds, entities, systemModules } yapısında izin tanımları",
151
+ },
152
+ template: {
153
+ type: "object",
154
+ description: "İzin şablonu objesi: { site, entity } yapısında varsayılan izin şablonu",
155
+ },
156
+ leftMenu: {
157
+ type: "array",
158
+ description: "Bu role özel sol menü tasarımı (LeftMenuDesign dizisi)",
159
+ },
160
+ },
161
+ required: ["id", "name", "type"],
162
+ },
163
+ handler: async (args) => {
164
+ const { id, ...rest } = args;
165
+ const body = {
166
+ name: rest.name,
167
+ type: rest.type,
168
+ };
169
+ if (rest.description !== undefined)
170
+ body.description = rest.description;
171
+ if (rest.permission !== undefined)
172
+ body.permission = rest.permission;
173
+ if (rest.template !== undefined)
174
+ body.template = rest.template;
175
+ if (rest.leftMenu !== undefined)
176
+ body.leftMenu = rest.leftMenu;
177
+ const result = await client.request("PUT", `/roles/${id}`, body);
178
+ return {
179
+ content: [
180
+ { type: "text", text: JSON.stringify(result, null, 2) },
181
+ ],
182
+ };
183
+ },
184
+ },
185
+ // ─── Delete Role ──────────────────────────────────────
186
+ delete_role: {
187
+ description: "Bir rolü siler. DİKKAT: Bu işlem geri alınamaz.",
188
+ inputSchema: {
189
+ type: "object",
190
+ properties: {
191
+ id: { type: "string", description: "Silinecek rol ID (GUID)" },
192
+ },
193
+ required: ["id"],
194
+ },
195
+ handler: async (args) => {
196
+ const result = await client.request("DELETE", `/roles/${args.id}`);
197
+ return {
198
+ content: [
199
+ { type: "text", text: JSON.stringify(result, null, 2) },
200
+ ],
201
+ };
202
+ },
203
+ },
204
+ // ─── List Permissions ─────────────────────────────────
205
+ list_permissions: {
206
+ description: "Sistemdeki tüm izinleri (permissions) modül gruplarına göre listeler. Rol tanımlarken hangi izinlerin atanabileceğini görmek için kullanılır.",
207
+ inputSchema: {
208
+ type: "object",
209
+ properties: {
210
+ title: { type: "string", description: "İzin başlığı ile filtrele" },
211
+ value: { type: "string", description: "İzin değeri ile filtrele" },
212
+ module: { type: "string", description: "Modül adı ile filtrele" },
213
+ operation: {
214
+ type: "number",
215
+ description: "İzin operasyonu ile filtrele (1=Read, 2=Create, 3=Update, 4=Delete, 5=Custom, 6=Publish, 7=Unpublish)",
216
+ },
217
+ roleType: {
218
+ type: "number",
219
+ description: "Rol tipi (1=SuperAdmin, 2=Admin, 3=Editor, 4=Custom) - bu tipe uygun izinleri getirir",
220
+ },
221
+ permissionType: {
222
+ type: "number",
223
+ description: "İzin tipi ile filtrele (1=General, 2=System, 3=Auth, 4=Dynamic)",
224
+ },
225
+ order: { type: "string", description: "Sıralama yapılacak alan" },
226
+ isDescending: {
227
+ type: "boolean",
228
+ description: "Azalan sıralama (true) / artan (false)",
229
+ },
230
+ pageIndex: {
231
+ type: "number",
232
+ description: "Sayfa numarası (0-based)",
233
+ },
234
+ pageLength: {
235
+ type: "number",
236
+ description: "Sayfa boyutu (varsayılan: 10)",
237
+ },
238
+ },
239
+ },
240
+ handler: async (args) => {
241
+ const params = {};
242
+ if (args.title)
243
+ params.Title = args.title;
244
+ if (args.value)
245
+ params.Value = args.value;
246
+ if (args.module)
247
+ params.Module = args.module;
248
+ if (args.operation !== undefined)
249
+ params.Operation = String(args.operation);
250
+ if (args.roleType !== undefined)
251
+ params.RoleType = String(args.roleType);
252
+ if (args.permissionType !== undefined)
253
+ params.PermissionType = String(args.permissionType);
254
+ if (args.order)
255
+ params.Order = args.order;
256
+ if (args.isDescending !== undefined)
257
+ params.IsDescending = String(args.isDescending);
258
+ if (args.pageIndex !== undefined)
259
+ params.PageIndex = String(args.pageIndex);
260
+ if (args.pageLength !== undefined)
261
+ params.PageLength = String(args.pageLength);
262
+ const result = await client.request("GET", "/permissions", undefined, params);
263
+ return {
264
+ content: [
265
+ { type: "text", text: JSON.stringify(result, null, 2) },
266
+ ],
267
+ };
268
+ },
269
+ },
270
+ // ─── Get Permission ───────────────────────────────────
271
+ get_permission: {
272
+ description: "Belirli bir iznin (permission) detaylarını ID ile getirir.",
273
+ inputSchema: {
274
+ type: "object",
275
+ properties: {
276
+ id: { type: "string", description: "İzin ID (GUID)" },
277
+ },
278
+ required: ["id"],
279
+ },
280
+ handler: async (args) => {
281
+ const result = await client.request("GET", `/permissions/${args.id}`);
282
+ return {
283
+ content: [
284
+ { type: "text", text: JSON.stringify(result, null, 2) },
285
+ ],
286
+ };
287
+ },
288
+ },
289
+ };
290
+ }
291
+ //# sourceMappingURL=roles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.js","sourceRoot":"","sources":["../../src/tools/roles.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,UAAU,YAAY,CAAC,MAAiB;IAC5C,OAAO;QACL,yDAAyD;QACzD,UAAU,EAAE;YACV,WAAW,EACT,qGAAqG;YACvG,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sBAAsB,EAAE;oBAC7D,WAAW,EAAE;wBACX,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,6BAA6B;qBAC3C;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,QAAQ;wBACd,WAAW,EACT,mEAAmE;qBACtE;oBACD,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yBAAyB,EAAE;oBACjE,YAAY,EAAE;wBACZ,IAAI,EAAE,SAAS;wBACf,WAAW,EAAE,wCAAwC;qBACtD;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,0BAA0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,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBAC5C,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS;oBAC/B,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;gBAC9C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CACjC,KAAK,EACL,cAAc,EACd,SAAS,EACT,MAAM,CACP,CAAC;gBACF,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,cAAc,EAAE;YACd,WAAW,EACT,4DAA4D;YAC9D,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,gBAAgB,EAAE;iBACtD;gBACD,QAAQ,EAAE,CAAC,IAAI,CAAC;aACjB;YACD,OAAO,EAAE,KAAK,EAAE,IAAoB,EAAE,EAAE;gBACtC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,KAAK,EAAE,gBAAgB,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;gBACtE,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,160 @@
1
+ /**
2
+ * MCP Tools for WAP Settings operations
3
+ * Covers Application Settings (per-module app config) and System Settings.
4
+ * NOTE: Plain get/update app settings already live in tools/general.ts
5
+ * (wappa_get_app_settings / wappa_update_app_settings). The tools here are
6
+ * module-scoped app settings, app/system settings localizations and system
7
+ * settings management.
8
+ */
9
+ import { WapClient } from "../client.js";
10
+ export declare function getSettingsTools(client: WapClient): {
11
+ get_app_settings_module: {
12
+ description: string;
13
+ inputSchema: {
14
+ type: "object";
15
+ properties: {
16
+ module: {
17
+ type: string;
18
+ description: string;
19
+ };
20
+ };
21
+ required: string[];
22
+ };
23
+ handler: (args: {
24
+ module: string;
25
+ }) => Promise<{
26
+ content: {
27
+ type: "text";
28
+ text: string;
29
+ }[];
30
+ }>;
31
+ };
32
+ update_app_settings_module: {
33
+ description: string;
34
+ inputSchema: {
35
+ type: "object";
36
+ properties: {
37
+ data: {
38
+ type: string;
39
+ description: string;
40
+ };
41
+ };
42
+ required: string[];
43
+ };
44
+ handler: (args: {
45
+ data: Record<string, unknown>;
46
+ }) => Promise<{
47
+ content: {
48
+ type: "text";
49
+ text: string;
50
+ }[];
51
+ }>;
52
+ };
53
+ create_app_settings_localization: {
54
+ description: string;
55
+ inputSchema: {
56
+ type: "object";
57
+ properties: {
58
+ selectedModule: {
59
+ type: string;
60
+ description: string;
61
+ };
62
+ sourceLanguageId: {
63
+ type: string;
64
+ description: string;
65
+ };
66
+ };
67
+ required: string[];
68
+ };
69
+ handler: (args: {
70
+ selectedModule?: string;
71
+ sourceLanguageId: string;
72
+ }) => Promise<{
73
+ content: {
74
+ type: "text";
75
+ text: string;
76
+ }[];
77
+ }>;
78
+ };
79
+ delete_app_settings_localization: {
80
+ description: string;
81
+ inputSchema: {
82
+ type: "object";
83
+ properties: {
84
+ selectedModule: {
85
+ type: string;
86
+ description: string;
87
+ };
88
+ };
89
+ };
90
+ handler: (args: {
91
+ selectedModule?: string;
92
+ }) => Promise<{
93
+ content: {
94
+ type: "text";
95
+ text: string;
96
+ }[];
97
+ }>;
98
+ };
99
+ get_system_settings: {
100
+ description: string;
101
+ inputSchema: {
102
+ type: "object";
103
+ properties: {};
104
+ };
105
+ handler: () => Promise<{
106
+ content: {
107
+ type: "text";
108
+ text: string;
109
+ }[];
110
+ }>;
111
+ };
112
+ update_system_settings: {
113
+ description: string;
114
+ inputSchema: {
115
+ type: "object";
116
+ properties: {
117
+ data: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ };
122
+ required: string[];
123
+ };
124
+ handler: (args: {
125
+ data: Record<string, unknown>;
126
+ }) => Promise<{
127
+ content: {
128
+ type: "text";
129
+ text: string;
130
+ }[];
131
+ }>;
132
+ };
133
+ create_system_settings_localization: {
134
+ description: string;
135
+ inputSchema: {
136
+ type: "object";
137
+ properties: {
138
+ sourceLanguageId: {
139
+ type: string;
140
+ description: string;
141
+ };
142
+ data: {
143
+ type: string;
144
+ description: string;
145
+ };
146
+ };
147
+ required: string[];
148
+ };
149
+ handler: (args: {
150
+ sourceLanguageId: string;
151
+ data?: Record<string, unknown>;
152
+ }) => Promise<{
153
+ content: {
154
+ type: "text";
155
+ text: string;
156
+ }[];
157
+ }>;
158
+ };
159
+ };
160
+ //# sourceMappingURL=settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/tools/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;wBAgBtB;YAAE,MAAM,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;wBAuClB;YAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBAgCjC;YACpB,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,gBAAgB,EAAE,MAAM,CAAC;SAC1B;;;;;;;;;;;;;;;;;;wBA8BqB;YAAE,cAAc,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAkD3B;YAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBAiCjC;YACpB,gBAAgB,EAAE,MAAM,CAAC;YACzB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;SAChC;;;;;;;EAcN"}
@@ -0,0 +1,187 @@
1
+ /**
2
+ * MCP Tools for WAP Settings operations
3
+ * Covers Application Settings (per-module app config) and System Settings.
4
+ * NOTE: Plain get/update app settings already live in tools/general.ts
5
+ * (wappa_get_app_settings / wappa_update_app_settings). The tools here are
6
+ * module-scoped app settings, app/system settings localizations and system
7
+ * settings management.
8
+ */
9
+ export function getSettingsTools(client) {
10
+ return {
11
+ // ─── Get Application Settings by Module ────────────────
12
+ get_app_settings_module: {
13
+ description: "Belirli bir modüle ait uygulama ayarlarını getirir (GET /ApplicationSettings/{module}). 'module', ayarların okunacağı sistem modülünün adıdır (örn. uygulama, blog vb.).",
14
+ inputSchema: {
15
+ type: "object",
16
+ properties: {
17
+ module: {
18
+ type: "string",
19
+ description: "Ayarları getirilecek modülün adı (route parametresi)",
20
+ },
21
+ },
22
+ required: ["module"],
23
+ },
24
+ handler: async (args) => {
25
+ const result = await client.request("GET", `/{site}/ApplicationSettings/${args.module}`);
26
+ return {
27
+ content: [
28
+ { type: "text", text: JSON.stringify(result, null, 2) },
29
+ ],
30
+ };
31
+ },
32
+ },
33
+ // ─── Update Application Settings (modüllü) ─────────────
34
+ update_app_settings_module: {
35
+ description: `Uygulama ayarlarını günceller (PUT /ApplicationSettings). 'data' içinde gönderilebilecek alanlar:
36
+ - selectedModule: Güncellenecek modülün adı
37
+ - name, shortName: Uygulama adı / kısa adı
38
+ - homepage: Ana sayfa referansı (ReferenceMetadata)
39
+ - routes: Rota tanımları listesi
40
+ - socials: Sosyal medya linkleri (key-value obje)
41
+ - plugins: Plugin listesi
42
+ - favIcon, logoId, logoDetail: İkon / logo bilgileri
43
+ - styles: Özel CSS/stil metni
44
+ - translations: Çeviri listesi
45
+ - refs: Referans listesi
46
+ - dynamicSettings, dynamicSettingsValue: Dinamik ayar tanımları ve değerleri
47
+ - navigation: Navigasyon yapılandırması (type + items)`,
48
+ inputSchema: {
49
+ type: "object",
50
+ properties: {
51
+ data: {
52
+ type: "object",
53
+ description: "Uygulama ayarları gövdesi (selectedModule, name, shortName, homepage, routes, socials, plugins, favIcon, styles, translations, refs, logoId, logoDetail, dynamicSettings, dynamicSettingsValue, navigation alanlarını içerebilir)",
54
+ },
55
+ },
56
+ required: ["data"],
57
+ },
58
+ handler: async (args) => {
59
+ const result = await client.request("PUT", "/{site}/ApplicationSettings", args.data);
60
+ return {
61
+ content: [
62
+ { type: "text", text: JSON.stringify(result, null, 2) },
63
+ ],
64
+ };
65
+ },
66
+ },
67
+ // ─── Create Application Settings Localization ──────────
68
+ create_app_settings_localization: {
69
+ description: "Mevcut bir kaynak dildeki uygulama ayarlarını, aktif dile çevirerek yeni bir dil yerelleştirmesi oluşturur (POST /ApplicationSettings/localizations). Aktif dil 'Accept-Language' başlığı ile belirlenir.",
70
+ inputSchema: {
71
+ type: "object",
72
+ properties: {
73
+ selectedModule: {
74
+ type: "string",
75
+ description: "Yerelleştirilecek modülün adı",
76
+ },
77
+ sourceLanguageId: {
78
+ type: "string",
79
+ description: "İçeriğin kopyalanacağı kaynak dil ID'si (GUID)",
80
+ },
81
+ },
82
+ required: ["sourceLanguageId"],
83
+ },
84
+ handler: async (args) => {
85
+ const result = await client.request("POST", "/{site}/ApplicationSettings/localizations", {
86
+ selectedModule: args.selectedModule,
87
+ sourceLanguageId: args.sourceLanguageId,
88
+ });
89
+ return {
90
+ content: [
91
+ { type: "text", text: JSON.stringify(result, null, 2) },
92
+ ],
93
+ };
94
+ },
95
+ },
96
+ // ─── Delete Application Settings Localization ──────────
97
+ delete_app_settings_localization: {
98
+ description: "Aktif dildeki uygulama ayarları yerelleştirmesini siler (DELETE /ApplicationSettings/localizations). Aktif dil 'Accept-Language' başlığı ile belirlenir. DİKKAT: Bu işlem geri alınamaz.",
99
+ inputSchema: {
100
+ type: "object",
101
+ properties: {
102
+ selectedModule: {
103
+ type: "string",
104
+ description: "Yerelleştirmesi silinecek modülün adı",
105
+ },
106
+ },
107
+ },
108
+ handler: async (args) => {
109
+ const result = await client.request("DELETE", "/{site}/ApplicationSettings/localizations", { selectedModule: args.selectedModule });
110
+ return {
111
+ content: [
112
+ { type: "text", text: JSON.stringify(result, null, 2) },
113
+ ],
114
+ };
115
+ },
116
+ },
117
+ // ─── Get System Settings ───────────────────────────────
118
+ get_system_settings: {
119
+ description: "Sitenin sistem ayarlarını getirir (GET /systemsettings). İsim, kısa isim, logo ve ikon gibi platform genelindeki temel ayarları içerir.",
120
+ inputSchema: {
121
+ type: "object",
122
+ properties: {},
123
+ },
124
+ handler: async () => {
125
+ const result = await client.request("GET", "/{site}/systemsettings");
126
+ return {
127
+ content: [
128
+ { type: "text", text: JSON.stringify(result, null, 2) },
129
+ ],
130
+ };
131
+ },
132
+ },
133
+ // ─── Update System Settings ────────────────────────────
134
+ update_system_settings: {
135
+ description: `Sitenin sistem ayarlarını günceller (PUT /systemsettings). 'data' içinde gönderilebilecek alanlar:
136
+ - name: Sistem adı
137
+ - shortName: Kısa ad
138
+ - logoId: Logo dosyası ID'si (number)
139
+ - iconId: İkon dosyası ID'si (number)`,
140
+ inputSchema: {
141
+ type: "object",
142
+ properties: {
143
+ data: {
144
+ type: "object",
145
+ description: "Sistem ayarları gövdesi (name, shortName, logoId, iconId alanlarını içerebilir)",
146
+ },
147
+ },
148
+ required: ["data"],
149
+ },
150
+ handler: async (args) => {
151
+ const result = await client.request("PUT", "/{site}/systemsettings", args.data);
152
+ return {
153
+ content: [
154
+ { type: "text", text: JSON.stringify(result, null, 2) },
155
+ ],
156
+ };
157
+ },
158
+ },
159
+ // ─── Create System Settings Localization ───────────────
160
+ create_system_settings_localization: {
161
+ description: "Mevcut bir kaynak dildeki sistem ayarlarını, aktif dile çevirerek yeni bir dil yerelleştirmesi oluşturur (POST /systemsettings/localizations). Aktif dil 'Accept-Language' başlığı ile belirlenir.",
162
+ inputSchema: {
163
+ type: "object",
164
+ properties: {
165
+ sourceLanguageId: {
166
+ type: "string",
167
+ description: "İçeriğin kopyalanacağı kaynak dil ID'si (GUID)",
168
+ },
169
+ data: {
170
+ type: "object",
171
+ description: "Yerelleştirme için isteğe bağlı ek sistem ayarları gövdesi (name, shortName, logoId, iconId)",
172
+ },
173
+ },
174
+ required: ["sourceLanguageId"],
175
+ },
176
+ handler: async (args) => {
177
+ const result = await client.request("POST", "/{site}/systemsettings/localizations", { ...(args.data ?? {}), sourceLanguageId: args.sourceLanguageId });
178
+ return {
179
+ content: [
180
+ { type: "text", text: JSON.stringify(result, null, 2) },
181
+ ],
182
+ };
183
+ },
184
+ },
185
+ };
186
+ }
187
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sourceRoot":"","sources":["../../src/tools/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IAChD,OAAO;QACL,0DAA0D;QAC1D,uBAAuB,EAAE;YACvB,WAAW,EACT,0KAA0K;YAC5K,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,WAAW,EAAE,sDAAsD;qBACpE;iBACF;gBACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;aACrB;YACD,OAAO,EAAE,KAAK,EAAE,IAAwB,EAAE,EAAE;gBAC1C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CACjC,KAAK,EACL,+BAA+B,IAAI,CAAC,MAAM,EAAE,CAC7C,CAAC;gBACF,OAAO;oBACL,OAAO,EAAE;wBACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,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