Skip to content

Commit 764908e

Browse files
committed
chore: added CODEOWNERS
1 parent 6007327 commit 764908e

File tree

6 files changed

+284
-7
lines changed

6 files changed

+284
-7
lines changed

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @hostinger/vps-team-dev

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,32 @@ This endpoint retrieves DNS zone records for a specific domain.
234234

235235
- `domain`: Domain name (required)
236236

237+
### DNS_updateZoneRecordsV1
238+
239+
This endpoint updates DNS records for the selected domain. This endpoint could also be used
240+
to delete single record when multiple records exist under same name. In that case use `overwrite` flag
241+
and provide records which should remain. All other records under same name will be deleted.
242+
243+
- **Method**: `PUT`
244+
- **Path**: `/api/dns/v1/zones/{domain}`
245+
246+
**Parameters**:
247+
248+
- `domain`: Domain name (required)
249+
- `overwrite`: If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.
250+
- `zone`: zone property (required)
251+
252+
### DNS_deleteZoneRecordsV1
253+
254+
This endpoint deletes selected DNS records for the selected domain.
255+
256+
- **Method**: `DELETE`
257+
- **Path**: `/api/dns/v1/zones/{domain}`
258+
259+
**Parameters**:
260+
261+
- `domain`: Domain name (required)
262+
237263
### DNS_resetZoneRecordsV1
238264

239265
This endpoint resets DNS zone to the default records.
@@ -248,6 +274,22 @@ This endpoint resets DNS zone to the default records.
248274
- `reset_email_records`: Determines if email records should be reset
249275
- `whitelisted_record_types`: Specifies which record types to not reset
250276

277+
### DNS_validateZoneRecordsV1
278+
279+
This endpoint used to validate DNS records prior update for the selected domain.
280+
281+
If the validation is successful, the response will contain `200 Success` code.
282+
If there is validation error, the response will fail with `422 Validation error` code.
283+
284+
- **Method**: `POST`
285+
- **Path**: `/api/dns/v1/zones/{domain}/validate`
286+
287+
**Parameters**:
288+
289+
- `domain`: Domain name (required)
290+
- `overwrite`: If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.
291+
- `zone`: zone property (required)
292+
251293
### domains_getDomainListV1
252294

