hostinger-api-mcp 1.0.0 → 1.1.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.
- package/README.md +204 -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 +565 -0
- package/src/core/tools/all.ts +565 -0
- package/src/core/tools/ecommerce.js +82 -0
- package/src/core/tools/ecommerce.ts +82 -0
- package/src/core/tools/wordpress.js +483 -0
- package/src/core/tools/wordpress.ts +483 -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 +402 -0
package/types.d.ts
CHANGED
|
@@ -796,6 +796,18 @@ Use this endpoint to view which domains use specific contact profiles.
|
|
|
796
796
|
response: any; // Response structure will depend on the API
|
|
797
797
|
};
|
|
798
798
|
|
|
799
|
+
/**
|
|
800
|
+
* Retrieve step-by-step setup instructions, formatted as Markdown, for connecting a custom sales
|
|
801
|
+
channel to your store and keeping your catalog, orders, shipping and payments in sync through
|
|
802
|
+
the Ecommerce API.
|
|
803
|
+
*/
|
|
804
|
+
"ecommerce_getCustomStorefrontSetupInstructionsV1": {
|
|
805
|
+
params: {
|
|
806
|
+
|
|
807
|
+
};
|
|
808
|
+
response: any; // Response structure will depend on the API
|
|
809
|
+
};
|
|
810
|
+
|
|
799
811
|
/**
|
|
800
812
|
* Enable a manual payment method so the store can accept orders without an online payment provider.
|
|
801
813
|
*/
|
|
@@ -875,6 +887,45 @@ Use this endpoint to view which domains use specific contact profiles.
|
|
|
875
887
|
response: any; // Response structure will depend on the API
|
|
876
888
|
};
|
|
877
889
|
|
|
890
|
+
/**
|
|
891
|
+
* List a store's active sales channels with their full metadata.
|
|
892
|
+
*/
|
|
893
|
+
"ecommerce_listSalesChannelsV1": {
|
|
894
|
+
params: {
|
|
895
|
+
/**
|
|
896
|
+
* The ID of the store to list sales channels for.
|
|
897
|
+
*/
|
|
898
|
+
store_id: string;
|
|
899
|
+
};
|
|
900
|
+
response: any; // Response structure will depend on the API
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Create a custom sales channel for a store. Build your own frontend and keep your catalog,
|
|
905
|
+
orders, shipping and payments in sync through the Ecommerce API.
|
|
906
|
+
*/
|
|
907
|
+
"ecommerce_createACustomSalesChannelV1": {
|
|
908
|
+
params: {
|
|
909
|
+
/**
|
|
910
|
+
* The ID of the store to create the sales channel for.
|
|
911
|
+
*/
|
|
912
|
+
store_id: string;
|
|
913
|
+
/**
|
|
914
|
+
* Sales channel type. Only "custom" channels can be created via the API.
|
|
915
|
+
*/
|
|
916
|
+
type: string;
|
|
917
|
+
/**
|
|
918
|
+
* Merchant-facing custom name shown in the sales channels list.
|
|
919
|
+
*/
|
|
920
|
+
name: string;
|
|
921
|
+
/**
|
|
922
|
+
* Optional public address where the custom sales channel lives.
|
|
923
|
+
*/
|
|
924
|
+
url?: string;
|
|
925
|
+
};
|
|
926
|
+
response: any; // Response structure will depend on the API
|
|
927
|
+
};
|
|
928
|
+
|
|
878
929
|
/**
|
|
879
930
|
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
880
931
|
*/
|
|
@@ -3409,6 +3460,60 @@ Each installation includes a `valid` flag and, when invalid, a
|
|
|
3409
3460
|
response: any; // Response structure will depend on the API
|
|
3410
3461
|
};
|
|
3411
3462
|
|
|
3463
|
+
/**
|
|
3464
|
+
* Activate an installed plugin on a WordPress installation.
|
|
3465
|
+
|
|
3466
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3467
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3468
|
+
|
|
3469
|
+
This operation is asynchronous: a successful response only means the activation
|
|
3470
|
+
job has been queued.
|
|
3471
|
+
*/
|
|
3472
|
+
"hosting_activateWordPressPluginV1": {
|
|
3473
|
+
params: {
|
|
3474
|
+
/**
|
|
3475
|
+
* username parameter
|
|
3476
|
+
*/
|
|
3477
|
+
username: string;
|
|
3478
|
+
/**
|
|
3479
|
+
* WordPress installation (software) identifier
|
|
3480
|
+
*/
|
|
3481
|
+
software: string;
|
|
3482
|
+
/**
|
|
3483
|
+
* Slug of the installed plugin to activate.
|
|
3484
|
+
*/
|
|
3485
|
+
plugin: string;
|
|
3486
|
+
};
|
|
3487
|
+
response: any; // Response structure will depend on the API
|
|
3488
|
+
};
|
|
3489
|
+
|
|
3490
|
+
/**
|
|
3491
|
+
* Deactivate an installed plugin on a WordPress installation.
|
|
3492
|
+
|
|
3493
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3494
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3495
|
+
|
|
3496
|
+
This operation is asynchronous: a successful response only means the
|
|
3497
|
+
deactivation job has been queued.
|
|
3498
|
+
*/
|
|
3499
|
+
"hosting_deactivateWordPressPluginV1": {
|
|
3500
|
+
params: {
|
|
3501
|
+
/**
|
|
3502
|
+
* username parameter
|
|
3503
|
+
*/
|
|
3504
|
+
username: string;
|
|
3505
|
+
/**
|
|
3506
|
+
* WordPress installation (software) identifier
|
|
3507
|
+
*/
|
|
3508
|
+
software: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* Slug of the installed plugin to deactivate.
|
|
3511
|
+
*/
|
|
3512
|
+
plugin: string;
|
|
3513
|
+
};
|
|
3514
|
+
response: any; // Response structure will depend on the API
|
|
3515
|
+
};
|
|
3516
|
+
|
|
3412
3517
|
/**
|
|
3413
3518
|
* Install one or more plugins on an existing WordPress installation.
|
|
3414
3519
|
|
|
@@ -3438,6 +3543,207 @@ job has been queued, not that the plugins are ready.
|
|
|
3438
3543
|
response: any; // Response structure will depend on the API
|
|
3439
3544
|
};
|
|
3440
3545
|
|
|
3546
|
+
/**
|
|
3547
|
+
* List plugins recommended for installation on a WordPress installation that are
|
|
3548
|
+
not yet installed.
|
|
3549
|
+
|
|
3550
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3551
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3552
|
+
*/
|
|
3553
|
+
"hosting_listAvailableWordPressPluginsV1": {
|
|
3554
|
+
params: {
|
|
3555
|
+
/**
|
|
3556
|
+
* username parameter
|
|
3557
|
+
*/
|
|
3558
|
+
username: string;
|
|
3559
|
+
/**
|
|
3560
|
+
* WordPress installation (software) identifier
|
|
3561
|
+
*/
|
|
3562
|
+
software: string;
|
|
3563
|
+
};
|
|
3564
|
+
response: any; // Response structure will depend on the API
|
|
3565
|
+
};
|
|
3566
|
+
|
|
3567
|
+
/**
|
|
3568
|
+
* List plugins installed on a WordPress installation, including their status,
|
|
3569
|
+
available updates and known vulnerabilities.
|
|
3570
|
+
|
|
3571
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3572
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3573
|
+
*/
|
|
3574
|
+
"hosting_listInstalledWordPressPluginsV1": {
|
|
3575
|
+
params: {
|
|
3576
|
+
/**
|
|
3577
|
+
* username parameter
|
|
3578
|
+
*/
|
|
3579
|
+
username: string;
|
|
3580
|
+
/**
|
|
3581
|
+
* WordPress installation (software) identifier
|
|
3582
|
+
*/
|
|
3583
|
+
software: string;
|
|
3584
|
+
/**
|
|
3585
|
+
* Filter installed plugins by category.
|
|
3586
|
+
*/
|
|
3587
|
+
category?: string;
|
|
3588
|
+
};
|
|
3589
|
+
response: any; // Response structure will depend on the API
|
|
3590
|
+
};
|
|
3591
|
+
|
|
3592
|
+
/**
|
|
3593
|
+
* Search the WordPress.org plugin directory for plugins available to install.
|
|
3594
|
+
|
|
3595
|
+
Use the returned `slug` values with
|
|
3596
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
3597
|
+
*/
|
|
3598
|
+
"hosting_searchWordPressPluginsV1": {
|
|
3599
|
+
params: {
|
|
3600
|
+
/**
|
|
3601
|
+
* Search term to match against plugin names. Minimum 3 characters.
|
|
3602
|
+
*/
|
|
3603
|
+
search: string;
|
|
3604
|
+
};
|
|
3605
|
+
response: any; // Response structure will depend on the API
|
|
3606
|
+
};
|
|
3607
|
+
|
|
3608
|
+
/**
|
|
3609
|
+
* List curated plugin suggestions grouped by website type.
|
|
3610
|
+
|
|
3611
|
+
Use the returned `slug` values with
|
|
3612
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/plugins/install.
|
|
3613
|
+
*/
|
|
3614
|
+
"hosting_listSuggestedWordPressPluginsV1": {
|
|
3615
|
+
params: {
|
|
3616
|
+
/**
|
|
3617
|
+
* Optionally scope suggestions to a specific order.
|
|
3618
|
+
*/
|
|
3619
|
+
order_id?: number;
|
|
3620
|
+
};
|
|
3621
|
+
response: any; // Response structure will depend on the API
|
|
3622
|
+
};
|
|
3623
|
+
|
|
3624
|
+
/**
|
|
3625
|
+
* Check whether WooCommerce is installed on any WordPress installation of a
|
|
3626
|
+
domain. Optionally filter by domain to scope the check.
|
|
3627
|
+
*/
|
|
3628
|
+
"hosting_checkIfWooCommerceIsInstalledV1": {
|
|
3629
|
+
params: {
|
|
3630
|
+
/**
|
|
3631
|
+
* Filter by domain name (exact match)
|
|
3632
|
+
*/
|
|
3633
|
+
domain?: string;
|
|
3634
|
+
};
|
|
3635
|
+
response: any; // Response structure will depend on the API
|
|
3636
|
+
};
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* Uninstall one or more plugins from a WordPress installation.
|
|
3640
|
+
|
|
3641
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3642
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3643
|
+
|
|
3644
|
+
This operation is asynchronous: a successful response only means the uninstall
|
|
3645
|
+
job has been queued.
|
|
3646
|
+
*/
|
|
3647
|
+
"hosting_uninstallWordPressPluginsV1": {
|
|
3648
|
+
params: {
|
|
3649
|
+
/**
|
|
3650
|
+
* username parameter
|
|
3651
|
+
*/
|
|
3652
|
+
username: string;
|
|
3653
|
+
/**
|
|
3654
|
+
* WordPress installation (software) identifier
|
|
3655
|
+
*/
|
|
3656
|
+
software: string;
|
|
3657
|
+
/**
|
|
3658
|
+
* Slugs of the installed plugins to uninstall.
|
|
3659
|
+
*/
|
|
3660
|
+
plugins: array;
|
|
3661
|
+
};
|
|
3662
|
+
response: any; // Response structure will depend on the API
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3665
|
+
/**
|
|
3666
|
+
* Update a Hostinger plugin to its latest version on a WordPress installation.
|
|
3667
|
+
|
|
3668
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3669
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3670
|
+
|
|
3671
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3672
|
+
has been queued.
|
|
3673
|
+
*/
|
|
3674
|
+
"hosting_updateHostingerWordPressPluginV1": {
|
|
3675
|
+
params: {
|
|
3676
|
+
/**
|
|
3677
|
+
* username parameter
|
|
3678
|
+
*/
|
|
3679
|
+
username: string;
|
|
3680
|
+
/**
|
|
3681
|
+
* WordPress installation (software) identifier
|
|
3682
|
+
*/
|
|
3683
|
+
software: string;
|
|
3684
|
+
/**
|
|
3685
|
+
* Slug of the Hostinger plugin to update to its latest version.
|
|
3686
|
+
*/
|
|
3687
|
+
slug: string;
|
|
3688
|
+
};
|
|
3689
|
+
response: any; // Response structure will depend on the API
|
|
3690
|
+
};
|
|
3691
|
+
|
|
3692
|
+
/**
|
|
3693
|
+
* Update one or more installed plugins to their latest version on a WordPress
|
|
3694
|
+
installation.
|
|
3695
|
+
|
|
3696
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3697
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3698
|
+
|
|
3699
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3700
|
+
has been queued.
|
|
3701
|
+
*/
|
|
3702
|
+
"hosting_updateWordPressPluginsV1": {
|
|
3703
|
+
params: {
|
|
3704
|
+
/**
|
|
3705
|
+
* username parameter
|
|
3706
|
+
*/
|
|
3707
|
+
username: string;
|
|
3708
|
+
/**
|
|
3709
|
+
* WordPress installation (software) identifier
|
|
3710
|
+
*/
|
|
3711
|
+
software: string;
|
|
3712
|
+
/**
|
|
3713
|
+
* Slugs of the installed plugins to update to their latest version.
|
|
3714
|
+
*/
|
|
3715
|
+
plugins: array;
|
|
3716
|
+
};
|
|
3717
|
+
response: any; // Response structure will depend on the API
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
/**
|
|
3721
|
+
* Activate an installed theme on a WordPress installation.
|
|
3722
|
+
|
|
3723
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3724
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3725
|
+
|
|
3726
|
+
This operation is asynchronous: a successful response only means the activation
|
|
3727
|
+
job has been queued.
|
|
3728
|
+
*/
|
|
3729
|
+
"hosting_activateWordPressThemeV1": {
|
|
3730
|
+
params: {
|
|
3731
|
+
/**
|
|
3732
|
+
* username parameter
|
|
3733
|
+
*/
|
|
3734
|
+
username: string;
|
|
3735
|
+
/**
|
|
3736
|
+
* WordPress installation (software) identifier
|
|
3737
|
+
*/
|
|
3738
|
+
software: string;
|
|
3739
|
+
/**
|
|
3740
|
+
* Slug of the installed theme to activate.
|
|
3741
|
+
*/
|
|
3742
|
+
theme: string;
|
|
3743
|
+
};
|
|
3744
|
+
response: any; // Response structure will depend on the API
|
|
3745
|
+
};
|
|
3746
|
+
|
|
3441
3747
|
/**
|
|
3442
3748
|
* Install a theme on an existing WordPress installation.
|
|
3443
3749
|
|
|
@@ -3482,4 +3788,100 @@ job has been queued, not that the theme is ready.
|
|
|
3482
3788
|
};
|
|
3483
3789
|
response: any; // Response structure will depend on the API
|
|
3484
3790
|
};
|
|
3791
|
+
|
|
3792
|
+
/**
|
|
3793
|
+
* List themes installed on a WordPress installation, including their status,
|
|
3794
|
+
available updates and known vulnerabilities.
|
|
3795
|
+
|
|
3796
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3797
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3798
|
+
*/
|
|
3799
|
+
"hosting_listInstalledWordPressThemesV1": {
|
|
3800
|
+
params: {
|
|
3801
|
+
/**
|
|
3802
|
+
* username parameter
|
|
3803
|
+
*/
|
|
3804
|
+
username: string;
|
|
3805
|
+
/**
|
|
3806
|
+
* WordPress installation (software) identifier
|
|
3807
|
+
*/
|
|
3808
|
+
software: string;
|
|
3809
|
+
};
|
|
3810
|
+
response: any; // Response structure will depend on the API
|
|
3811
|
+
};
|
|
3812
|
+
|
|
3813
|
+
/**
|
|
3814
|
+
* List WordPress themes available to install.
|
|
3815
|
+
|
|
3816
|
+
Use the returned `slug` values with
|
|
3817
|
+
POST /api/hosting/v1/accounts/{username}/wordpress/{software}/themes/install.
|
|
3818
|
+
*/
|
|
3819
|
+
"hosting_listWordPressThemesV1": {
|
|
3820
|
+
params: {
|
|
3821
|
+
/**
|
|
3822
|
+
* Optionally scope themes to a specific order.
|
|
3823
|
+
*/
|
|
3824
|
+
order_id?: number;
|
|
3825
|
+
/**
|
|
3826
|
+
* Search term to match against theme names.
|
|
3827
|
+
*/
|
|
3828
|
+
search?: string;
|
|
3829
|
+
};
|
|
3830
|
+
response: any; // Response structure will depend on the API
|
|
3831
|
+
};
|
|
3832
|
+
|
|
3833
|
+
/**
|
|
3834
|
+
* Uninstall one or more themes from a WordPress installation.
|
|
3835
|
+
|
|
3836
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3837
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3838
|
+
|
|
3839
|
+
This operation is asynchronous: a successful response only means the uninstall
|
|
3840
|
+
job has been queued.
|
|
3841
|
+
*/
|
|
3842
|
+
"hosting_uninstallWordPressThemesV1": {
|
|
3843
|
+
params: {
|
|
3844
|
+
/**
|
|
3845
|
+
* username parameter
|
|
3846
|
+
*/
|
|
3847
|
+
username: string;
|
|
3848
|
+
/**
|
|
3849
|
+
* WordPress installation (software) identifier
|
|
3850
|
+
*/
|
|
3851
|
+
software: string;
|
|
3852
|
+
/**
|
|
3853
|
+
* Slugs of the installed themes to uninstall.
|
|
3854
|
+
*/
|
|
3855
|
+
themes: array;
|
|
3856
|
+
};
|
|
3857
|
+
response: any; // Response structure will depend on the API
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* Update one or more installed themes to their latest version on a WordPress
|
|
3862
|
+
installation.
|
|
3863
|
+
|
|
3864
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3865
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3866
|
+
|
|
3867
|
+
This operation is asynchronous: a successful response only means the update job
|
|
3868
|
+
has been queued.
|
|
3869
|
+
*/
|
|
3870
|
+
"hosting_updateWordPressThemesV1": {
|
|
3871
|
+
params: {
|
|
3872
|
+
/**
|
|
3873
|
+
* username parameter
|
|
3874
|
+
*/
|
|
3875
|
+
username: string;
|
|
3876
|
+
/**
|
|
3877
|
+
* WordPress installation (software) identifier
|
|
3878
|
+
*/
|
|
3879
|
+
software: string;
|
|
3880
|
+
/**
|
|
3881
|
+
* Slugs of the installed themes to update to their latest version.
|
|
3882
|
+
*/
|
|
3883
|
+
themes: array;
|
|
3884
|
+
};
|
|
3885
|
+
response: any; // Response structure will depend on the API
|
|
3886
|
+
};
|
|
3485
3887
|
}
|