sitebay-mcp 0.1.1751179164__py3-none-any.whl
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.
- sitebay_mcp/__init__.py +15 -0
- sitebay_mcp/auth.py +54 -0
- sitebay_mcp/client.py +359 -0
- sitebay_mcp/exceptions.py +45 -0
- sitebay_mcp/resources.py +171 -0
- sitebay_mcp/server.py +909 -0
- sitebay_mcp/tools/__init__.py +5 -0
- sitebay_mcp/tools/operations.py +285 -0
- sitebay_mcp/tools/sites.py +248 -0
- sitebay_mcp-0.1.1751179164.dist-info/METADATA +271 -0
- sitebay_mcp-0.1.1751179164.dist-info/RECORD +14 -0
- sitebay_mcp-0.1.1751179164.dist-info/WHEEL +4 -0
- sitebay_mcp-0.1.1751179164.dist-info/entry_points.txt +2 -0
- sitebay_mcp-0.1.1751179164.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,271 @@
|
|
1
|
+
Metadata-Version: 2.4
|
2
|
+
Name: sitebay-mcp
|
3
|
+
Version: 0.1.1751179164
|
4
|
+
Summary: SiteBay MCP Server - WordPress hosting management through Claude Code
|
5
|
+
Author-email: SiteBay <support@sitebay.org>
|
6
|
+
License-File: LICENSE
|
7
|
+
Requires-Python: >=3.10
|
8
|
+
Requires-Dist: fastmcp>=2.9.2
|
9
|
+
Requires-Dist: httpx>=0.27.0
|
10
|
+
Requires-Dist: pydantic>=2.0.0
|
11
|
+
Requires-Dist: python-dotenv>=1.0.0
|
12
|
+
Requires-Dist: typing-extensions>=4.0.0
|
13
|
+
Provides-Extra: dev
|
14
|
+
Requires-Dist: black>=23.0.0; extra == 'dev'
|
15
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
16
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
17
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
18
|
+
Description-Content-Type: text/markdown
|
19
|
+
|
20
|
+
# SiteBay MCP Server
|
21
|
+
[](https://smithery.ai/server/@sitebay/sitebay-mcp)
|
22
|
+
|
23
|
+
A Model Context Protocol (MCP) server that provides Claude Code users with direct access to the SiteBay WordPress hosting platform. Manage your hosted WordPress sites, execute server commands, handle staging environments, and more through natural language interactions with the SiteBay cloud infrastructure.
|
24
|
+
|
25
|
+
## Features
|
26
|
+
|
27
|
+
### 🌐 Site Management
|
28
|
+
- List all your hosted WordPress sites
|
29
|
+
- Get detailed site information (status, region, PHP version, etc.)
|
30
|
+
- Create new WordPress sites using SiteBay's templates
|
31
|
+
- Update site configurations (PHP version, admin credentials, etc.)
|
32
|
+
- Delete sites with safety confirmations
|
33
|
+
|
34
|
+
### ⚡ Site Operations
|
35
|
+
- Execute shell commands and WP-CLI commands on SiteBay servers
|
36
|
+
- Edit files in wp-content directory on your hosted sites
|
37
|
+
- View site events and deployment logs from SiteBay infrastructure
|
38
|
+
- Manage external path configurations for URL proxying through SiteBay
|
39
|
+
|
40
|
+
### 🛠 Advanced Features
|
41
|
+
- Staging site management on SiteBay infrastructure (coming soon)
|
42
|
+
- Point-in-time backup restores from SiteBay's backup system (coming soon)
|
43
|
+
- Team management for collaborative hosting (coming soon)
|
44
|
+
- WordPress/Shopify/PostHog API proxy services through SiteBay (coming soon)
|
45
|
+
|
46
|
+
### 🗺 Helper Tools
|
47
|
+
- List available SiteBay hosting regions
|
48
|
+
- Browse SiteBay's WordPress templates
|
49
|
+
- Account and billing information (coming soon)
|
50
|
+
|
51
|
+
## Installation
|
52
|
+
|
53
|
+
### Installing via Smithery
|
54
|
+
|
55
|
+
To install SiteBay MCP for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@sitebay/sitebay-mcp):
|
56
|
+
|
57
|
+
```bash
|
58
|
+
npx -y @smithery/cli install @sitebay/sitebay-mcp --client claude
|
59
|
+
```
|
60
|
+
|
61
|
+
### Using uvx (Recommended)
|
62
|
+
|
63
|
+
```bash
|
64
|
+
# Install and run directly with uvx
|
65
|
+
uvx sitebay-mcp
|
66
|
+
|
67
|
+
# Or install for repeated use
|
68
|
+
uv tool install sitebay-mcp
|
69
|
+
sitebay-mcp
|
70
|
+
```
|
71
|
+
|
72
|
+
### Using pip
|
73
|
+
|
74
|
+
```bash
|
75
|
+
# Install from PyPI (when published)
|
76
|
+
pip install sitebay-mcp
|
77
|
+
|
78
|
+
# Or install from source
|
79
|
+
git clone https://github.com/your-username/sitebay-mcp.git
|
80
|
+
cd sitebay-mcp
|
81
|
+
pip install -e .
|
82
|
+
```
|
83
|
+
|
84
|
+
## Configuration
|
85
|
+
|
86
|
+
### 1. Get Your SiteBay API Token
|
87
|
+
|
88
|
+
1. Log in to your [SiteBay account](https://my.sitebay.org)
|
89
|
+
2. Navigate to Settings in your account dashboard
|
90
|
+
3. Generate a new API token
|
91
|
+
4. Copy the token for use in configuration
|
92
|
+
|
93
|
+
### 2. Configure Claude Desktop
|
94
|
+
|
95
|
+
Add the following to your Claude Desktop configuration file:
|
96
|
+
|
97
|
+
#### For uvx installation:
|
98
|
+
```json
|
99
|
+
{
|
100
|
+
"mcpServers": {
|
101
|
+
"sitebay": {
|
102
|
+
"command": "uvx",
|
103
|
+
"args": ["sitebay-mcp"],
|
104
|
+
"env": {
|
105
|
+
"SITEBAY_API_TOKEN": "your_api_token_here"
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
```
|
111
|
+
|
112
|
+
#### For pip installation:
|
113
|
+
```json
|
114
|
+
{
|
115
|
+
"mcpServers": {
|
116
|
+
"sitebay": {
|
117
|
+
"command": "python",
|
118
|
+
"args": ["-m", "sitebay_mcp.server"],
|
119
|
+
"env": {
|
120
|
+
"SITEBAY_API_TOKEN": "your_api_token_here"
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
```
|
126
|
+
|
127
|
+
### 3. Claude Desktop Configuration File Locations
|
128
|
+
|
129
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
130
|
+
- **Windows**: `%APPDATA%\\Claude\\claude_desktop_config.json`
|
131
|
+
- **Linux**: `~/.config/claude/claude_desktop_config.json`
|
132
|
+
|
133
|
+
## Usage Examples
|
134
|
+
|
135
|
+
### Creating a New WordPress Site
|
136
|
+
|
137
|
+
```
|
138
|
+
Claude: Create a new WordPress site called "myblog.example.com" with the title "My Amazing Blog", admin username "admin", password "SecurePass123!", and email "me@example.com"
|
139
|
+
```
|
140
|
+
|
141
|
+
### Managing Existing Sites
|
142
|
+
|
143
|
+
```
|
144
|
+
Claude: List all my WordPress sites and show their current status
|
145
|
+
|
146
|
+
Claude: Get detailed information about myblog.example.com
|
147
|
+
|
148
|
+
Claude: Update the PHP version for myblog.example.com to 8.2
|
149
|
+
```
|
150
|
+
|
151
|
+
### Executing Commands
|
152
|
+
|
153
|
+
```
|
154
|
+
Claude: Run "wp plugin list" on myblog.example.com to see what plugins are installed on the SiteBay server
|
155
|
+
|
156
|
+
Claude: Execute "wp search-replace 'http://old-domain.com' 'https://new-domain.com'" on myblog.example.com through SiteBay
|
157
|
+
|
158
|
+
Claude: Check the disk usage on myblog.example.com with "df -h" on the SiteBay server
|
159
|
+
```
|
160
|
+
|
161
|
+
### File Management
|
162
|
+
|
163
|
+
```
|
164
|
+
Claude: Edit the style.css file in my active theme on myblog.example.com hosted on SiteBay
|
165
|
+
|
166
|
+
Claude: Show me recent events and deployment logs for myblog.example.com from SiteBay
|
167
|
+
```
|
168
|
+
|
169
|
+
### External Paths (URL Proxying)
|
170
|
+
|
171
|
+
```
|
172
|
+
Claude: Create an external path "/api" on myblog.example.com that proxies to "https://my-external-api.com" through SiteBay
|
173
|
+
|
174
|
+
Claude: List all external path configurations for myblog.example.com on SiteBay
|
175
|
+
```
|
176
|
+
|
177
|
+
### Getting Information
|
178
|
+
|
179
|
+
```
|
180
|
+
Claude: Show me all available SiteBay hosting regions
|
181
|
+
|
182
|
+
Claude: List all the WordPress templates available on SiteBay for new sites
|
183
|
+
```
|
184
|
+
|
185
|
+
## Available Tools
|
186
|
+
|
187
|
+
### Site Management
|
188
|
+
- `sitebay_list_sites` - List all WordPress sites hosted on SiteBay
|
189
|
+
- `sitebay_get_site` - Get detailed information about a hosted site
|
190
|
+
- `sitebay_create_site` - Create a new WordPress site on SiteBay infrastructure
|
191
|
+
- `sitebay_update_site` - Update site configuration on SiteBay servers
|
192
|
+
- `sitebay_delete_site` - Delete a hosted site (with confirmation)
|
193
|
+
|
194
|
+
### Site Operations
|
195
|
+
- `sitebay_site_shell_command` - Execute shell/WP-CLI commands on SiteBay servers
|
196
|
+
- `sitebay_site_edit_file` - Edit files in wp-content on SiteBay-hosted sites
|
197
|
+
- `sitebay_site_get_events` - View site events and deployment logs from SiteBay
|
198
|
+
- `sitebay_site_external_path_list` - List external path configs on SiteBay
|
199
|
+
- `sitebay_site_external_path_create` - Create external path through SiteBay proxy
|
200
|
+
|
201
|
+
### Helper Tools
|
202
|
+
- `sitebay_list_regions` - List available SiteBay hosting regions
|
203
|
+
- `sitebay_list_templates` - List WordPress templates available on SiteBay
|
204
|
+
|
205
|
+
## Security Notes
|
206
|
+
|
207
|
+
- Your SiteBay API token is stored securely in environment variables
|
208
|
+
- All communications with SiteBay infrastructure use HTTPS encryption
|
209
|
+
- API tokens can be revoked at any time from your SiteBay account dashboard
|
210
|
+
- The MCP server runs locally and only proxies requests to SiteBay - no data is stored locally
|
211
|
+
|
212
|
+
## Error Handling
|
213
|
+
|
214
|
+
The server provides clear error messages for common issues:
|
215
|
+
|
216
|
+
- **Authentication errors**: Invalid or expired API tokens
|
217
|
+
- **Site not found**: When referencing non-existent sites
|
218
|
+
- **Validation errors**: Invalid parameters or missing required fields
|
219
|
+
- **Network errors**: Connection issues with SiteBay API
|
220
|
+
|
221
|
+
## Troubleshooting
|
222
|
+
|
223
|
+
### Authentication Issues
|
224
|
+
|
225
|
+
1. Verify your API token is correct
|
226
|
+
2. Check that the token is properly set in the environment variable
|
227
|
+
3. Ensure the token hasn't expired
|
228
|
+
4. Try regenerating the token from your SiteBay account
|
229
|
+
|
230
|
+
### Connection Issues
|
231
|
+
|
232
|
+
1. Check your internet connection
|
233
|
+
2. Verify SiteBay service status
|
234
|
+
3. Check firewall settings
|
235
|
+
4. Try restarting Claude Desktop
|
236
|
+
|
237
|
+
### Tool Not Found
|
238
|
+
|
239
|
+
1. Restart Claude Desktop after configuration changes
|
240
|
+
2. Verify the configuration file is in the correct location
|
241
|
+
3. Check the JSON syntax is valid
|
242
|
+
4. Ensure uvx or Python is properly installed
|
243
|
+
|
244
|
+
## Contributing
|
245
|
+
|
246
|
+
1. Fork the repository
|
247
|
+
2. Create a feature branch
|
248
|
+
3. Make your changes
|
249
|
+
4. Add tests for new functionality
|
250
|
+
5. Ensure all tests pass and code is properly formatted
|
251
|
+
6. Submit a pull request
|
252
|
+
|
253
|
+
## License
|
254
|
+
|
255
|
+
This project is licensed under the MIT License - see the LICENSE file for details.
|
256
|
+
|
257
|
+
## Support
|
258
|
+
|
259
|
+
- **Issues**: GitHub Issues
|
260
|
+
- **Documentation**: [SiteBay API Docs](https://my.sitebay.org/f/api/v1/docs)
|
261
|
+
- **SiteBay Support**: [SiteBay Help Center](https://sitebay.org/support)
|
262
|
+
|
263
|
+
## Changelog
|
264
|
+
|
265
|
+
### v0.1.0 (2024-01-XX)
|
266
|
+
- Initial release
|
267
|
+
- Site management tools
|
268
|
+
- Shell command execution
|
269
|
+
- File editing capabilities
|
270
|
+
- External path management
|
271
|
+
- Region and template listing
|
@@ -0,0 +1,14 @@
|
|
1
|
+
sitebay_mcp/__init__.py,sha256=RvWonHPlNJwFvYioSwHvLLRCuvmH0h6nmOR2rB95HKc,386
|
2
|
+
sitebay_mcp/auth.py,sha256=idUbSdtIAMqrSLnzZ17VmhxLHox0SA81cb2ks2YrxUU,1739
|
3
|
+
sitebay_mcp/client.py,sha256=MzEje2tpK0SIlf_znYtaQ2R6V-kdgoEuaO3KIExJFVU,14597
|
4
|
+
sitebay_mcp/exceptions.py,sha256=vfg2-n0rAe3y7icBVt0XP6CK7esYzgMo8WXOTC5Iy4U,1067
|
5
|
+
sitebay_mcp/resources.py,sha256=KaKhunW61HoXyvWdJw_dtW5ARypZCWDwqIQVi2jUwzo,5491
|
6
|
+
sitebay_mcp/server.py,sha256=KDJTK_1BYzFz7n6jnEceSIck55a-wPfMc8H0ZeJ2On8,29344
|
7
|
+
sitebay_mcp/tools/__init__.py,sha256=5QxQGl_HgkH-7uFqY3puZmTqeVQkE-yxym43EcRr6zc,108
|
8
|
+
sitebay_mcp/tools/operations.py,sha256=Nus863sqREI_V9OPHOuiO-FOMz6u6MtLcr04LNVcFdk,8797
|
9
|
+
sitebay_mcp/tools/sites.py,sha256=R6SlMr9qdtWnYZ2F0FhoX2cmm-KIS7I1wmCWWjWFMsU,8345
|
10
|
+
sitebay_mcp-0.1.1751179164.dist-info/METADATA,sha256=xY8TotcCaUPXuk0b4qWfjRj3uPzYJNjXuilhNwpbxks,8161
|
11
|
+
sitebay_mcp-0.1.1751179164.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
12
|
+
sitebay_mcp-0.1.1751179164.dist-info/entry_points.txt,sha256=kOW3HHmOw1mAqzbDliyWzaHwS-tAwISRFdQHBa9QvRc,56
|
13
|
+
sitebay_mcp-0.1.1751179164.dist-info/licenses/LICENSE,sha256=PjkyMZfBImLXpO5eKb_sI__W1JMf1jL51n1O7H4a1I0,1062
|
14
|
+
sitebay_mcp-0.1.1751179164.dist-info/RECORD,,
|
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2025 mhand
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|