@heyseo/mcp-server 0.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 +284 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +258 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/index.d.ts +22 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +267 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/resources/index.d.ts +38 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +247 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/tools/comparison.d.ts +159 -0
- package/dist/tools/comparison.d.ts.map +1 -0
- package/dist/tools/comparison.js +482 -0
- package/dist/tools/comparison.js.map +1 -0
- package/dist/tools/ga4.d.ts +182 -0
- package/dist/tools/ga4.d.ts.map +1 -0
- package/dist/tools/ga4.js +429 -0
- package/dist/tools/ga4.js.map +1 -0
- package/dist/tools/gsc.d.ts +194 -0
- package/dist/tools/gsc.d.ts.map +1 -0
- package/dist/tools/gsc.js +348 -0
- package/dist/tools/gsc.js.map +1 -0
- package/dist/tools/index.d.ts +392 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +59 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/pagespeed.d.ts +88 -0
- package/dist/tools/pagespeed.d.ts.map +1 -0
- package/dist/tools/pagespeed.js +285 -0
- package/dist/tools/pagespeed.js.map +1 -0
- package/dist/tools/tasks.d.ts +71 -0
- package/dist/tools/tasks.d.ts.map +1 -0
- package/dist/tools/tasks.js +116 -0
- package/dist/tools/tasks.js.map +1 -0
- package/dist/types.d.ts +151 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/api-client.d.ts +69 -0
- package/dist/utils/api-client.d.ts.map +1 -0
- package/dist/utils/api-client.js +202 -0
- package/dist/utils/api-client.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Registry
|
|
3
|
+
* Exports all tools for the HeySeo MCP server
|
|
4
|
+
*/
|
|
5
|
+
import { gscTools, queryGSCSchema, topKeywordsSchema, topPagesSchema, executeQueryGSC, executeTopKeywords, executeTopPages } from './gsc.js';
|
|
6
|
+
import { ga4Tools, queryGA4Schema, landingPagesSchema, trafficSourcesSchema, executeQueryGA4, executeLandingPages, executeTrafficSources } from './ga4.js';
|
|
7
|
+
import { pagespeedTools, analyzePageSpeedSchema, bulkPageSpeedSchema, executeAnalyzePageSpeed, executeBulkPageSpeed } from './pagespeed.js';
|
|
8
|
+
import { comparisonTools, comparePeriodSchema, findOpportunitiesSchema, weekOverWeekSchema, executeComparePeriod, executeFindOpportunities, executeWeekOverWeek } from './comparison.js';
|
|
9
|
+
import { taskTools, createTaskSchema, executeCreateTask } from './tasks.js';
|
|
10
|
+
export { gscTools, queryGSCSchema, topKeywordsSchema, topPagesSchema, executeQueryGSC, executeTopKeywords, executeTopPages, ga4Tools, queryGA4Schema, landingPagesSchema, trafficSourcesSchema, executeQueryGA4, executeLandingPages, executeTrafficSources, pagespeedTools, analyzePageSpeedSchema, bulkPageSpeedSchema, executeAnalyzePageSpeed, executeBulkPageSpeed, comparisonTools, comparePeriodSchema, findOpportunitiesSchema, weekOverWeekSchema, executeComparePeriod, executeFindOpportunities, executeWeekOverWeek, taskTools, createTaskSchema, executeCreateTask, };
|
|
11
|
+
/**
|
|
12
|
+
* All tool definitions for MCP registration
|
|
13
|
+
*/
|
|
14
|
+
export declare const allTools: ({
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
inputSchema: {
|
|
18
|
+
type: string;
|
|
19
|
+
properties: {
|
|
20
|
+
siteId: {
|
|
21
|
+
type: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
startDate: {
|
|
25
|
+
type: string;
|
|
26
|
+
pattern: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
endDate: {
|
|
30
|
+
type: string;
|
|
31
|
+
pattern: string;
|
|
32
|
+
description: string;
|
|
33
|
+
};
|
|
34
|
+
dimensions: {
|
|
35
|
+
type: string;
|
|
36
|
+
items: {
|
|
37
|
+
type: string;
|
|
38
|
+
enum: string[];
|
|
39
|
+
};
|
|
40
|
+
default: string[];
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
rowLimit: {
|
|
44
|
+
type: string;
|
|
45
|
+
minimum: number;
|
|
46
|
+
maximum: number;
|
|
47
|
+
default: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
50
|
+
filters: {
|
|
51
|
+
type: string;
|
|
52
|
+
items: {
|
|
53
|
+
type: string;
|
|
54
|
+
properties: {
|
|
55
|
+
dimension: {
|
|
56
|
+
type: string;
|
|
57
|
+
enum: string[];
|
|
58
|
+
};
|
|
59
|
+
operator: {
|
|
60
|
+
type: string;
|
|
61
|
+
enum: string[];
|
|
62
|
+
};
|
|
63
|
+
expression: {
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
required: string[];
|
|
68
|
+
};
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
limit?: undefined;
|
|
72
|
+
};
|
|
73
|
+
required: string[];
|
|
74
|
+
};
|
|
75
|
+
} | {
|
|
76
|
+
name: string;
|
|
77
|
+
description: string;
|
|
78
|
+
inputSchema: {
|
|
79
|
+
type: string;
|
|
80
|
+
properties: {
|
|
81
|
+
siteId: {
|
|
82
|
+
type: string;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
limit: {
|
|
86
|
+
type: string;
|
|
87
|
+
minimum: number;
|
|
88
|
+
maximum: number;
|
|
89
|
+
default: number;
|
|
90
|
+
description: string;
|
|
91
|
+
};
|
|
92
|
+
startDate: {
|
|
93
|
+
type: string;
|
|
94
|
+
pattern: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
endDate: {
|
|
98
|
+
type: string;
|
|
99
|
+
pattern: string;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
dimensions?: undefined;
|
|
103
|
+
rowLimit?: undefined;
|
|
104
|
+
filters?: undefined;
|
|
105
|
+
};
|
|
106
|
+
required: string[];
|
|
107
|
+
};
|
|
108
|
+
} | {
|
|
109
|
+
name: string;
|
|
110
|
+
description: string;
|
|
111
|
+
inputSchema: {
|
|
112
|
+
type: string;
|
|
113
|
+
properties: {
|
|
114
|
+
siteId: {
|
|
115
|
+
type: string;
|
|
116
|
+
description: string;
|
|
117
|
+
};
|
|
118
|
+
startDate: {
|
|
119
|
+
type: string;
|
|
120
|
+
pattern: string;
|
|
121
|
+
description: string;
|
|
122
|
+
};
|
|
123
|
+
endDate: {
|
|
124
|
+
type: string;
|
|
125
|
+
pattern: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
metrics: {
|
|
129
|
+
type: string;
|
|
130
|
+
items: {
|
|
131
|
+
type: string;
|
|
132
|
+
enum: string[];
|
|
133
|
+
};
|
|
134
|
+
default: string[];
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
dimensions: {
|
|
138
|
+
type: string;
|
|
139
|
+
items: {
|
|
140
|
+
type: string;
|
|
141
|
+
enum: string[];
|
|
142
|
+
};
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
limit: {
|
|
146
|
+
type: string;
|
|
147
|
+
minimum: number;
|
|
148
|
+
maximum: number;
|
|
149
|
+
default: number;
|
|
150
|
+
description: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
required: string[];
|
|
154
|
+
};
|
|
155
|
+
} | {
|
|
156
|
+
name: string;
|
|
157
|
+
description: string;
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: string;
|
|
160
|
+
properties: {
|
|
161
|
+
siteId: {
|
|
162
|
+
type: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
limit: {
|
|
166
|
+
type: string;
|
|
167
|
+
minimum: number;
|
|
168
|
+
maximum: number;
|
|
169
|
+
default: number;
|
|
170
|
+
description: string;
|
|
171
|
+
};
|
|
172
|
+
startDate: {
|
|
173
|
+
type: string;
|
|
174
|
+
pattern: string;
|
|
175
|
+
description: string;
|
|
176
|
+
};
|
|
177
|
+
endDate: {
|
|
178
|
+
type: string;
|
|
179
|
+
pattern: string;
|
|
180
|
+
description: string;
|
|
181
|
+
};
|
|
182
|
+
metrics?: undefined;
|
|
183
|
+
dimensions?: undefined;
|
|
184
|
+
};
|
|
185
|
+
required: string[];
|
|
186
|
+
};
|
|
187
|
+
} | {
|
|
188
|
+
name: string;
|
|
189
|
+
description: string;
|
|
190
|
+
inputSchema: {
|
|
191
|
+
type: string;
|
|
192
|
+
properties: {
|
|
193
|
+
siteId: {
|
|
194
|
+
type: string;
|
|
195
|
+
description: string;
|
|
196
|
+
};
|
|
197
|
+
startDate: {
|
|
198
|
+
type: string;
|
|
199
|
+
pattern: string;
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
endDate: {
|
|
203
|
+
type: string;
|
|
204
|
+
pattern: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
metrics?: undefined;
|
|
208
|
+
dimensions?: undefined;
|
|
209
|
+
limit?: undefined;
|
|
210
|
+
};
|
|
211
|
+
required: string[];
|
|
212
|
+
};
|
|
213
|
+
} | {
|
|
214
|
+
name: string;
|
|
215
|
+
description: string;
|
|
216
|
+
inputSchema: {
|
|
217
|
+
type: string;
|
|
218
|
+
properties: {
|
|
219
|
+
url: {
|
|
220
|
+
type: string;
|
|
221
|
+
format: string;
|
|
222
|
+
description: string;
|
|
223
|
+
};
|
|
224
|
+
strategy: {
|
|
225
|
+
type: string;
|
|
226
|
+
enum: string[];
|
|
227
|
+
default: string;
|
|
228
|
+
description: string;
|
|
229
|
+
};
|
|
230
|
+
urls?: undefined;
|
|
231
|
+
};
|
|
232
|
+
required: string[];
|
|
233
|
+
};
|
|
234
|
+
} | {
|
|
235
|
+
name: string;
|
|
236
|
+
description: string;
|
|
237
|
+
inputSchema: {
|
|
238
|
+
type: string;
|
|
239
|
+
properties: {
|
|
240
|
+
urls: {
|
|
241
|
+
type: string;
|
|
242
|
+
items: {
|
|
243
|
+
type: string;
|
|
244
|
+
format: string;
|
|
245
|
+
};
|
|
246
|
+
minItems: number;
|
|
247
|
+
maxItems: number;
|
|
248
|
+
description: string;
|
|
249
|
+
};
|
|
250
|
+
strategy: {
|
|
251
|
+
type: string;
|
|
252
|
+
enum: string[];
|
|
253
|
+
default: string;
|
|
254
|
+
description: string;
|
|
255
|
+
};
|
|
256
|
+
url?: undefined;
|
|
257
|
+
};
|
|
258
|
+
required: string[];
|
|
259
|
+
};
|
|
260
|
+
} | {
|
|
261
|
+
name: string;
|
|
262
|
+
description: string;
|
|
263
|
+
inputSchema: {
|
|
264
|
+
type: string;
|
|
265
|
+
properties: {
|
|
266
|
+
siteId: {
|
|
267
|
+
type: string;
|
|
268
|
+
description: string;
|
|
269
|
+
};
|
|
270
|
+
period1Start: {
|
|
271
|
+
type: string;
|
|
272
|
+
pattern: string;
|
|
273
|
+
description: string;
|
|
274
|
+
};
|
|
275
|
+
period1End: {
|
|
276
|
+
type: string;
|
|
277
|
+
pattern: string;
|
|
278
|
+
description: string;
|
|
279
|
+
};
|
|
280
|
+
period2Start: {
|
|
281
|
+
type: string;
|
|
282
|
+
pattern: string;
|
|
283
|
+
description: string;
|
|
284
|
+
};
|
|
285
|
+
period2End: {
|
|
286
|
+
type: string;
|
|
287
|
+
pattern: string;
|
|
288
|
+
description: string;
|
|
289
|
+
};
|
|
290
|
+
includeGA4: {
|
|
291
|
+
type: string;
|
|
292
|
+
default: boolean;
|
|
293
|
+
description: string;
|
|
294
|
+
};
|
|
295
|
+
weeksBack?: undefined;
|
|
296
|
+
type?: undefined;
|
|
297
|
+
};
|
|
298
|
+
required: string[];
|
|
299
|
+
};
|
|
300
|
+
} | {
|
|
301
|
+
name: string;
|
|
302
|
+
description: string;
|
|
303
|
+
inputSchema: {
|
|
304
|
+
type: string;
|
|
305
|
+
properties: {
|
|
306
|
+
siteId: {
|
|
307
|
+
type: string;
|
|
308
|
+
description: string;
|
|
309
|
+
};
|
|
310
|
+
weeksBack: {
|
|
311
|
+
type: string;
|
|
312
|
+
minimum: number;
|
|
313
|
+
maximum: number;
|
|
314
|
+
default: number;
|
|
315
|
+
description: string;
|
|
316
|
+
};
|
|
317
|
+
period1Start?: undefined;
|
|
318
|
+
period1End?: undefined;
|
|
319
|
+
period2Start?: undefined;
|
|
320
|
+
period2End?: undefined;
|
|
321
|
+
includeGA4?: undefined;
|
|
322
|
+
type?: undefined;
|
|
323
|
+
};
|
|
324
|
+
required: string[];
|
|
325
|
+
};
|
|
326
|
+
} | {
|
|
327
|
+
name: string;
|
|
328
|
+
description: string;
|
|
329
|
+
inputSchema: {
|
|
330
|
+
type: string;
|
|
331
|
+
properties: {
|
|
332
|
+
siteId: {
|
|
333
|
+
type: string;
|
|
334
|
+
description: string;
|
|
335
|
+
};
|
|
336
|
+
type: {
|
|
337
|
+
type: string;
|
|
338
|
+
enum: string[];
|
|
339
|
+
default: string;
|
|
340
|
+
description: string;
|
|
341
|
+
};
|
|
342
|
+
period1Start?: undefined;
|
|
343
|
+
period1End?: undefined;
|
|
344
|
+
period2Start?: undefined;
|
|
345
|
+
period2End?: undefined;
|
|
346
|
+
includeGA4?: undefined;
|
|
347
|
+
weeksBack?: undefined;
|
|
348
|
+
};
|
|
349
|
+
required: string[];
|
|
350
|
+
};
|
|
351
|
+
} | {
|
|
352
|
+
name: string;
|
|
353
|
+
description: string;
|
|
354
|
+
inputSchema: {
|
|
355
|
+
type: string;
|
|
356
|
+
properties: {
|
|
357
|
+
siteId: {
|
|
358
|
+
type: string;
|
|
359
|
+
description: string;
|
|
360
|
+
};
|
|
361
|
+
title: {
|
|
362
|
+
type: string;
|
|
363
|
+
minLength: number;
|
|
364
|
+
maxLength: number;
|
|
365
|
+
description: string;
|
|
366
|
+
};
|
|
367
|
+
description: {
|
|
368
|
+
type: string;
|
|
369
|
+
maxLength: number;
|
|
370
|
+
description: string;
|
|
371
|
+
};
|
|
372
|
+
priority: {
|
|
373
|
+
type: string;
|
|
374
|
+
enum: string[];
|
|
375
|
+
default: string;
|
|
376
|
+
description: string;
|
|
377
|
+
};
|
|
378
|
+
category: {
|
|
379
|
+
type: string;
|
|
380
|
+
enum: string[];
|
|
381
|
+
default: string;
|
|
382
|
+
description: string;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
required: string[];
|
|
386
|
+
};
|
|
387
|
+
})[];
|
|
388
|
+
/**
|
|
389
|
+
* Tool name to category mapping
|
|
390
|
+
*/
|
|
391
|
+
export declare const toolCategories: Record<string, string>;
|
|
392
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EACL,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,eAAe,EAChB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAGlB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG5E,OAAO,EAEL,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,eAAe,EAEf,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,EAErB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EAEpB,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,EAEnB,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWpB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAajD,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tool Registry
|
|
3
|
+
* Exports all tools for the HeySeo MCP server
|
|
4
|
+
*/
|
|
5
|
+
// GSC Tools
|
|
6
|
+
import { gscTools, queryGSCSchema, topKeywordsSchema, topPagesSchema, executeQueryGSC, executeTopKeywords, executeTopPages, } from './gsc.js';
|
|
7
|
+
// GA4 Tools
|
|
8
|
+
import { ga4Tools, queryGA4Schema, landingPagesSchema, trafficSourcesSchema, executeQueryGA4, executeLandingPages, executeTrafficSources, } from './ga4.js';
|
|
9
|
+
// PageSpeed Tools
|
|
10
|
+
import { pagespeedTools, analyzePageSpeedSchema, bulkPageSpeedSchema, executeAnalyzePageSpeed, executeBulkPageSpeed, } from './pagespeed.js';
|
|
11
|
+
// Comparison Tools
|
|
12
|
+
import { comparisonTools, comparePeriodSchema, findOpportunitiesSchema, weekOverWeekSchema, executeComparePeriod, executeFindOpportunities, executeWeekOverWeek, } from './comparison.js';
|
|
13
|
+
// Task Tools
|
|
14
|
+
import { taskTools, createTaskSchema, executeCreateTask } from './tasks.js';
|
|
15
|
+
// Re-export everything
|
|
16
|
+
export {
|
|
17
|
+
// GSC
|
|
18
|
+
gscTools, queryGSCSchema, topKeywordsSchema, topPagesSchema, executeQueryGSC, executeTopKeywords, executeTopPages,
|
|
19
|
+
// GA4
|
|
20
|
+
ga4Tools, queryGA4Schema, landingPagesSchema, trafficSourcesSchema, executeQueryGA4, executeLandingPages, executeTrafficSources,
|
|
21
|
+
// PageSpeed
|
|
22
|
+
pagespeedTools, analyzePageSpeedSchema, bulkPageSpeedSchema, executeAnalyzePageSpeed, executeBulkPageSpeed,
|
|
23
|
+
// Comparison
|
|
24
|
+
comparisonTools, comparePeriodSchema, findOpportunitiesSchema, weekOverWeekSchema, executeComparePeriod, executeFindOpportunities, executeWeekOverWeek,
|
|
25
|
+
// Tasks
|
|
26
|
+
taskTools, createTaskSchema, executeCreateTask, };
|
|
27
|
+
/**
|
|
28
|
+
* All tool definitions for MCP registration
|
|
29
|
+
*/
|
|
30
|
+
export const allTools = [
|
|
31
|
+
// GSC
|
|
32
|
+
...gscTools,
|
|
33
|
+
// GA4
|
|
34
|
+
...ga4Tools,
|
|
35
|
+
// PageSpeed
|
|
36
|
+
...pagespeedTools,
|
|
37
|
+
// Comparison
|
|
38
|
+
...comparisonTools,
|
|
39
|
+
// Tasks
|
|
40
|
+
...taskTools,
|
|
41
|
+
];
|
|
42
|
+
/**
|
|
43
|
+
* Tool name to category mapping
|
|
44
|
+
*/
|
|
45
|
+
export const toolCategories = {
|
|
46
|
+
heyseo_query_gsc: 'gsc',
|
|
47
|
+
heyseo_top_keywords: 'gsc',
|
|
48
|
+
heyseo_top_pages: 'gsc',
|
|
49
|
+
heyseo_query_ga4: 'ga4',
|
|
50
|
+
heyseo_landing_pages: 'ga4',
|
|
51
|
+
heyseo_traffic_sources: 'ga4',
|
|
52
|
+
heyseo_pagespeed: 'pagespeed',
|
|
53
|
+
heyseo_pagespeed_bulk: 'pagespeed',
|
|
54
|
+
heyseo_compare_periods: 'comparison',
|
|
55
|
+
heyseo_week_over_week: 'comparison',
|
|
56
|
+
heyseo_find_opportunities: 'comparison',
|
|
57
|
+
heyseo_create_task: 'tasks',
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,YAAY;AACZ,OAAO,EACL,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,UAAU,CAAC;AAElB,YAAY;AACZ,OAAO,EACL,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAElB,kBAAkB;AAClB,OAAO,EACL,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,gBAAgB,CAAC;AAExB,mBAAmB;AACnB,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAEzB,aAAa;AACb,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE5E,uBAAuB;AACvB,OAAO;AACL,MAAM;AACN,QAAQ,EACR,cAAc,EACd,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,kBAAkB,EAClB,eAAe;AACf,MAAM;AACN,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,mBAAmB,EACnB,qBAAqB;AACrB,YAAY;AACZ,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB;AACpB,aAAa;AACb,eAAe,EACf,mBAAmB,EACnB,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,wBAAwB,EACxB,mBAAmB;AACnB,QAAQ;AACR,SAAS,EACT,gBAAgB,EAChB,iBAAiB,GAClB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,MAAM;IACN,GAAG,QAAQ;IACX,MAAM;IACN,GAAG,QAAQ;IACX,YAAY;IACZ,GAAG,cAAc;IACjB,aAAa;IACb,GAAG,eAAe;IAClB,QAAQ;IACR,GAAG,SAAS;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAA2B;IACpD,gBAAgB,EAAE,KAAK;IACvB,mBAAmB,EAAE,KAAK;IAC1B,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,oBAAoB,EAAE,KAAK;IAC3B,sBAAsB,EAAE,KAAK;IAC7B,gBAAgB,EAAE,WAAW;IAC7B,qBAAqB,EAAE,WAAW;IAClC,sBAAsB,EAAE,YAAY;IACpC,qBAAqB,EAAE,YAAY;IACnC,yBAAyB,EAAE,YAAY;IACvC,kBAAkB,EAAE,OAAO;CAC5B,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PageSpeed Insights Tools
|
|
3
|
+
* Tools for analyzing page performance and Core Web Vitals
|
|
4
|
+
*/
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import type { HeySeoApiClient } from '../utils/api-client.js';
|
|
7
|
+
export declare const analyzePageSpeedSchema: z.ZodObject<{
|
|
8
|
+
url: z.ZodString;
|
|
9
|
+
strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["mobile", "desktop"]>>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
12
|
+
strategy: "mobile" | "desktop";
|
|
13
|
+
}, {
|
|
14
|
+
url: string;
|
|
15
|
+
strategy?: "mobile" | "desktop" | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type AnalyzePageSpeedInput = z.infer<typeof analyzePageSpeedSchema>;
|
|
18
|
+
export declare const bulkPageSpeedSchema: z.ZodObject<{
|
|
19
|
+
urls: z.ZodArray<z.ZodString, "many">;
|
|
20
|
+
strategy: z.ZodDefault<z.ZodOptional<z.ZodEnum<["mobile", "desktop"]>>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
strategy: "mobile" | "desktop";
|
|
23
|
+
urls: string[];
|
|
24
|
+
}, {
|
|
25
|
+
urls: string[];
|
|
26
|
+
strategy?: "mobile" | "desktop" | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export type BulkPageSpeedInput = z.infer<typeof bulkPageSpeedSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* Execute PageSpeed analysis tool
|
|
31
|
+
*/
|
|
32
|
+
export declare function executeAnalyzePageSpeed(client: HeySeoApiClient, input: AnalyzePageSpeedInput): Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Execute bulk PageSpeed analysis
|
|
35
|
+
*/
|
|
36
|
+
export declare function executeBulkPageSpeed(client: HeySeoApiClient, input: BulkPageSpeedInput): Promise<string>;
|
|
37
|
+
/**
|
|
38
|
+
* PageSpeed tool definitions for MCP
|
|
39
|
+
*/
|
|
40
|
+
export declare const pagespeedTools: ({
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: string;
|
|
45
|
+
properties: {
|
|
46
|
+
url: {
|
|
47
|
+
type: string;
|
|
48
|
+
format: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
strategy: {
|
|
52
|
+
type: string;
|
|
53
|
+
enum: string[];
|
|
54
|
+
default: string;
|
|
55
|
+
description: string;
|
|
56
|
+
};
|
|
57
|
+
urls?: undefined;
|
|
58
|
+
};
|
|
59
|
+
required: string[];
|
|
60
|
+
};
|
|
61
|
+
} | {
|
|
62
|
+
name: string;
|
|
63
|
+
description: string;
|
|
64
|
+
inputSchema: {
|
|
65
|
+
type: string;
|
|
66
|
+
properties: {
|
|
67
|
+
urls: {
|
|
68
|
+
type: string;
|
|
69
|
+
items: {
|
|
70
|
+
type: string;
|
|
71
|
+
format: string;
|
|
72
|
+
};
|
|
73
|
+
minItems: number;
|
|
74
|
+
maxItems: number;
|
|
75
|
+
description: string;
|
|
76
|
+
};
|
|
77
|
+
strategy: {
|
|
78
|
+
type: string;
|
|
79
|
+
enum: string[];
|
|
80
|
+
default: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
url?: undefined;
|
|
84
|
+
};
|
|
85
|
+
required: string[];
|
|
86
|
+
};
|
|
87
|
+
})[];
|
|
88
|
+
//# sourceMappingURL=pagespeed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagespeed.d.ts","sourceRoot":"","sources":["../../src/tools/pagespeed.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,eAAO,MAAM,sBAAsB;;;;;;;;;EAOjC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAG3E,eAAO,MAAM,mBAAmB;;;;;;;;;EAW9B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AA8CrE;;GAEG;AACH,wBAAsB,uBAAuB,CAC3C,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,MAAM,CAAC,CAmFjB;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACxC,MAAM,EAAE,eAAe,EACvB,KAAK,EAAE,kBAAkB,GACxB,OAAO,CAAC,MAAM,CAAC,CAqEjB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiE1B,CAAC"}
|