sitebay-mcp 0.1.1751196041__tar.gz → 0.1.1751285665__tar.gz
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-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/PKG-INFO +1 -1
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/pyproject.toml +1 -1
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/client.py +12 -2
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/.flake8 +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/.github/workflows/python-pytest.yml +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/.github/workflows/testpypi.yaml +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/.gitignore +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/Dockerfile +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/LICENSE +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/PLAN.md +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/README.md +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/example-config.json +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/smithery.yaml +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/__init__.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/auth.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/exceptions.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/resources.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/server.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/tools/__init__.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/tools/operations.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/tools/sites.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/tests/unit/__init__.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/tests/unit/test_auth.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/tests/unit/test_client.py +0 -0
- {sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/uv.lock +0 -0
@@ -233,11 +233,21 @@ class SiteBayClient:
|
|
233
233
|
return await self._request("DELETE", endpoint, params=params)
|
234
234
|
|
235
235
|
# Site Management Methods
|
236
|
-
async def list_sites(self, team_id: Optional[str] = None) -> List[Dict[str, Any]]:
|
236
|
+
async def list_sites(self, team_id: Optional[str] = None) -> Union[List[Dict[str, Any]], str]:
|
237
237
|
"""List all sites for the user"""
|
238
238
|
params = {"team_id": team_id} if team_id else None
|
239
239
|
response = await self.get("/site", params=params)
|
240
|
-
|
240
|
+
|
241
|
+
# Handle case where API returns error as string
|
242
|
+
if isinstance(response, str):
|
243
|
+
return response
|
244
|
+
|
245
|
+
# Handle normal dict response
|
246
|
+
if isinstance(response, dict):
|
247
|
+
return response.get("results", [])
|
248
|
+
|
249
|
+
# Handle unexpected response format
|
250
|
+
return f"Unexpected response format: {type(response).__name__}"
|
241
251
|
|
242
252
|
async def get_site(self, fqdn: str) -> Dict[str, Any]:
|
243
253
|
"""Get details for a specific site"""
|
File without changes
|
{sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/.github/workflows/python-pytest.yml
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{sitebay_mcp-0.1.1751196041 → sitebay_mcp-0.1.1751285665}/src/sitebay_mcp/tools/operations.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|