Skip to content

Commit 4b80e79

Browse files
committed
fix: updated modelcontextprotocol/sdk
1 parent f5c2da4 commit 4b80e79

File tree

6 files changed

+121
-46
lines changed

6 files changed

+121
-46
lines changed

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,9 @@ Use this when you want to permanently remove a project and free up system resour
701701

702702
Retrieves a list of all Docker Compose projects currently deployed on the virtual machine.
703703

704-
This endpoint returns basic information about each project including name, status, and file path.
704+
This endpoint returns basic information about each project including name, status, file path and list of containers with
705+
details about their names, image, status, health and ports. Container stats are omitted in this endpoint.
706+
If you need to get detailed information about container with stats included, use the `Get project containers` endpoint.
705707

706708
Use this to get an overview of all Docker projects on your VPS instance.
707709

@@ -719,7 +721,7 @@ Deploy new project from docker-compose.yaml contents or download contents from U
719721
URL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to
720722
docker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.
721723

722-
If project already exists, it will be replaced.
724+
If project with the same name already exists, existing project will be replaced.
723725

724726
- **Method**: `POST`
725727
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/docker`
@@ -729,6 +731,7 @@ If project already exists, it will be replaced.
729731
- `virtualMachineId`: Virtual Machine ID (required)
730732
- `project_name`: Docker Compose project name using alphanumeric characters, dashes, and underscores only (required)
731733
- `content`: URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file (required)
734+
- `environment`: Project environment variables
732735

733736
### VPS_getProjectLogsV1
734737

@@ -1369,11 +1372,13 @@ Create or update a PTR (Pointer) record for a specified virtual machine.
13691372
Use this endpoint to configure reverse DNS lookup for VPS IP addresses.
13701373

13711374
- **Method**: `POST`
1372-
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr`
1375+
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}`
13731376

13741377
**Parameters**:
13751378

13761379
- `virtualMachineId`: Virtual Machine ID (required)
1380+
- `ipAddressId`: IP Address ID (required)
1381+
- `domain`: Pointer record domain (required)
13771382

13781383
### VPS_deletePTRRecordV1
13791384

@@ -1384,11 +1389,12 @@ Once deleted, reverse DNS lookups to the virtual machine's IP address will no lo
13841389
Use this endpoint to remove reverse DNS configuration from VPS instances.
13851390

13861391
- **Method**: `DELETE`
1387-
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr`
1392+
- **Path**: `/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}`
13881393

13891394
**Parameters**:
13901395

13911396
- `virtualMachineId`: Virtual Machine ID (required)
1397+
- `ipAddressId`: IP Address ID (required)
13921398

13931399
### VPS_setPanelPasswordV1
13941400

@@ -1469,8 +1475,9 @@ Use this endpoint to completely rebuild VPS instances with fresh OS installation
14691475

14701476
- `virtualMachineId`: Virtual Machine ID (required)
14711477
- `template_id`: Template ID (required)
1472-
- `password`: Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
1473-
- `post_install_script_id`: Post-install script ID
1478+
- `password`: Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
1479+
- `panel_password`: Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response.
1480+
- `post_install_script_id`: Post-install script to execute after virtual machine was recreated
14741481

14751482
### VPS_restartVirtualMachineV1
14761483

