@socialai/website-mcp 1.0.0 → 1.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/README.md +228 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# @socialai/website-mcp
|
|
2
|
+
|
|
3
|
+
> MCP server for **Social AI Website Builder** — let Claude, Codex, Cursor, VS Code Copilot and any MCP-compatible AI tool create and manage your websites by calling the Social AI API directly.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@socialai/website-mcp)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## What it does
|
|
11
|
+
|
|
12
|
+
Connect your AI coding tool to Social AI and let it:
|
|
13
|
+
|
|
14
|
+
- **Create full websites from templates** — "Build me a streetwear store"
|
|
15
|
+
- **Generate and fill page content** — "Write the About page for my coffee brand"
|
|
16
|
+
- **Manage products** — bulk import via CSV, add variants, update stock
|
|
17
|
+
- **Configure payments by country** — auto-selects the right provider (Paystack for ZA, Stripe for US/UK, etc.)
|
|
18
|
+
- **Upload images** — host product photos from URLs or local files
|
|
19
|
+
- **Set contact details, newsletter, language** — all from within the AI chat
|
|
20
|
+
- **Publish live** — one tool call and the site goes live on your subdomain
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
## Quick start
|
|
25
|
+
|
|
26
|
+
### 1. Get an API key
|
|
27
|
+
|
|
28
|
+
Sign up at [socialai.one](https://socialai.one) → **Settings → API Keys** → Generate key.
|
|
29
|
+
|
|
30
|
+
### 2. Add to your AI tool
|
|
31
|
+
|
|
32
|
+
**Claude Code** (`~/.claude/settings.json`):
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"mcpServers": {
|
|
36
|
+
"socialai-websites": {
|
|
37
|
+
"command": "npx",
|
|
38
|
+
"args": ["-y", "@socialai/website-mcp"],
|
|
39
|
+
"env": {
|
|
40
|
+
"SOCIALAI_API_KEY": "your_api_key_here",
|
|
41
|
+
"SOCIALAI_API_URL": "https://socialai.one"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Claude Desktop** (File → Settings → Developer → Edit Config):
|
|
49
|
+
```json
|
|
50
|
+
{
|
|
51
|
+
"mcpServers": {
|
|
52
|
+
"socialai-websites": {
|
|
53
|
+
"command": "npx",
|
|
54
|
+
"args": ["-y", "@socialai/website-mcp"],
|
|
55
|
+
"env": {
|
|
56
|
+
"SOCIALAI_API_KEY": "your_api_key_here",
|
|
57
|
+
"SOCIALAI_API_URL": "https://socialai.one"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Cursor** (`.cursor/mcp.json`):
|
|
65
|
+
```json
|
|
66
|
+
{
|
|
67
|
+
"mcpServers": {
|
|
68
|
+
"socialai-websites": {
|
|
69
|
+
"command": "npx",
|
|
70
|
+
"args": ["-y", "@socialai/website-mcp"],
|
|
71
|
+
"env": {
|
|
72
|
+
"SOCIALAI_API_KEY": "your_api_key_here"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
**VS Code / GitHub Copilot** (`.vscode/settings.json`):
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"mcp": {
|
|
83
|
+
"servers": {
|
|
84
|
+
"socialai-websites": {
|
|
85
|
+
"type": "stdio",
|
|
86
|
+
"command": "npx",
|
|
87
|
+
"args": ["-y", "@socialai/website-mcp"],
|
|
88
|
+
"env": {
|
|
89
|
+
"SOCIALAI_API_KEY": "your_api_key_here"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
**Windsurf / Codeium**: Same JSON structure as Claude Desktop, added to Windsurf's MCP settings.
|
|
98
|
+
|
|
99
|
+
**OpenAI Codex** (`~/.codex/config.json`):
|
|
100
|
+
```json
|
|
101
|
+
{
|
|
102
|
+
"mcpServers": {
|
|
103
|
+
"socialai-websites": {
|
|
104
|
+
"command": "npx",
|
|
105
|
+
"args": ["-y", "@socialai/website-mcp"],
|
|
106
|
+
"env": {
|
|
107
|
+
"SOCIALAI_API_KEY": "your_api_key_here"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### 3. Restart your AI tool — then try it
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
"Create a coffee shop website using the best matching template,
|
|
118
|
+
set the country to South Africa, add 5 products and publish it."
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Available tools
|
|
124
|
+
|
|
125
|
+
### Sites
|
|
126
|
+
| Tool | Description |
|
|
127
|
+
|------|-------------|
|
|
128
|
+
| `list_templates` | Browse all built-in shop & website templates |
|
|
129
|
+
| `create_website_from_template` | Fork a template into a new project (seeds demo products) |
|
|
130
|
+
| `create_website` | Create a blank website or shop |
|
|
131
|
+
| `list_websites` | List all your website projects |
|
|
132
|
+
| `get_website` | Get project details + pages |
|
|
133
|
+
| `update_website` | Update name, subdomain, SEO |
|
|
134
|
+
| `set_domain` | Set subdomain or custom domain |
|
|
135
|
+
| `publish_website` | Push draft live at `*.socialai.one` |
|
|
136
|
+
| `delete_website` | Permanently delete a project |
|
|
137
|
+
|
|
138
|
+
### Pages & Content
|
|
139
|
+
| Tool | Description |
|
|
140
|
+
|------|-------------|
|
|
141
|
+
| `list_pages` | List all pages |
|
|
142
|
+
| `get_page` | Get a page with its full block content |
|
|
143
|
+
| `create_page` | Add a page (About, T&C, Contact…) |
|
|
144
|
+
| `update_page_blocks` | Replace all blocks on a page |
|
|
145
|
+
| `delete_page` | Delete a page |
|
|
146
|
+
| `generate_content` | AI-generate blocks, copy or a full page layout |
|
|
147
|
+
| `get_theme` | Read colour/font theme |
|
|
148
|
+
| `apply_theme` | Update colours and fonts |
|
|
149
|
+
|
|
150
|
+
### Store / Shop
|
|
151
|
+
| Tool | Description |
|
|
152
|
+
|------|-------------|
|
|
153
|
+
| `list_products` | List products |
|
|
154
|
+
| `add_product` | Add a product |
|
|
155
|
+
| `update_product` | Edit price, stock, images, status |
|
|
156
|
+
| `delete_product` | Delete a product |
|
|
157
|
+
| `list_variants` | List size/colour/SKU variants |
|
|
158
|
+
| `add_variants` | Add variants to a product |
|
|
159
|
+
| `clear_variants` | Remove all variants |
|
|
160
|
+
| `list_categories` | List product categories |
|
|
161
|
+
| `export_products_csv` | Export catalogue as CSV |
|
|
162
|
+
| `import_products_csv` | Bulk-import/update up to 500 products from CSV |
|
|
163
|
+
| `get_payment_settings` | Read payment provider + country-specific recommendations |
|
|
164
|
+
| `configure_payments` | Set provider, country, currency (auto-fills currency from country) |
|
|
165
|
+
|
|
166
|
+
### Site Settings
|
|
167
|
+
| Tool | Description |
|
|
168
|
+
|------|-------------|
|
|
169
|
+
| `get_site_settings` | Read contact email, language, newsletter config |
|
|
170
|
+
| `configure_site_settings` | Set contact email, phone, language, newsletter provider |
|
|
171
|
+
|
|
172
|
+
### Media
|
|
173
|
+
| Tool | Description |
|
|
174
|
+
|------|-------------|
|
|
175
|
+
| `upload_image` | Host an image from a URL |
|
|
176
|
+
| `upload_image_file` | Upload a base64-encoded local image |
|
|
177
|
+
|
|
178
|
+
### Reporting
|
|
179
|
+
| Tool | Description |
|
|
180
|
+
|------|-------------|
|
|
181
|
+
| `report_issue` | Report a bug or unexpected behaviour to the Social AI team |
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Country-aware payments
|
|
186
|
+
|
|
187
|
+
Setting the country auto-fills currency and returns the recommended payment providers for that market:
|
|
188
|
+
|
|
189
|
+
```
|
|
190
|
+
"Set up this site for the United States"
|
|
191
|
+
→ configure_payments({ country: "US" })
|
|
192
|
+
→ Returns: currency=USD, recommendedProviders=["stripe","paypal","square"]
|
|
193
|
+
|
|
194
|
+
"Set up this site for South Africa"
|
|
195
|
+
→ configure_payments({ country: "ZA" })
|
|
196
|
+
→ Returns: currency=ZAR, recommendedProviders=["paystack","payfast","ozow"]
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
Supported countries: ZA, NG, KE, GH, EG, US, CA, BR, MX, GB, DE, FR, AU, AE, IN + more.
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## Environment variables
|
|
204
|
+
|
|
205
|
+
| Variable | Required | Description |
|
|
206
|
+
|----------|----------|-------------|
|
|
207
|
+
| `SOCIALAI_API_KEY` | ✅ | Your Social AI API key (from Settings → API Keys) |
|
|
208
|
+
| `SOCIALAI_API_URL` | Optional | API base URL. Default: `https://socialai.one` |
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## Local development
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
git clone https://github.com/Buyup1/SocialAI2
|
|
216
|
+
cd SocialAI2/mcp
|
|
217
|
+
npm install
|
|
218
|
+
npm run build
|
|
219
|
+
|
|
220
|
+
# Test against your local dev server
|
|
221
|
+
SOCIALAI_API_KEY=your_key SOCIALAI_API_URL=http://localhost:3000 node test-local.mjs
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## License
|
|
227
|
+
|
|
228
|
+
MIT © Social AI
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@socialai/website-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server for Social AI Website Builder — create and manage websites via Claude Code, OpenAI Codex, and any MCP-compatible AI tool",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"socialai-mcp": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"main": "dist/index.js",
|
|
10
|
-
"files": ["dist"],
|
|
10
|
+
"files": ["dist", "README.md"],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"dev": "tsc --watch",
|