hostinger-api-mcp 1.2.1 → 1.4.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 +231 -3
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +738 -82
- package/src/core/tools/all.ts +738 -82
- package/src/core/tools/hosting.js +149 -0
- package/src/core/tools/hosting.ts +149 -0
- package/src/core/tools/wordpress.js +507 -0
- package/src/core/tools/wordpress.ts +507 -0
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +471 -0
|
@@ -257,6 +257,155 @@ export default [
|
|
|
257
257
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
258
258
|
"group": "hosting"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
262
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
263
|
+
"method": "DELETE",
|
|
264
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
265
|
+
"inputSchema": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"username": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "username parameter"
|
|
271
|
+
},
|
|
272
|
+
"domain": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "Domain name"
|
|
275
|
+
},
|
|
276
|
+
"directory": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"username",
|
|
283
|
+
"domain"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"security": [
|
|
287
|
+
{
|
|
288
|
+
"apiToken": []
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"group": "hosting"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "hosting_disableCachelessModeV1",
|
|
295
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
296
|
+
"method": "PATCH",
|
|
297
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
298
|
+
"inputSchema": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"properties": {
|
|
301
|
+
"username": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": "username parameter"
|
|
304
|
+
},
|
|
305
|
+
"domain": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "Domain name"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": [
|
|
311
|
+
"username",
|
|
312
|
+
"domain"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"security": [
|
|
316
|
+
{
|
|
317
|
+
"apiToken": []
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"group": "hosting"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
324
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
325
|
+
"method": "PATCH",
|
|
326
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
327
|
+
"inputSchema": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"properties": {
|
|
330
|
+
"username": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "username parameter"
|
|
333
|
+
},
|
|
334
|
+
"domain": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Domain name"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"username",
|
|
341
|
+
"domain"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"security": [
|
|
345
|
+
{
|
|
346
|
+
"apiToken": []
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"group": "hosting"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "hosting_enableCachelessModeV1",
|
|
353
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
354
|
+
"method": "PATCH",
|
|
355
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
356
|
+
"inputSchema": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"username": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "username parameter"
|
|
362
|
+
},
|
|
363
|
+
"domain": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Domain name"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"username",
|
|
370
|
+
"domain"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"security": [
|
|
374
|
+
{
|
|
375
|
+
"apiToken": []
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"group": "hosting"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
382
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
383
|
+
"method": "PATCH",
|
|
384
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
385
|
+
"inputSchema": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"username": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "username parameter"
|
|
391
|
+
},
|
|
392
|
+
"domain": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Domain name"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"username",
|
|
399
|
+
"domain"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
"security": [
|
|
403
|
+
{
|
|
404
|
+
"apiToken": []
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"group": "hosting"
|
|
408
|
+
},
|
|
260
409
|
{
|
|
261
410
|
"name": "hosting_listAccountCronJobsV1",
|
|
262
411
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
@@ -267,6 +267,155 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
272
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
273
|
+
"method": "DELETE",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
},
|
|
282
|
+
"domain": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "Domain name"
|
|
285
|
+
},
|
|
286
|
+
"directory": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"username",
|
|
293
|
+
"domain"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"security": [
|
|
297
|
+
{
|
|
298
|
+
"apiToken": []
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"group": "hosting"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "hosting_disableCachelessModeV1",
|
|
305
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
306
|
+
"method": "PATCH",
|
|
307
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
308
|
+
"inputSchema": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"username": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "username parameter"
|
|
314
|
+
},
|
|
315
|
+
"domain": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"description": "Domain name"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"required": [
|
|
321
|
+
"username",
|
|
322
|
+
"domain"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"security": [
|
|
326
|
+
{
|
|
327
|
+
"apiToken": []
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"group": "hosting"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
334
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
335
|
+
"method": "PATCH",
|
|
336
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
337
|
+
"inputSchema": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"properties": {
|
|
340
|
+
"username": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"description": "username parameter"
|
|
343
|
+
},
|
|
344
|
+
"domain": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"description": "Domain name"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"username",
|
|
351
|
+
"domain"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"security": [
|
|
355
|
+
{
|
|
356
|
+
"apiToken": []
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"group": "hosting"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "hosting_enableCachelessModeV1",
|
|
363
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
364
|
+
"method": "PATCH",
|
|
365
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
366
|
+
"inputSchema": {
|
|
367
|
+
"type": "object",
|
|
368
|
+
"properties": {
|
|
369
|
+
"username": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"description": "username parameter"
|
|
372
|
+
},
|
|
373
|
+
"domain": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "Domain name"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": [
|
|
379
|
+
"username",
|
|
380
|
+
"domain"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"security": [
|
|
384
|
+
{
|
|
385
|
+
"apiToken": []
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"group": "hosting"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
392
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
393
|
+
"method": "PATCH",
|
|
394
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
395
|
+
"inputSchema": {
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"username": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "username parameter"
|
|
401
|
+
},
|
|
402
|
+
"domain": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"description": "Domain name"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"username",
|
|
409
|
+
"domain"
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"security": [
|
|
413
|
+
{
|
|
414
|
+
"apiToken": []
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"group": "hosting"
|
|
418
|
+
},
|
|
270
419
|
{
|
|
271
420
|
"name": "hosting_listAccountCronJobsV1",
|
|
272
421
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|