package-lock.json

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger-api-mcp",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"description": "MCP server for Hostinger API",
55
"repository": {
66
"type": "git",
@@ -25,7 +25,7 @@
2525
"start:ts": "npx tsc && node dist/server.js"
2626
},
2727
"dependencies": {
28-
"@modelcontextprotocol/sdk": "^1.0.6",
28+
"@modelcontextprotocol/sdk": "^1.10.0",
2929
"minimist": "^1.2.8",
3030
"express": "^4.21.2",
3131
"axios": "^1.8.0",

server.js

Lines changed: 34 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ const TOOLS = [
11321132
},
11331133
{
11341134
"name": "VPS_getProjectListV1",
1135-
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, and file path. \n\nUse this to get an overview of all Docker projects on your VPS instance.",
1135+
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name, status, file path and list of containers with \ndetails about their names, image, status, health and ports. Container stats are omitted in this endpoint.\nIf you need to get detailed information about container with stats included, use the `Get project containers` endpoint. \n\nUse this to get an overview of all Docker projects on your VPS instance.",
11361136
"method": "GET",
11371137
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
11381138
"inputSchema": {
@@ -1155,7 +1155,7 @@ const TOOLS = [
11551155
},
11561156
{
11571157
"name": "VPS_createNewProjectV1",
1158-
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project already exists, it will be replaced.",
1158+
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo] and it will be automatically resolved to \ndocker-compose.yaml file in master branch. Any other URL provided must return docker-compose.yaml file contents.\n\nIf project with the same name already exists, existing project will be replaced.",
11591159
"method": "POST",
11601160
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
11611161
"inputSchema": {
@@ -1172,6 +1172,10 @@ const TOOLS = [
11721172
"content": {
11731173
"type": "string",
11741174
"description": "URL pointing to docker-compose.yaml file, Github repository or raw YAML content of the compose file"
1175+
},
1176+
"environment": {
1177+
"type": "string",
1178+
"description": "Project environment variables"
11751179
}
11761180
},
11771181
"required": [
@@ -2337,17 +2341,27 @@ const TOOLS = [
23372341
"name": "VPS_createPTRRecordV1",
23382342
"description": "Create or update a PTR (Pointer) record for a specified virtual machine.\n\nUse this endpoint to configure reverse DNS lookup for VPS IP addresses.",
23392343
"method": "POST",
2340-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
2344+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
23412345
"inputSchema": {
23422346
"type": "object",
23432347
"properties": {
23442348
"virtualMachineId": {
23452349
"type": "integer",
23462350
"description": "Virtual Machine ID"
2351+
},
2352+
"ipAddressId": {
2353+
"type": "integer",
2354+
"description": "IP Address ID"
2355+
},
2356+
"domain": {
2357+
"type": "string",
2358+
"description": "Pointer record domain"
23472359
}
23482360
},
23492361
"required": [
2350-
"virtualMachineId"
2362+
"virtualMachineId",
2363+
"ipAddressId",
2364+
"domain"
23512365
]
23522366
},
23532367
"security": [
@@ -2360,17 +2374,22 @@ const TOOLS = [
23602374
"name": "VPS_deletePTRRecordV1",
23612375
"description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will no longer return the previously configured hostname.\n\nUse this endpoint to remove reverse DNS configuration from VPS instances.",
23622376
"method": "DELETE",
2363-
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr",
2377+
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
23642378
"inputSchema": {
23652379
"type": "object",
23662380
"properties": {
23672381
"virtualMachineId": {
23682382
"type": "integer",
23692383
"description": "Virtual Machine ID"
2384+
},
2385+
"ipAddressId": {
2386+
"type": "integer",
2387+
"description": "IP Address ID"
23702388
}
23712389
},
23722390
"required": [
2373-
"virtualMachineId"
2391+
"virtualMachineId",
2392+
"ipAddressId"
23742393
]
23752394
},
23762395
"security": [
@@ -2476,11 +2495,15 @@ const TOOLS = [
24762495
},
24772496
"password": {
24782497
"type": "string",
2479-
"description": "Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response."
2498+
"description": "Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response."
2499+
},
2500+
"panel_password": {
2501+
"type": "string",
2502+
"description": "Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response."
24802503
},
24812504
"post_install_script_id": {
24822505
"type": "integer",
2483-
"description": "Post-install script ID"
2506+
"description": "Post-install script to execute after virtual machine was recreated"
24842507
}
24852508
},
24862509
"required": [
@@ -2769,7 +2792,7 @@ const SECURITY_SCHEMES = {
27692792

27702793
/**
27712794
* MCP Server for Hostinger API
2772-
* Generated from OpenAPI spec version 0.0.95
2795+
* Generated from OpenAPI spec version 0.0.101
27732796
*/
27742797
class MCPServer {
27752798
constructor() {
@@ -2787,7 +2810,7 @@ class MCPServer {
27872810
this.server = new Server(
27882811
{
27892812
name: "hostinger-api-mcp",
2790-
version: "0.1.5",
2813+
version: "0.1.6",
27912814
},
27922815
{
27932816
capabilities: {
@@ -2812,7 +2835,7 @@ class MCPServer {
28122835
});
28132836
}
28142837

2815-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.5';
2838+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.6';
28162839

28172840
return headers;
28182841
}

0 commit comments

Comments
 (0)