@appaflytech/wappa-mcp 0.0.1

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 (68) hide show
  1. package/.env.example +5 -0
  2. package/LICENSE +21 -0
  3. package/README.md +200 -0
  4. package/dist/auth.d.ts +20 -0
  5. package/dist/auth.d.ts.map +1 -0
  6. package/dist/auth.js +58 -0
  7. package/dist/auth.js.map +1 -0
  8. package/dist/base-components.d.ts +52 -0
  9. package/dist/base-components.d.ts.map +1 -0
  10. package/dist/base-components.js +552 -0
  11. package/dist/base-components.js.map +1 -0
  12. package/dist/client.d.ts +141 -0
  13. package/dist/client.d.ts.map +1 -0
  14. package/dist/client.js +341 -0
  15. package/dist/client.js.map +1 -0
  16. package/dist/index.d.ts +10 -0
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +287 -0
  19. package/dist/index.js.map +1 -0
  20. package/dist/tools/components.d.ts +217 -0
  21. package/dist/tools/components.d.ts.map +1 -0
  22. package/dist/tools/components.js +258 -0
  23. package/dist/tools/components.js.map +1 -0
  24. package/dist/tools/dynamic-entities.d.ts +308 -0
  25. package/dist/tools/dynamic-entities.d.ts.map +1 -0
  26. package/dist/tools/dynamic-entities.js +278 -0
  27. package/dist/tools/dynamic-entities.js.map +1 -0
  28. package/dist/tools/entities.d.ts +212 -0
  29. package/dist/tools/entities.d.ts.map +1 -0
  30. package/dist/tools/entities.js +223 -0
  31. package/dist/tools/entities.js.map +1 -0
  32. package/dist/tools/general.d.ts +93 -0
  33. package/dist/tools/general.d.ts.map +1 -0
  34. package/dist/tools/general.js +218 -0
  35. package/dist/tools/general.js.map +1 -0
  36. package/dist/tools/languages.d.ts +157 -0
  37. package/dist/tools/languages.d.ts.map +1 -0
  38. package/dist/tools/languages.js +142 -0
  39. package/dist/tools/languages.js.map +1 -0
  40. package/dist/tools/layouts.d.ts +244 -0
  41. package/dist/tools/layouts.d.ts.map +1 -0
  42. package/dist/tools/layouts.js +218 -0
  43. package/dist/tools/layouts.js.map +1 -0
  44. package/dist/tools/menus.d.ts +154 -0
  45. package/dist/tools/menus.d.ts.map +1 -0
  46. package/dist/tools/menus.js +173 -0
  47. package/dist/tools/menus.js.map +1 -0
  48. package/dist/tools/pages.d.ts +472 -0
  49. package/dist/tools/pages.d.ts.map +1 -0
  50. package/dist/tools/pages.js +465 -0
  51. package/dist/tools/pages.js.map +1 -0
  52. package/dist/tools/queries.d.ts +221 -0
  53. package/dist/tools/queries.d.ts.map +1 -0
  54. package/dist/tools/queries.js +210 -0
  55. package/dist/tools/queries.js.map +1 -0
  56. package/dist/tools/sites.d.ts +187 -0
  57. package/dist/tools/sites.d.ts.map +1 -0
  58. package/dist/tools/sites.js +167 -0
  59. package/dist/tools/sites.js.map +1 -0
  60. package/dist/tools/themes.d.ts +182 -0
  61. package/dist/tools/themes.d.ts.map +1 -0
  62. package/dist/tools/themes.js +175 -0
  63. package/dist/tools/themes.js.map +1 -0
  64. package/dist/tools/widgets.d.ts +216 -0
  65. package/dist/tools/widgets.d.ts.map +1 -0
  66. package/dist/tools/widgets.js +182 -0
  67. package/dist/tools/widgets.js.map +1 -0
  68. package/package.json +50 -0
