hostinger-api-mcp 0.1.25 → 0.1.28

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 CHANGED
@@ -964,6 +964,25 @@ Segments are used to organize and group contacts based on specific criteria.
964
964
 
965
965
  - `segmentUuid`: Segment uuid parameter (required)
966
966
 
967
+ ### reach_createANewProfileContactV1
968
+
969
+ Create a new contact in the email marketing system.
970
+
971
+ This endpoint allows you to create a new contact with basic information like name, email, and surname.
972
+
973
+ If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
974
+
975
+ - **Method**: `POST`
976
+ - **Path**: `/api/reach/v1/profiles/{profileUuid}/contacts`
977
+
978
+ **Parameters**:
979
+
980
+ - `profileUuid`: Profile uuid parameter (required)
981
+ - `email`: email parameter (required)
982
+ - `name`: name parameter
983
+ - `surname`: surname parameter
984
+ - `note`: note parameter
985
+
967
986
  ### reach_listProfilesV1
968
987
 
969
988
  This endpoint returns all profiles available to the client, including their basic information.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.1.25",
3
+ "version": "0.1.28",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",
package/server.js CHANGED
@@ -1784,6 +1784,46 @@ const TOOLS = [
1784
1784
  }
1785
1785
  ]
1786
1786
  },
1787
+ {
1788
+ "name": "reach_createANewProfileContactV1",
1789
+ "description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.",
1790
+ "method": "POST",
1791
+ "path": "/api/reach/v1/profiles/{profileUuid}/contacts",
1792
+ "inputSchema": {
1793
+ "type": "object",
1794
+ "properties": {
1795
+ "profileUuid": {
1796
+ "type": "string",
1797
+ "description": "Profile uuid parameter"
1798
+ },
1799
+ "email": {
1800
+ "type": "string",
1801
+ "description": "email parameter"
1802
+ },
1803
+ "name": {
1804
+ "type": "string",
1805
+ "description": "name parameter"
1806
+ },
1807
+ "surname": {
1808
+ "type": "string",
1809
+ "description": "surname parameter"
1810
+ },
1811
+ "note": {
1812
+ "type": "string",
1813
+ "description": "note parameter"
1814
+ }
1815
+ },
1816
+ "required": [
1817
+ "profileUuid",
1818
+ "email"
1819
+ ]
1820
+ },
1821
+ "security": [
1822
+ {
1823
+ "apiToken": []
1824
+ }
1825
+ ]
1826
+ },
1787
1827
  {
1788
1828
  "name": "reach_listProfilesV1",
1789
1829
  "description": "This endpoint returns all profiles available to the client, including their basic information.",
@@ -3562,7 +3602,7 @@ const SECURITY_SCHEMES = {
3562
3602
 
3563
3603
  /**
3564
3604
  * MCP Server for Hostinger API
3565
- * Generated from OpenAPI spec version 0.11.3
3605
+ * Generated from OpenAPI spec version 0.11.4
3566
3606
  */
3567
3607
  class MCPServer {
3568
3608
  constructor() {
@@ -3580,7 +3620,7 @@ class MCPServer {
3580
3620
  this.server = new Server(
3581
3621
  {
3582
3622
  name: "hostinger-api-mcp",
3583
- version: "0.1.25",
3623
+ version: "0.1.28",
3584
3624
  },
3585
3625
  {
3586
3626
  capabilities: {
@@ -3605,7 +3645,7 @@ class MCPServer {
3605
3645
  });
3606
3646
  }
3607
3647
 
3608
- headers['User-Agent'] = 'hostinger-mcp-server/0.1.25';
3648
+ headers['User-Agent'] = 'hostinger-mcp-server/0.1.28';
3609
3649
 
3610
3650
  return headers;
3611
3651
  }
@@ -3850,7 +3890,9 @@ class MCPServer {
3850
3890
 
3851
3891
  const requestHeaders = {
3852
3892
  'X-Auth': authToken,
3853
- 'X-Auth-Rest': authRestToken
3893
+ 'X-Auth-Rest': authRestToken,
3894
+ 'upload-length': stats.size.toString(),
3895
+ 'upload-offset': '0'
3854
3896
  };
3855
3897
 
3856
3898
  try {
package/server.ts CHANGED
@@ -1802,6 +1802,46 @@ const TOOLS: OpenApiTool[] = [
1802
1802
  }
1803
1803
  ]
1804
1804
  },
1805
+ {
1806
+ "name": "reach_createANewProfileContactV1",
1807
+ "description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.",
1808
+ "method": "POST",
1809
+ "path": "/api/reach/v1/profiles/{profileUuid}/contacts",
1810
+ "inputSchema": {
1811
+ "type": "object",
1812
+ "properties": {
1813
+ "profileUuid": {
1814
+ "type": "string",
1815
+ "description": "Profile uuid parameter"
1816
+ },
1817
+ "email": {
1818
+ "type": "string",
1819
+ "description": "email parameter"
1820
+ },
1821
+ "name": {
1822
+ "type": "string",
1823
+ "description": "name parameter"
1824
+ },
1825
+ "surname": {
1826
+ "type": "string",
1827
+ "description": "surname parameter"
1828
+ },
1829
+ "note": {
1830
+ "type": "string",
1831
+ "description": "note parameter"
1832
+ }
1833
+ },
1834
+ "required": [
1835
+ "profileUuid",
1836
+ "email"
1837
+ ]
1838
+ },
1839
+ "security": [
1840
+ {
1841
+ "apiToken": []
1842
+ }
1843
+ ]
1844
+ },
1805
1845
  {
1806
1846
  "name": "reach_listProfilesV1",
1807
1847
  "description": "This endpoint returns all profiles available to the client, including their basic information.",
@@ -3580,7 +3620,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
3580
3620
 
3581
3621
  /**
3582
3622
  * MCP Server for Hostinger API
3583
- * Generated from OpenAPI spec version 0.11.3
3623
+ * Generated from OpenAPI spec version 0.11.4
3584
3624
  */
3585
3625
  class MCPServer {
3586
3626
  private server: Server;
@@ -3602,7 +3642,7 @@ class MCPServer {
3602
3642
  this.server = new Server(
3603
3643
  {
3604
3644
  name: "hostinger-api-mcp",
3605
- version: "0.1.25",
3645
+ version: "0.1.28",
3606
3646
  },
3607
3647
  {
3608
3648
  capabilities: {
@@ -3627,7 +3667,7 @@ class MCPServer {
3627
3667
  });
3628
3668
  }
3629
3669
 
3630
- headers['User-Agent'] = 'hostinger-mcp-server/0.1.25';
3670
+ headers['User-Agent'] = 'hostinger-mcp-server/0.1.28';
3631
3671
 
3632
3672
  return headers;
3633
3673
  }
@@ -3877,7 +3917,9 @@ class MCPServer {
3877
3917
 
3878
3918
  const requestHeaders: Record<string, string> = {
3879
3919
  'X-Auth': authToken,
3880
- 'X-Auth-Rest': authRestToken
3920
+ 'X-Auth-Rest': authRestToken,
3921
+ 'upload-length': stats.size.toString(),
3922
+ 'upload-offset': '0'
3881
3923
  };
3882
3924
 
3883
3925
  try {
package/types.d.ts CHANGED
@@ -1119,6 +1119,39 @@ Segments are used to organize and group contacts based on specific criteria.
1119
1119
  response: any; // Response structure will depend on the API
1120
1120
  };
1121
1121
 
1122
+ /**
1123
+ * Create a new contact in the email marketing system.
1124
+
1125
+ This endpoint allows you to create a new contact with basic information like name, email, and surname.
1126
+
1127
+ If double opt-in is enabled, the contact will be created with a pending status and a confirmation email will be sent.
1128
+ */
1129
+ "reach_createANewProfileContactV1": {
1130
+ params: {
1131
+ /**
1132
+ * Profile uuid parameter
1133
+ */
1134
+ profileUuid: string;
1135
+ /**
1136
+ * email parameter
1137
+ */
1138
+ email: string;
1139
+ /**
1140
+ * name parameter
1141
+ */
1142
+ name?: string;
1143
+ /**
1144
+ * surname parameter
1145
+ */
1146
+ surname?: string;
1147
+ /**
1148
+ * note parameter
1149
+ */
1150
+ note?: string;
1151
+ };
1152
+ response: any; // Response structure will depend on the API
1153
+ };
1154
+
1122
1155
  /**
1123
1156
  * This endpoint returns all profiles available to the client, including their basic information.
1124
1157
  */