hostinger-api-mcp 4.23.1 → 5.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.
- package/CHANGELOG.md +27 -0
- package/README.md +1 -150
- package/gemini-extension.json +1 -1
- package/package.json +1 -2
- package/server.json +2 -2
- package/skills/headless/VERSION +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +0 -268
- package/src/core/tools/all.ts +0 -268
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.ts +1 -1
- 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/gpu.js +1 -1
- package/src/servers/gpu.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.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 +0 -192
- package/src/core/tools/horizons.js +0 -322
- package/src/core/tools/horizons.ts +0 -343
- package/src/servers/horizons.js +0 -6
- package/src/servers/horizons.ts +0 -6
|
@@ -1,343 +0,0 @@
|
|
|
1
|
-
// Auto-generated tool list for group: horizons
|
|
2
|
-
import type { Tool } from "@modelcontextprotocol/sdk/types.js";
|
|
3
|
-
|
|
4
|
-
export interface OpenApiTool extends Tool {
|
|
5
|
-
method: string;
|
|
6
|
-
path: string;
|
|
7
|
-
security: unknown[];
|
|
8
|
-
custom?: boolean;
|
|
9
|
-
hidden?: boolean;
|
|
10
|
-
internal?: boolean;
|
|
11
|
-
replacedBy?: string;
|
|
12
|
-
replacesHidden?: boolean;
|
|
13
|
-
group?: string;
|
|
14
|
-
everyServer?: boolean;
|
|
15
|
-
topic?: string;
|
|
16
|
-
handlerMethod?: string;
|
|
17
|
-
templateFile?: string;
|
|
18
|
-
templateFileTS?: string;
|
|
19
|
-
bodyParameters?: string[];
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const tools: OpenApiTool[] = [
|
|
23
|
-
{
|
|
24
|
-
"name": "changelog_list-entries",
|
|
25
|
-
"title": "List changelog and roadmap entries (what's new, what's coming)",
|
|
26
|
-
"annotations": {
|
|
27
|
-
"title": "List changelog and roadmap entries (what's new, what's coming)",
|
|
28
|
-
"readOnlyHint": true,
|
|
29
|
-
"destructiveHint": false
|
|
30
|
-
},
|
|
31
|
-
"topic": "common",
|
|
32
|
-
"description": "What's new and what's coming at Hostinger: list entries of the public Hostinger changelog (release notes, product updates, recent changes, new features and improvements) and of the public roadmap (upcoming features not released yet). Released entries come newest first; upcoming items come soonest expected release first. Reads released changelog entries by default; pick upcoming for the roadmap or all for both. Filter by product or date. Each entry has its title, summary, product, URL, status (released or upcoming), and plan when the entry states one; released entries have their date, upcoming items their expected release date when set. Needs no API token.",
|
|
33
|
-
"method": "",
|
|
34
|
-
"path": "",
|
|
35
|
-
"inputSchema": {
|
|
36
|
-
"type": "object",
|
|
37
|
-
"properties": {
|
|
38
|
-
"status": {
|
|
39
|
-
"type": "string",
|
|
40
|
-
"description": "Which entries to list: released (default) reads the changelog, for what's new; upcoming reads the roadmap's unreleased items, for what's coming; all reads both.",
|
|
41
|
-
"enum": [
|
|
42
|
-
"released",
|
|
43
|
-
"upcoming",
|
|
44
|
-
"all"
|
|
45
|
-
],
|
|
46
|
-
"default": "released"
|
|
47
|
-
},
|
|
48
|
-
"product": {
|
|
49
|
-
"type": "string",
|
|
50
|
-
"description": "Only entries for this product, matched case-insensitively. Products include AI Builder, Web Hosting, VPS, Domains, Hostinger Mail, Reach, Ecommerce, WordPress, Hostinger Agent, AI Automation Apps, Web Pro, Billing, Growth and Payments."
|
|
51
|
-
},
|
|
52
|
-
"since": {
|
|
53
|
-
"type": "string",
|
|
54
|
-
"format": "date",
|
|
55
|
-
"description": "Only released entries dated on or after this date, as YYYY-MM-DD. Upcoming items are not filtered by date."
|
|
56
|
-
},
|
|
57
|
-
"limit": {
|
|
58
|
-
"type": "integer",
|
|
59
|
-
"description": "Most entries to return",
|
|
60
|
-
"minimum": 1,
|
|
61
|
-
"maximum": 100,
|
|
62
|
-
"default": 20
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": []
|
|
66
|
-
},
|
|
67
|
-
"security": [],
|
|
68
|
-
"custom": true,
|
|
69
|
-
"templateFile": "list-changelog-entries.template.js",
|
|
70
|
-
"templateFileTS": "list-changelog-entries.template.ts",
|
|
71
|
-
"handlerMethod": "handleChangelogListEntries",
|
|
72
|
-
"everyServer": true
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"name": "horizons_websites_clone",
|
|
76
|
-
"title": "Clone website",
|
|
77
|
-
"annotations": {
|
|
78
|
-
"title": "Clone website",
|
|
79
|
-
"readOnlyHint": false,
|
|
80
|
-
"destructiveHint": false
|
|
81
|
-
},
|
|
82
|
-
"description": "Clone a Hostinger AI Builder website into a new website.\\n\nUse this tool when the user wants a copy of an existing website, for example to try out\nchanges without touching the original.\\n\nThis tool returns the ID and URL of the newly created copy.\nThe original website is left untouched.\\n\nTo edit the copy, use the `Edit website` tool with the returned website ID, or the user can\nopen the provided website URL in Hostinger AI Builder interface.",
|
|
83
|
-
"method": "POST",
|
|
84
|
-
"path": "/api/horizons/v1/websites/{websiteId}/clone",
|
|
85
|
-
"inputSchema": {
|
|
86
|
-
"type": "object",
|
|
87
|
-
"properties": {
|
|
88
|
-
"websiteId": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"description": "The website ID"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"required": [
|
|
94
|
-
"websiteId"
|
|
95
|
-
]
|
|
96
|
-
},
|
|
97
|
-
"security": [
|
|
98
|
-
{
|
|
99
|
-
"apiToken": []
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
"group": "horizons"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"name": "horizons_websites_list",
|
|
106
|
-
"title": "Get website list",
|
|
107
|
-
"annotations": {
|
|
108
|
-
"title": "Get website list",
|
|
109
|
-
"readOnlyHint": true,
|
|
110
|
-
"destructiveHint": false
|
|
111
|
-
},
|
|
112
|
-
"description": "List the Hostinger AI Builder websites the user owns.\\n\nUse this tool when the user asks which websites they have, or when you need a website ID\nbefore editing, publishing or cloning a website.\\n\nEach website is returned with its ID, status, domain and the URL to open it\nin Hostinger AI Builder interface.\\n\nThe complete list of websites is returned in a single response - it is not paginated.",
|
|
113
|
-
"method": "GET",
|
|
114
|
-
"path": "/api/horizons/v1/websites",
|
|
115
|
-
"inputSchema": {
|
|
116
|
-
"type": "object",
|
|
117
|
-
"properties": {},
|
|
118
|
-
"required": []
|
|
119
|
-
},
|
|
120
|
-
"security": [
|
|
121
|
-
{
|
|
122
|
-
"apiToken": []
|
|
123
|
-
}
|
|
124
|
-
],
|
|
125
|
-
"group": "horizons"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"name": "horizons_websites_create",
|
|
129
|
-
"title": "Create website",
|
|
130
|
-
"annotations": {
|
|
131
|
-
"title": "Create website",
|
|
132
|
-
"readOnlyHint": false,
|
|
133
|
-
"destructiveHint": false
|
|
134
|
-
},
|
|
135
|
-
"description": "Create new Hostinger AI Builder website from the given message.\\n\nUse this tool when user asks you to create a website, landing page, blog\nor any other type of application.\\n\nThis tool initiates the website creation process and returns a website URL, ID and build `task`.\nThe generation happens asynchronously. To learn whether it succeeded, poll the\n`Get website build task` tool with `task.id`; `is_generating` turning false on `Get website`\nhappens whether the build completed or failed.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger AI Builder is now creating their website and it will be ready in a few minutes\nand you should provide the website URL to the user immediately\nDo not write code.\\n\\nTo edit afterwards, use the `Edit website` tool with the returned\nwebsite ID, or the user can go to Hostinger AI Builder interface in the provided website URL.\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.\n\\n\nTECHNOLOGY STACK CONSTRAINTS (STRICTLY ENFORCED):\\n\nThe environment is limited to the following technologies.\nYou MUST NOT use, suggest, or implement any technology outside this list:\\n\n\\n\n- Language: JavaScript ONLY.\n- Languages like TypeScript, Rust, Python, Java, PHP, etc., are STRICTLY PROHIBITED.\\n\n- Framework: React.\\n\n- Navigation: React Router.\\n\n- Styling: TailwindCSS.\\n\n- Components: shadcn/ui (built with @radix-ui primitives).\\n\n- Icons: Lucide React.\\n\n- Animations: Framer Motion.\\n\n\\n\nBACKEND & DATA STORAGE:\\n\n- Hostinger AI Builder integrated backend is the EXCLUSIVE solution for persistent data storage,\nauthentication, and database needs.\\n\n- Local databases (SQLite, MySQL, etc.) are STRICTLY PROHIBITED.\\n\n- Third-party services (Firebase, AWS Amplify) are allowed ONLY if explicitly requested by the user.\\n\n\\n\nMAPS:\\n\n- OpenStreetMap is the default provider.\\n\n- Alternative providers (Google Maps, Mapbox) are allowed ONLY if explicitly requested by the user.\\n",
|
|
136
|
-
"method": "POST",
|
|
137
|
-
"path": "/api/horizons/v1/websites",
|
|
138
|
-
"inputSchema": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"properties": {
|
|
141
|
-
"message": {
|
|
142
|
-
"type": "array",
|
|
143
|
-
"description": "message parameter",
|
|
144
|
-
"items": {
|
|
145
|
-
"type": "object",
|
|
146
|
-
"description": "message parameter",
|
|
147
|
-
"properties": {
|
|
148
|
-
"type": {
|
|
149
|
-
"type": "string",
|
|
150
|
-
"description": "type parameter",
|
|
151
|
-
"enum": [
|
|
152
|
-
"text"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
"text": {
|
|
156
|
-
"type": "string",
|
|
157
|
-
"description": "Detailed project specification.\nInclude purpose, key features, user flows, data models, and design preferences.\nThe specification should be detailed and comprehensive, covering all aspects of the project."
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": [
|
|
161
|
-
"type",
|
|
162
|
-
"text"
|
|
163
|
-
]
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"required": [
|
|
168
|
-
"message"
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
"security": [
|
|
172
|
-
{
|
|
173
|
-
"apiToken": []
|
|
174
|
-
}
|
|
175
|
-
],
|
|
176
|
-
"group": "horizons",
|
|
177
|
-
"bodyParameters": [
|
|
178
|
-
"message"
|
|
179
|
-
]
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
"name": "horizons_websites_edit",
|
|
183
|
-
"title": "Edit website",
|
|
184
|
-
"annotations": {
|
|
185
|
-
"title": "Edit website",
|
|
186
|
-
"readOnlyHint": false,
|
|
187
|
-
"destructiveHint": false
|
|
188
|
-
},
|
|
189
|
-
"description": "Edit an existing Hostinger AI Builder website with a follow-up message.\\n\nUse this tool when the user wants to change, extend or fix a website that already exists.\\n\nThis tool queues the requested changes and returns the website URL, ID and build `task`.\nThe changes are applied asynchronously. To learn whether they were applied, poll the\n`Get website build task` tool with `task.id`; `is_generating` turning false on `Get website`\nhappens whether the build completed or failed.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat Hostinger AI Builder is now applying the requested changes and they will be ready\nin a few minutes, and you should provide the website URL to the user immediately.\nDo not write code.\\n\nIf the tool call fails with an error, you should provide a clear explanation of the error\nand do not generate code yourself in the chat.",
|
|
190
|
-
"method": "POST",
|
|
191
|
-
"path": "/api/horizons/v1/websites/{websiteId}/messages",
|
|
192
|
-
"inputSchema": {
|
|
193
|
-
"type": "object",
|
|
194
|
-
"properties": {
|
|
195
|
-
"websiteId": {
|
|
196
|
-
"type": "string",
|
|
197
|
-
"description": "The website ID"
|
|
198
|
-
},
|
|
199
|
-
"message": {
|
|
200
|
-
"type": "array",
|
|
201
|
-
"description": "message parameter",
|
|
202
|
-
"items": {
|
|
203
|
-
"type": "object",
|
|
204
|
-
"description": "message parameter",
|
|
205
|
-
"properties": {
|
|
206
|
-
"type": {
|
|
207
|
-
"type": "string",
|
|
208
|
-
"description": "type parameter",
|
|
209
|
-
"enum": [
|
|
210
|
-
"text"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
"text": {
|
|
214
|
-
"type": "string",
|
|
215
|
-
"description": "Detailed description of the changes to apply to the website.\nInclude which sections, features, content or design should change and how.\nThe specification should be detailed and comprehensive, covering all requested changes."
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"required": [
|
|
219
|
-
"type",
|
|
220
|
-
"text"
|
|
221
|
-
]
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"required": [
|
|
226
|
-
"websiteId",
|
|
227
|
-
"message"
|
|
228
|
-
]
|
|
229
|
-
},
|
|
230
|
-
"security": [
|
|
231
|
-
{
|
|
232
|
-
"apiToken": []
|
|
233
|
-
}
|
|
234
|
-
],
|
|
235
|
-
"group": "horizons",
|
|
236
|
-
"bodyParameters": [
|
|
237
|
-
"message"
|
|
238
|
-
]
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"name": "horizons_websites_publish",
|
|
242
|
-
"title": "Publish website",
|
|
243
|
-
"annotations": {
|
|
244
|
-
"title": "Publish website",
|
|
245
|
-
"readOnlyHint": false,
|
|
246
|
-
"destructiveHint": false
|
|
247
|
-
},
|
|
248
|
-
"description": "Publish a Hostinger AI Builder website so its latest changes go live.\\n\nUse this tool when the user asks to publish, deploy or make their website live.\\n\nIf you created or edited the website in this conversation, first check its build with the\n`Get website build task` tool and publish only when its `state` is `TASK_STATE_COMPLETED`.\nAfter a failed build, tell the user instead of publishing.\\n\nThis tool starts the publish process and returns the URL the website will be live on.\nPublishing happens asynchronously and takes a few minutes.\\n\nSet `is_template` only when the user explicitly asks to share the website as a template:\ntrue adds a \"Use template\" banner to its published pages that copies the website into the\nvisitor's own account, and false removes it. Leave it out to keep the current setting.\\n\nAfter invoking this tool, your chat reply must be EXACTLY 1 sentence summarizing\nthat the website is being published and you should provide the published URL to the user immediately.",
|
|
249
|
-
"method": "POST",
|
|
250
|
-
"path": "/api/horizons/v1/websites/{websiteId}/publish",
|
|
251
|
-
"inputSchema": {
|
|
252
|
-
"type": "object",
|
|
253
|
-
"properties": {
|
|
254
|
-
"websiteId": {
|
|
255
|
-
"type": "string",
|
|
256
|
-
"description": "The website ID"
|
|
257
|
-
},
|
|
258
|
-
"is_template": {
|
|
259
|
-
"type": "boolean",
|
|
260
|
-
"description": "Set to true to publish the website as a template: its published pages show a \"Use template\" banner\nthat copies the website into the visitor's own account. Set to false to remove the banner.\nLeave it out to keep the current setting."
|
|
261
|
-
}
|
|
262
|
-
},
|
|
263
|
-
"required": [
|
|
264
|
-
"websiteId"
|
|
265
|
-
]
|
|
266
|
-
},
|
|
267
|
-
"security": [
|
|
268
|
-
{
|
|
269
|
-
"apiToken": []
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"group": "horizons",
|
|
273
|
-
"bodyParameters": [
|
|
274
|
-
"is_template"
|
|
275
|
-
]
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"name": "horizons_websites_get",
|
|
279
|
-
"title": "Get website",
|
|
280
|
-
"annotations": {
|
|
281
|
-
"title": "Get website",
|
|
282
|
-
"readOnlyHint": true,
|
|
283
|
-
"destructiveHint": false
|
|
284
|
-
},
|
|
285
|
-
"description": "Get the link for the user to open their website in Hostinger AI Builder interface.\\n\nUse this tool when the user wants the link to an existing website, or when you need its\nwebsite URL before or after editing it.\\n\n`is_in_progress` is true while changes are being generated or the website is being published;\nwait until it is false before publishing. `is_generating` is true while changes are being generated,\nand `actions_in_progress` has `website_publish` while the website is being published.\n`is_generating` turns false whether the build completed or failed: use the `Get website build task`\ntool to learn its outcome.\n`published_at` is when the website was last published,\n`is_template` is whether its published pages show the \"Use template\" banner, and\n`has_ecommerce_store` is whether it has an online store.\\n\nWebsites can be edited with the `Edit website` tool, or by the user in Hostinger AI Builder\ninterface in the provided website URL.",
|
|
286
|
-
"method": "GET",
|
|
287
|
-
"path": "/api/horizons/v1/websites/{websiteId}",
|
|
288
|
-
"inputSchema": {
|
|
289
|
-
"type": "object",
|
|
290
|
-
"properties": {
|
|
291
|
-
"websiteId": {
|
|
292
|
-
"type": "string",
|
|
293
|
-
"description": "The website ID"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
"required": [
|
|
297
|
-
"websiteId"
|
|
298
|
-
]
|
|
299
|
-
},
|
|
300
|
-
"security": [
|
|
301
|
-
{
|
|
302
|
-
"apiToken": []
|
|
303
|
-
}
|
|
304
|
-
],
|
|
305
|
-
"group": "horizons"
|
|
306
|
-
},
|
|
307
|
-
{
|
|
308
|
-
"name": "horizons_websites_build-task",
|
|
309
|
-
"title": "Get website build task",
|
|
310
|
-
"annotations": {
|
|
311
|
-
"title": "Get website build task",
|
|
312
|
-
"readOnlyHint": true,
|
|
313
|
-
"destructiveHint": false
|
|
314
|
-
},
|
|
315
|
-
"description": "Get the state and outcome of a website build started by the `Create website` or `Edit website` tool.\\n\nUse this tool with the `task.id` those tools return to find out whether the build completed or failed.\nPoll it every 30 seconds or so while `state` is `TASK_STATE_SUBMITTED` or `TASK_STATE_WORKING`.\\n\nWhen `state` is `TASK_STATE_FAILED` or `TASK_STATE_REJECTED`, the website does not contain the requested\nchanges: tell the user, using `message` and `reason_code`, and do not publish it.\nWhen `state` is `TASK_STATE_CANCELED`, the user stopped the build and changes made before that may be kept:\npublish only if the user asks to.\n`reason_code` `insufficient_credits` means the user must get more credits before building again.\\n\nWhen `state` is `TASK_STATE_COMPLETED`, the website can be published. A `reason_code` of\n`iteration_limit` on a completed build means it stopped early and kept the work done so far.",
|
|
316
|
-
"method": "GET",
|
|
317
|
-
"path": "/api/horizons/v1/websites/{websiteId}/tasks/{taskId}",
|
|
318
|
-
"inputSchema": {
|
|
319
|
-
"type": "object",
|
|
320
|
-
"properties": {
|
|
321
|
-
"websiteId": {
|
|
322
|
-
"type": "string",
|
|
323
|
-
"description": "The website ID"
|
|
324
|
-
},
|
|
325
|
-
"taskId": {
|
|
326
|
-
"type": "string",
|
|
327
|
-
"description": "The build task ID, returned as `task.id` by the `Create website` and `Edit website` tools"
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
"required": [
|
|
331
|
-
"websiteId",
|
|
332
|
-
"taskId"
|
|
333
|
-
]
|
|
334
|
-
},
|
|
335
|
-
"security": [
|
|
336
|
-
{
|
|
337
|
-
"apiToken": []
|
|
338
|
-
}
|
|
339
|
-
],
|
|
340
|
-
"group": "horizons"
|
|
341
|
-
}
|
|
342
|
-
];
|
|
343
|
-
export default tools;
|
package/src/servers/horizons.js
DELETED
package/src/servers/horizons.ts
DELETED