253295
This endpoint retrieves a list of all domains associated with your account.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger-api-mcp",
3-
"version": "0.0.5",
3+
"version": "0.0.2",
44
"description": "MCP server for Hostinger API",
55
"repository": {
66
"type": "git",

server.js

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,61 @@ const TOOLS = [
265265
}
266266
]
267267
},
268+
{
269+
"name": "DNS_updateZoneRecordsV1",
270+
"description": "This endpoint updates DNS records for the selected domain. This endpoint could also be used\nto delete single record when multiple records exist under same name. In that case use `overwrite` flag\nand provide records which should remain. All other records under same name will be deleted.",
271+
"method": "PUT",
272+
"path": "/api/dns/v1/zones/{domain}",
273+
"inputSchema": {
274+
"type": "object",
275+
"properties": {
276+
"domain": {
277+
"type": "string",
278+
"description": "Domain name"
279+
},
280+
"overwrite": {
281+
"type": "boolean",
282+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
283+
},
284+
"zone": {
285+
"type": "array",
286+
"description": "zone property"
287+
}
288+
},
289+
"required": [
290+
"domain",
291+
"zone"
292+
]
293+
},
294+
"security": [
295+
{
296+
"apiToken": []
297+
}
298+
]
299+
},
300+
{
301+
"name": "DNS_deleteZoneRecordsV1",
302+
"description": "This endpoint deletes selected DNS records for the selected domain.",
303+
"method": "DELETE",
304+
"path": "/api/dns/v1/zones/{domain}",
305+
"inputSchema": {
306+
"type": "object",
307+
"properties": {
308+
"domain": {
309+
"type": "string",
310+
"description": "Domain name"
311+
}
312+
},
313+
"required": [
314+
"domain"
315+
]
316+
},
317+
"security": [
318+
{
319+
"apiToken": []
320+
}
321+
]
322+
},
268323
{
269324
"name": "DNS_resetZoneRecordsV1",
270325
"description": "This endpoint resets DNS zone to the default records.",
@@ -300,6 +355,38 @@ const TOOLS = [
300355
}
301356
]
302357
},
358+
{
359+
"name": "DNS_validateZoneRecordsV1",
360+
"description": "This endpoint used to validate DNS records prior update for the selected domain. \n\nIf the validation is successful, the response will contain `200 Success` code.\nIf there is validation error, the response will fail with `422 Validation error` code.",
361+
"method": "POST",
362+
"path": "/api/dns/v1/zones/{domain}/validate",
363+
"inputSchema": {
364+
"type": "object",
365+
"properties": {
366+
"domain": {
367+
"type": "string",
368+
"description": "Domain name"
369+
},
370+
"overwrite": {
371+
"type": "boolean",
372+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
373+
},
374+
"zone": {
375+
"type": "array",
376+
"description": "zone property"
377+
}
378+
},
379+
"required": [
380+
"domain",
381+
"zone"
382+
]
383+
},
384+
"security": [
385+
{
386+
"apiToken": []
387+
}
388+
]
389+
},
303390
{
304391
"name": "domains_getDomainListV1",
305392
"description": "This endpoint retrieves a list of all domains associated with your account.",
@@ -1745,7 +1832,7 @@ const SECURITY_SCHEMES = {
17451832

17461833
/**
17471834
* MCP Server for Hostinger API
1748-
* Generated from OpenAPI spec version 0.0.14
1835+
* Generated from OpenAPI spec version 0.0.17
17491836
*/
17501837
class MCPServer {
17511838
constructor() {
@@ -1763,7 +1850,7 @@ class MCPServer {
17631850
this.server = new Server(
17641851
{
17651852
name: "hostinger-api-mcp",
1766-
version: "0.0.5",
1853+
version: "0.0.2",
17671854
},
17681855
{
17691856
capabilities: {
@@ -1788,7 +1875,7 @@ class MCPServer {
17881875
});
17891876
}
17901877

1791-
headers['User-Agent'] = 'hostinger-mcp-server/0.0.5';
1878+
headers['User-Agent'] = 'hostinger-mcp-server/0.0.2';
17921879

17931880
return headers;
17941881
}

server.ts

Lines changed: 90 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,61 @@ const TOOLS: OpenApiTool[] = [
281281
}
282282
]
283283
},
284+
{
285+
"name": "DNS_updateZoneRecordsV1",
286+
"description": "This endpoint updates DNS records for the selected domain. This endpoint could also be used\nto delete single record when multiple records exist under same name. In that case use `overwrite` flag\nand provide records which should remain. All other records under same name will be deleted.",
287+
"method": "PUT",
288+
"path": "/api/dns/v1/zones/{domain}",
289+
"inputSchema": {
290+
"type": "object",
291+
"properties": {
292+
"domain": {
293+
"type": "string",
294+
"description": "Domain name"
295+
},
296+
"overwrite": {
297+
"type": "boolean",
298+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
299+
},
300+
"zone": {
301+
"type": "array",
302+
"description": "zone property"
303+
}
304+
},
305+
"required": [
306+
"domain",
307+
"zone"
308+
]
309+
},
310+
"security": [
311+
{
312+
"apiToken": []
313+
}
314+
]
315+
},
316+
{
317+
"name": "DNS_deleteZoneRecordsV1",
318+
"description": "This endpoint deletes selected DNS records for the selected domain.",
319+
"method": "DELETE",
320+
"path": "/api/dns/v1/zones/{domain}",
321+
"inputSchema": {
322+
"type": "object",
323+
"properties": {
324+
"domain": {
325+
"type": "string",
326+
"description": "Domain name"
327+
}
328+
},
329+
"required": [
330+
"domain"
331+
]
332+
},
333+
"security": [
334+
{
335+
"apiToken": []
336+
}
337+
]
338+
},
284339
{
285340
"name": "DNS_resetZoneRecordsV1",
286341
"description": "This endpoint resets DNS zone to the default records.",
@@ -316,6 +371,38 @@ const TOOLS: OpenApiTool[] = [
316371
}
317372
]
318373
},
374+
{
375+
"name": "DNS_validateZoneRecordsV1",
376+
"description": "This endpoint used to validate DNS records prior update for the selected domain. \n\nIf the validation is successful, the response will contain `200 Success` code.\nIf there is validation error, the response will fail with `422 Validation error` code.",
377+
"method": "POST",
378+
"path": "/api/dns/v1/zones/{domain}/validate",
379+
"inputSchema": {
380+
"type": "object",
381+
"properties": {
382+
"domain": {
383+
"type": "string",
384+
"description": "Domain name"
385+
},
386+
"overwrite": {
387+
"type": "boolean",
388+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created."
389+
},
390+
"zone": {
391+
"type": "array",
392+
"description": "zone property"
393+
}
394+
},
395+
"required": [
396+
"domain",
397+
"zone"
398+
]
399+
},
400+
"security": [
401+
{
402+
"apiToken": []
403+
}
404+
]
405+
},
319406
{
320407
"name": "domains_getDomainListV1",
321408
"description": "This endpoint retrieves a list of all domains associated with your account.",
@@ -1761,7 +1848,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
17611848

17621849
/**
17631850
* MCP Server for Hostinger API
1764-
* Generated from OpenAPI spec version 0.0.14
1851+
* Generated from OpenAPI spec version 0.0.17
17651852
*/
17661853
class MCPServer {
17671854
private server: Server;
@@ -1783,7 +1870,7 @@ class MCPServer {
17831870
this.server = new Server(
17841871
{
17851872
name: "hostinger-api-mcp",
1786-
version: "0.0.5",
1873+
version: "0.0.2",
17871874
},
17881875
{
17891876
capabilities: {
@@ -1808,7 +1895,7 @@ class MCPServer {
18081895
});
18091896
}
18101897

1811-
headers['User-Agent'] = 'hostinger-mcp-server/0.0.5';
1898+
headers['User-Agent'] = 'hostinger-mcp-server/0.0.2';
18121899

18131900
return headers;
18141901
}

types.d.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,42 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
163163
response: any; // Response structure will depend on the API
164164
};
165165

166+
/**
167+
* This endpoint updates DNS records for the selected domain. This endpoint could also be used
168+
to delete single record when multiple records exist under same name. In that case use `overwrite` flag
169+
and provide records which should remain. All other records under same name will be deleted.
170+
*/
171+
"undefined": {
172+
params: {
173+
/**
174+
* Domain name
175+
*/
176+
domain: string;
177+
/**
178+
* If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.
179+
*/
180+
overwrite?: boolean;
181+
/**
182+
* zone property
183+
*/
184+
zone: array;
185+
};
186+
response: any; // Response structure will depend on the API
187+
};
188+
189+
/**
190+
* This endpoint deletes selected DNS records for the selected domain.
191+
*/
192+
"undefined": {
193+
params: {
194+
/**
195+
* Domain name
196+
*/
197+
domain: string;
198+
};
199+
response: any; // Response structure will depend on the API
200+
};
201+
166202
/**
167203
* This endpoint resets DNS zone to the default records.
168204
*/
@@ -188,6 +224,30 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
188224
response: any; // Response structure will depend on the API
189225
};
190226

227+
/**
228+
* This endpoint used to validate DNS records prior update for the selected domain.
229+
230+
If the validation is successful, the response will contain `200 Success` code.
231+
If there is validation error, the response will fail with `422 Validation error` code.
232+
*/
233+
"undefined": {
234+
params: {
235+
/**
236+
* Domain name
237+
*/
238+
domain: string;
239+
/**
240+
* If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created, otherwise resource records' ttl's are updated and new records are appended. If no matching RRs are found, they are created.
241+
*/
242+
overwrite?: boolean;
243+
/**
244+
* zone property
245+
*/
246+
zone: array;
247+
};
248+
response: any; // Response structure will depend on the API
249+
};
250+
191251
/**
192252
* This endpoint retrieves a list of all domains associated with your account.
193253
*/

0 commit comments

Comments
 (0)