@@ -0,0 +1,157 @@
1
+ /**
2
+ * MCP Tools for WAP Language CRUD operations
3
+ */
4
+ import { WapClient } from "../client.js";
5
+ export declare function getLanguageTools(client: WapClient): {
6
+ list_languages: {
7
+ description: string;
8
+ inputSchema: {
9
+ type: "object";
10
+ properties: {
11
+ isDefault: {
12
+ type: string;
13
+ description: string;
14
+ };
15
+ pageIndex: {
16
+ type: string;
17
+ description: string;
18
+ };
19
+ pageLength: {
20
+ type: string;
21
+ description: string;
22
+ };
23
+ };
24
+ };
25
+ handler: (args: {
26
+ isDefault?: boolean;
27
+ pageIndex?: number;
28
+ pageLength?: number;
29
+ }) => Promise<{
30
+ content: {
31
+ type: "text";
32
+ text: string;
33
+ }[];
34
+ }>;
35
+ };
36
+ get_language: {
37
+ description: string;
38
+ inputSchema: {
39
+ type: "object";
40
+ properties: {
41
+ id: {
42
+ type: string;
43
+ description: string;
44
+ };
45
+ };
46
+ required: string[];
47
+ };
48
+ handler: (args: {
49
+ id: string;
50
+ }) => Promise<{
51
+ content: {
52
+ type: "text";
53
+ text: string;
54
+ }[];
55
+ }>;
56
+ };
57
+ create_language: {
58
+ description: string;
59
+ inputSchema: {
60
+ type: "object";
61
+ properties: {
62
+ id: {
63
+ type: string;
64
+ description: string;
65
+ };
66
+ title: {
67
+ type: string;
68
+ description: string;
69
+ };
70
+ nativeTitle: {
71
+ type: string;
72
+ description: string;
73
+ };
74
+ name: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ isDefault: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ order: {
83
+ type: string;
84
+ description: string;
85
+ };
86
+ };
87
+ required: string[];
88
+ };
89
+ handler: (args: Record<string, unknown>) => Promise<{
90
+ content: {
91
+ type: "text";
92
+ text: string;
93
+ }[];
94
+ }>;
95
+ };
96
+ update_language: {
97
+ description: string;
98
+ inputSchema: {
99
+ type: "object";
100
+ properties: {
101
+ id: {
102
+ type: string;
103
+ description: string;
104
+ };
105
+ title: {
106
+ type: string;
107
+ description: string;
108
+ };
109
+ nativeTitle: {
110
+ type: string;
111
+ description: string;
112
+ };
113
+ name: {
114
+ type: string;
115
+ description: string;
116
+ };
117
+ isDefault: {
118
+ type: string;
119
+ description: string;
120
+ };
121
+ order: {
122
+ type: string;
123
+ description: string;
124
+ };
125
+ };
126
+ required: string[];
127
+ };
128
+ handler: (args: Record<string, unknown>) => Promise<{
129
+ content: {
130
+ type: "text";
131
+ text: string;
132
+ }[];
133
+ }>;
134
+ };
135
+ delete_language: {
136
+ description: string;
137
+ inputSchema: {
138
+ type: "object";
139
+ properties: {
140
+ id: {
141
+ type: string;
142
+ description: string;
143
+ };
144
+ };
145
+ required: string[];
146
+ };
147
+ handler: (args: {
148
+ id: string;
149
+ }) => Promise<{
150
+ content: {
151
+ type: "text";
152
+ text: string;
153
+ }[];
154
+ }>;
155
+ };
156
+ };
157
+ //# sourceMappingURL=languages.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.d.ts","sourceRoot":"","sources":["../../src/tools/languages.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;wBAoBtB;YACpB,SAAS,CAAC,EAAE,OAAO,CAAC;YACpB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;;;;;;;;;;;;;;;;;;;wBA8BqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoCd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyBvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;wBAwBvB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;EAUzC"}
@@ -0,0 +1,142 @@
1
+ /**
2
+ * MCP Tools for WAP Language CRUD operations
3
+ */
4
+ export function getLanguageTools(client) {
5
+ return {
6
+ // ─── List Languages ───────────────────────────────────
7
+ list_languages: {
8
+ description: "Sitenin desteklediği dilleri listeler. Dil kodları (tr-tr, en-us) sayfa URL prefix'i olarak kullanılır.",
9
+ inputSchema: {
10
+ type: "object",
11
+ properties: {
12
+ isDefault: {
13
+ type: "boolean",
14
+ description: "Yalnızca varsayılan dili getir",
15
+ },
16
+ pageIndex: {
17
+ type: "number",
18
+ description: "Sayfa numarası (0-based)",
19
+ },
20
+ pageLength: { type: "number", description: "Sayfa boyutu" },
21
+ },
22
+ },
23
+ handler: async (args) => {
24
+ const params = {};
25
+ if (args.isDefault !== undefined)
26
+ params.isDefault = String(args.isDefault);
27
+ if (args.pageIndex !== undefined)
28
+ params.pageIndex = String(args.pageIndex);
29
+ if (args.pageLength !== undefined)
30
+ params.pageLength = String(args.pageLength);
31
+ const result = await client.getLanguages(params);
32
+ return {
33
+ content: [
34
+ { type: "text", text: JSON.stringify(result, null, 2) },
35
+ ],
36
+ };
37
+ },
38
+ },
39
+ // ─── Get Language ─────────────────────────────────────
40
+ get_language: {
41
+ description: "Belirli bir dil tanımını getirir.",
42
+ inputSchema: {
43
+ type: "object",
44
+ properties: {
45
+ id: {
46
+ type: "string",
47
+ description: 'Dil kodu (örn: "tr-tr", "en-us")',
48
+ },
49
+ },
50
+ required: ["id"],
51
+ },
52
+ handler: async (args) => {
53
+ const result = await client.getLanguage(args.id);
54
+ return {
55
+ content: [
56
+ { type: "text", text: JSON.stringify(result, null, 2) },
57
+ ],
58
+ };
59
+ },
60
+ },
61
+ // ─── Create Language ──────────────────────────────────
62
+ create_language: {
63
+ description: `Siteye yeni bir dil ekler.
64
+ 'id': BCP-47 dil kodu (örn: "tr-tr", "en-us", "de-de").
65
+ 'title': Admin panelinde görünen ad (örn: "Türkçe").
66
+ 'nativeTitle': Dilin kendi dilindeki adı (örn: "Türkçe", "English").
67
+ 'name': Kısa kod (örn: "tr", "en").
68
+ 'isDefault': Varsayılan dil mi? Site açılışında bu dil kullanılır.`,
69
+ inputSchema: {
70
+ type: "object",
71
+ properties: {
72
+ id: {
73
+ type: "string",
74
+ description: 'BCP-47 dil kodu (örn: "tr-tr", "en-us")',
75
+ },
76
+ title: { type: "string", description: 'Dil adı (örn: "Türkçe")' },
77
+ nativeTitle: {
78
+ type: "string",
79
+ description: 'Dilin kendi adı (örn: "Türkçe")',
80
+ },
81
+ name: { type: "string", description: 'Kısa kod (örn: "tr", "en")' },
82
+ isDefault: { type: "boolean", description: "Varsayılan dil mi?" },
83
+ order: { type: "number", description: "Sıralama" },
84
+ },
85
+ required: ["id", "title", "nativeTitle", "name"],
86
+ },
87
+ handler: async (args) => {
88
+ const result = await client.createLanguage(args);
89
+ return {
90
+ content: [
91
+ { type: "text", text: JSON.stringify(result, null, 2) },
92
+ ],
93
+ };
94
+ },
95
+ },
96
+ // ─── Update Language ──────────────────────────────────
97
+ update_language: {
98
+ description: "Mevcut bir dil tanımını günceller.",
99
+ inputSchema: {
100
+ type: "object",
101
+ properties: {
102
+ id: { type: "string", description: "Güncellenecek dil kodu" },
103
+ title: { type: "string", description: "Yeni dil adı" },
104
+ nativeTitle: { type: "string", description: "Yeni native başlık" },
105
+ name: { type: "string", description: "Yeni kısa kod" },
106
+ isDefault: { type: "boolean", description: "Varsayılan dil mi?" },
107
+ order: { type: "number", description: "Sıralama" },
108
+ },
109
+ required: ["id"],
110
+ },
111
+ handler: async (args) => {
112
+ const { id, ...data } = args;
113
+ const result = await client.updateLanguage(id, data);
114
+ return {
115
+ content: [
116
+ { type: "text", text: JSON.stringify(result, null, 2) },
117
+ ],
118
+ };
119
+ },
120
+ },
121
+ // ─── Delete Language ──────────────────────────────────
122
+ delete_language: {
123
+ description: "Bir dili siler. Bu dildeki tüm içerikler etkilenebilir.",
124
+ inputSchema: {
125
+ type: "object",
126
+ properties: {
127
+ id: { type: "string", description: "Silinecek dil kodu" },
128
+ },
129
+ required: ["id"],
130
+ },
131
+ handler: async (args) => {
132
+ const result = await client.deleteLanguage(args.id);
133
+ return {
134
+ content: [
135
+ { type: "text", text: JSON.stringify(result, null, 2) },
136
+ ],
137
+ };
138
+ },
139
+ },
140
+ };
141
+ }
142
+ //# sourceMappingURL=languages.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"languages.js","sourceRoot":"","sources":["../../src/tools/languages.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,UAAU,gBAAgB,CAAC,MAAiB;IAChD,OAAO;QACL,yDAAyD;QACzD,cAAc,EAAE;YACd,WAAW,EACT,yGAAyG;YAC3G,WAAW,EAAE;gBACX,IAAI,EAAE,QAAiB;gBACvB,UAAU,EAAE;oBACV,SAAS,EAAE;wBACT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AC;aACjB;YACD,OAAO,EAAE,KAAK,EAAE,IAAoB,EAAE,EAAE;gBACtC,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;gBACpD,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,244 @@
1
+ /**
2
+ * MCP Tools for WAP Layout CRUD operations
3
+ * Layouts = page wrapper templates containing header/footer/navigation
4
+ * They define the outer shell; Pages define the inner content area.
5
+ */
6
+ import { WapClient } from "../client.js";
7
+ export declare function getLayoutTools(client: WapClient): {
8
+ list_layouts: {
9
+ description: string;
10
+ inputSchema: {
11
+ type: "object";
12
+ properties: {
13
+ title: {
14
+ type: string;
15
+ description: string;
16
+ };
17
+ status: {
18
+ type: string;
19
+ description: string;
20
+ enum: string[];
21
+ };
22
+ pageIndex: {
23
+ type: string;
24
+ description: string;
25
+ };
26
+ pageLength: {
27
+ type: string;
28
+ description: string;
29
+ };
30
+ };
31
+ };
32
+ handler: (args: {
33
+ title?: string;
34
+ status?: string;
35
+ pageIndex?: number;
36
+ pageLength?: number;
37
+ }) => Promise<{
38
+ content: {
39
+ type: "text";
40
+ text: string;
41
+ }[];
42
+ }>;
43
+ };
44
+ get_layout: {
45
+ description: string;
46
+ inputSchema: {
47
+ type: "object";
48
+ properties: {
49
+ id: {
50
+ type: string;
51
+ description: string;
52
+ };
53
+ };
54
+ required: string[];
55
+ };
56
+ handler: (args: {
57
+ id: string;
58
+ }) => Promise<{
59
+ content: {
60
+ type: "text";
61
+ text: string;
62
+ }[];
63
+ }>;
64
+ };
65
+ create_layout: {
66
+ description: string;
67
+ inputSchema: {
68
+ type: "object";
69
+ properties: {
70
+ title: {
71
+ type: string;
72
+ description: string;
73
+ };
74
+ description: {
75
+ type: string;
76
+ description: string;
77
+ };
78
+ schema: {
79
+ type: string;
80
+ description: string;
81
+ };
82
+ refs: {
83
+ type: string;
84
+ description: string;
85
+ };
86
+ mobileSchema: {
87
+ type: string;
88
+ description: string;
89
+ };
90
+ mobileRefs: {
91
+ type: string;
92
+ description: string;
93
+ };
94
+ themeId: {
95
+ type: string;
96
+ description: string;
97
+ };
98
+ accessType: {
99
+ type: string;
100
+ description: string;
101
+ };
102
+ selectedSiteIds: {
103
+ type: string;
104
+ description: string;
105
+ };
106
+ };
107
+ required: string[];
108
+ };
109
+ handler: (args: Record<string, unknown>) => Promise<{
110
+ content: {
111
+ type: "text";
112
+ text: string;
113
+ }[];
114
+ }>;
115
+ };
116
+ update_layout: {
117
+ description: string;
118
+ inputSchema: {
119
+ type: "object";
120
+ properties: {
121
+ id: {
122
+ type: string;
123
+ description: string;
124
+ };
125
+ title: {
126
+ type: string;
127
+ description: string;
128
+ };
129
+ description: {
130
+ type: string;
131
+ description: string;
132
+ };
133
+ schema: {
134
+ type: string;
135
+ description: string;
136
+ };
137
+ refs: {
138
+ type: string;
139
+ description: string;
140
+ };
141
+ mobileSchema: {
142
+ type: string;
143
+ description: string;
144
+ };
145
+ mobileRefs: {
146
+ type: string;
147
+ description: string;
148
+ };
149
+ themeId: {
150
+ type: string;
151
+ description: string;
152
+ };
153
+ accessType: {
154
+ type: string;
155
+ description: string;
156
+ };
157
+ selectedSiteIds: {
158
+ type: string;
159
+ description: string;
160
+ };
161
+ status: {
162
+ type: string;
163
+ description: string;
164
+ };
165
+ };
166
+ required: string[];
167
+ };
168
+ handler: (args: Record<string, unknown>) => Promise<{
169
+ content: {
170
+ type: "text";
171
+ text: string;
172
+ }[];
173
+ }>;
174
+ };
175
+ delete_layout: {
176
+ description: string;
177
+ inputSchema: {
178
+ type: "object";
179
+ properties: {
180
+ id: {
181
+ type: string;
182
+ description: string;
183
+ };
184
+ };
185
+ required: string[];
186
+ };
187
+ handler: (args: {
188
+ id: string;
189
+ }) => Promise<{
190
+ content: {
191
+ type: "text";
192
+ text: string;
193
+ }[];
194
+ }>;
195
+ };
196
+ clone_layout: {
197
+ description: string;
198
+ inputSchema: {
199
+ type: "object";
200
+ properties: {
201
+ id: {
202
+ type: string;
203
+ description: string;
204
+ };
205
+ };
206
+ required: string[];
207
+ };
208
+ handler: (args: {
209
+ id: string;
210
+ }) => Promise<{
211
+ content: {
212
+ type: "text";
213
+ text: string;
214
+ }[];
215
+ }>;
216
+ };
217
+ clone_layout_to_site: {
218
+ description: string;
219
+ inputSchema: {
220
+ type: "object";
221
+ properties: {
222
+ id: {
223
+ type: string;
224
+ description: string;
225
+ };
226
+ targetSiteId: {
227
+ type: string;
228
+ description: string;
229
+ };
230
+ };
231
+ required: string[];
232
+ };
233
+ handler: (args: {
234
+ id: string;
235
+ targetSiteId: string;
236
+ }) => Promise<{
237
+ content: {
238
+ type: "text";
239
+ text: string;
240
+ }[];
241
+ }>;
242
+ };
243
+ };
244
+ //# sourceMappingURL=layouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layouts.d.ts","sourceRoot":"","sources":["../../src/tools/layouts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,wBAAgB,cAAc,CAAC,MAAM,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;wBAsBpB;YACpB,KAAK,CAAC,EAAE,MAAM,CAAC;YACf,MAAM,CAAC,EAAE,MAAM,CAAC;YAChB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB;;;;;;;;;;;;;;;;;;;wBA4BqB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAuDd,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA0CvB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;;;;;;;;;;;;;;;;;;;wBAyBvB;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;wBAqBd;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;wBAqBd;YAAE,EAAE,EAAE,MAAM,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE;;;;;;;EAa/D"}