mcphub-server 3.6.0__tar.gz → 3.7.0__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.
- {mcphub_server-3.6.0/mcphub_server.egg-info → mcphub_server-3.7.0}/PKG-INFO +9 -6
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/README.md +8 -5
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/site_api.py +12 -1
- {mcphub_server-3.6.0 → mcphub_server-3.7.0/mcphub_server.egg-info}/PKG-INFO +9 -6
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/mcphub_server.egg-info/SOURCES.txt +10 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/__init__.py +3 -0
- mcphub_server-3.7.0/plugins/coolify/__init__.py +5 -0
- mcphub_server-3.7.0/plugins/coolify/client.py +269 -0
- mcphub_server-3.7.0/plugins/coolify/handlers/__init__.py +13 -0
- mcphub_server-3.7.0/plugins/coolify/handlers/applications.py +860 -0
- mcphub_server-3.7.0/plugins/coolify/handlers/deployments.py +162 -0
- mcphub_server-3.7.0/plugins/coolify/handlers/servers.py +286 -0
- mcphub_server-3.7.0/plugins/coolify/plugin.py +106 -0
- mcphub_server-3.7.0/plugins/coolify/schemas/__init__.py +1 -0
- mcphub_server-3.7.0/plugins/coolify/schemas/common.py +55 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/pyproject.toml +1 -1
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/server.py +18 -0
- mcphub_server-3.7.0/tests/test_coolify.py +452 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/LICENSE +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/admin_utils.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/api_keys.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/audit_log.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/config_snippets.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/context.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/dashboard/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/dashboard/auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/dashboard/routes.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/database.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/encryption.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/endpoints/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/endpoints/config.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/endpoints/factory.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/endpoints/middleware.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/endpoints/registry.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/health.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/i18n.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/middleware/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/client_registry.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/csrf.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/pkce.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/schemas.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/server.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/storage.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/oauth/token_manager.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/plugin_visibility.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/rate_limiter.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/settings.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/site_manager.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/base.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/404.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/api-keys/list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/audit-logs/list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/auth-login.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/base.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/connect.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/health/index.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/health/projects-partial.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/index.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/login.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/oauth-clients/list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/partials/head_assets.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/profile.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/projects/detail.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/projects/list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/service.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/services_list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/settings/index.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/sites/add.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/sites/edit.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/sites/list.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/dashboard/user-oauth-clients.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/oauth/authorize.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/templates/oauth/error.html +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/tool_generator.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/tool_registry.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/user_auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/user_endpoints.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/core/user_keys.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/mcphub_server.egg-info/dependency_links.txt +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/mcphub_server.egg-info/entry_points.txt +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/mcphub_server.egg-info/requires.txt +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/mcphub_server.egg-info/top_level.txt +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/databases.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/documents.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/functions.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/messaging.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/storage.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/teams.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/handlers/users.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/appwrite/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/base.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/access.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/automation.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/collections.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/content.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/dashboards.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/files.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/items.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/handlers/users.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/directus/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/issues.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/pull_requests.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/repositories.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/users.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/handlers/webhooks.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/common.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/issue.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/pull_request.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/repository.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/user.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/gitea/schemas/webhook.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/credentials.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/executions.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/projects.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/tags.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/users.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/variables.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/handlers/workflows.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/n8n/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/clients.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/events.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/export.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/profiles.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/projects.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/reports.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/handlers/utils.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/openpanel/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/admin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/database.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/functions.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/storage.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/supabase/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/woocommerce/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/woocommerce/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/client.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/comments.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/coupons.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/customers.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/media.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/menus.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/orders.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/posts.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/products.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/reports.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/seo.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/site.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/taxonomy.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/users.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/handlers/wp_cli.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/plugin_old_backup.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/common.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/media.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/order.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/post.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/product.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/schemas/seo.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress/wp_cli.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/handlers/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/handlers/bulk.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/handlers/database.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/handlers/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/schemas/__init__.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/schemas/bulk.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/schemas/database.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/plugins/wordpress_advanced/schemas/system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/setup.cfg +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_admin_system.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_api_keys.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_auth_logic.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_config_snippets.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_dashboard.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_database.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_dynamic_endpoints_integration.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_encryption.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_f3_admin_stats.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_f3_last_tested.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_f3_service_pages.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_gitea_plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_basic_auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_client_registry.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_integration.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_pkce.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_resource.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_revoke.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_schemas.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_storage.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_oauth_token_manager.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_openpanel_plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_plugin_visibility.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_rate_limiter.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_site_api.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_site_manager.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_tenant_isolation.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_tool_registry.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_user_auth.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_user_endpoints.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_user_keys.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_woocommerce_plugin.py +0 -0
- {mcphub_server-3.6.0 → mcphub_server-3.7.0}/tests/test_wordpress_plugin.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcphub-server
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7.0
|
|
4
4
|
Summary: AI-native management hub for WordPress, WooCommerce, and self-hosted services via Model Context Protocol (MCP)
|
|
5
5
|
Author-email: MCP Hub <contact@mcphub.dev>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -62,8 +62,8 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
62
62
|
[](https://www.python.org/)
|
|
63
63
|
[](https://pypi.org/project/mcphub-server/)
|
|
64
64
|
[](https://hub.docker.com/r/airano/mcphub)
|
|
65
|
-
[]()
|
|
66
|
+
[]()
|
|
67
67
|
[](https://github.com/airano-ir/mcphub/actions/workflows/ci.yml)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -74,7 +74,7 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
74
74
|
|
|
75
75
|
WordPress powers 43% of the web. WooCommerce runs 36% of online stores. Yet **no MCP server existed** for managing them through AI — until now.
|
|
76
76
|
|
|
77
|
-
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
77
|
+
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and 8 other self-hosted services through any AI assistant. Instead of clicking through dashboards, just tell your AI what to do:
|
|
78
78
|
|
|
79
79
|
> *"Update the SEO meta description for all WooCommerce products that don't have one"*
|
|
80
80
|
>
|
|
@@ -111,8 +111,9 @@ MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
|
111
111
|
| **OpenPanel** | 42 | Events, export, insights, profiles, projects, system |
|
|
112
112
|
| **Appwrite** | 100 | Databases, auth, storage, functions, teams, messaging |
|
|
113
113
|
| **Directus** | 100 | Collections, items, users, files, flows, permissions |
|
|
114
|
+
| **Coolify** | 30 | Applications, deployments, servers, env vars, logs |
|
|
114
115
|
| **System** | 24 | Health monitoring, API keys, OAuth management, audit |
|
|
115
|
-
| **Total** | **
|
|
116
|
+
| **Total** | **596** | Constant count — scales to unlimited sites |
|
|
116
117
|
|
|
117
118
|
---
|
|
118
119
|
|
|
@@ -213,6 +214,7 @@ MASTER_API_KEY=your-secure-key-here
|
|
|
213
214
|
| OpenPanel | URL, Client ID, Client Secret | OpenPanel Dashboard → Project Settings |
|
|
214
215
|
| Appwrite | URL, API Key, Project ID | Appwrite Console → Settings → API Keys |
|
|
215
216
|
| Directus | URL, Static Token | Directus Admin → Settings |
|
|
217
|
+
| Coolify | URL, API Token | Coolify → Keys & Tokens → API tokens |
|
|
216
218
|
|
|
217
219
|
</details>
|
|
218
220
|
|
|
@@ -325,11 +327,12 @@ MCP Hub supports **Open Dynamic Client Registration** (RFC 7591). ChatGPT can au
|
|
|
325
327
|
/openpanel/mcp → OpenPanel tools (42 tools)
|
|
326
328
|
/appwrite/mcp → Appwrite tools (100 tools)
|
|
327
329
|
/directus/mcp → Directus tools (100 tools)
|
|
330
|
+
/coolify/mcp → Coolify tools (30 tools)
|
|
328
331
|
/project/{alias}/mcp → Per-project endpoint (auto-injects site)
|
|
329
332
|
/u/{user_id}/{alias}/mcp → Per-user endpoint (hosted/OAuth users)
|
|
330
333
|
```
|
|
331
334
|
|
|
332
|
-
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (
|
|
335
|
+
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (596 tools) to minimize token usage.
|
|
333
336
|
|
|
334
337
|
| Endpoint | Use Case | Tools |
|
|
335
338
|
|----------|----------|------:|
|
|
@@ -13,8 +13,8 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
13
13
|
[](https://www.python.org/)
|
|
14
14
|
[](https://pypi.org/project/mcphub-server/)
|
|
15
15
|
[](https://hub.docker.com/r/airano/mcphub)
|
|
16
|
-
[]()
|
|
17
|
+
[]()
|
|
18
18
|
[](https://github.com/airano-ir/mcphub/actions/workflows/ci.yml)
|
|
19
19
|
|
|
20
20
|
</div>
|
|
@@ -25,7 +25,7 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
25
25
|
|
|
26
26
|
WordPress powers 43% of the web. WooCommerce runs 36% of online stores. Yet **no MCP server existed** for managing them through AI — until now.
|
|
27
27
|
|
|
28
|
-
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
28
|
+
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and 8 other self-hosted services through any AI assistant. Instead of clicking through dashboards, just tell your AI what to do:
|
|
29
29
|
|
|
30
30
|
> *"Update the SEO meta description for all WooCommerce products that don't have one"*
|
|
31
31
|
>
|
|
@@ -62,8 +62,9 @@ MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
|
62
62
|
| **OpenPanel** | 42 | Events, export, insights, profiles, projects, system |
|
|
63
63
|
| **Appwrite** | 100 | Databases, auth, storage, functions, teams, messaging |
|
|
64
64
|
| **Directus** | 100 | Collections, items, users, files, flows, permissions |
|
|
65
|
+
| **Coolify** | 30 | Applications, deployments, servers, env vars, logs |
|
|
65
66
|
| **System** | 24 | Health monitoring, API keys, OAuth management, audit |
|
|
66
|
-
| **Total** | **
|
|
67
|
+
| **Total** | **596** | Constant count — scales to unlimited sites |
|
|
67
68
|
|
|
68
69
|
---
|
|
69
70
|
|
|
@@ -164,6 +165,7 @@ MASTER_API_KEY=your-secure-key-here
|
|
|
164
165
|
| OpenPanel | URL, Client ID, Client Secret | OpenPanel Dashboard → Project Settings |
|
|
165
166
|
| Appwrite | URL, API Key, Project ID | Appwrite Console → Settings → API Keys |
|
|
166
167
|
| Directus | URL, Static Token | Directus Admin → Settings |
|
|
168
|
+
| Coolify | URL, API Token | Coolify → Keys & Tokens → API tokens |
|
|
167
169
|
|
|
168
170
|
</details>
|
|
169
171
|
|
|
@@ -276,11 +278,12 @@ MCP Hub supports **Open Dynamic Client Registration** (RFC 7591). ChatGPT can au
|
|
|
276
278
|
/openpanel/mcp → OpenPanel tools (42 tools)
|
|
277
279
|
/appwrite/mcp → Appwrite tools (100 tools)
|
|
278
280
|
/directus/mcp → Directus tools (100 tools)
|
|
281
|
+
/coolify/mcp → Coolify tools (30 tools)
|
|
279
282
|
/project/{alias}/mcp → Per-project endpoint (auto-injects site)
|
|
280
283
|
/u/{user_id}/{alias}/mcp → Per-user endpoint (hosted/OAuth users)
|
|
281
284
|
```
|
|
282
285
|
|
|
283
|
-
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (
|
|
286
|
+
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (596 tools) to minimize token usage.
|
|
284
287
|
|
|
285
288
|
| Endpoint | Use Case | Tools |
|
|
286
289
|
|----------|----------|------:|
|
|
@@ -207,6 +207,15 @@ PLUGIN_CREDENTIAL_FIELDS: dict[str, list[dict[str, Any]]] = {
|
|
|
207
207
|
"hint": "Directus → Settings → User → Static Token",
|
|
208
208
|
},
|
|
209
209
|
],
|
|
210
|
+
"coolify": [
|
|
211
|
+
{
|
|
212
|
+
"name": "token",
|
|
213
|
+
"label": "API Token",
|
|
214
|
+
"type": "password",
|
|
215
|
+
"required": True,
|
|
216
|
+
"hint": "Coolify → Keys & Tokens → API tokens → Create",
|
|
217
|
+
},
|
|
218
|
+
],
|
|
210
219
|
}
|
|
211
220
|
|
|
212
221
|
# Plugin display names for UI
|
|
@@ -220,6 +229,7 @@ PLUGIN_DISPLAY_NAMES: dict[str, str] = {
|
|
|
220
229
|
"openpanel": "OpenPanel",
|
|
221
230
|
"appwrite": "Appwrite",
|
|
222
231
|
"directus": "Directus",
|
|
232
|
+
"coolify": "Coolify",
|
|
223
233
|
}
|
|
224
234
|
|
|
225
235
|
# Health check endpoints per plugin type
|
|
@@ -233,6 +243,7 @@ _HEALTH_ENDPOINTS: dict[str, dict[str, Any]] = {
|
|
|
233
243
|
"openpanel": {"path": "/healthcheck", "method": "GET"},
|
|
234
244
|
"appwrite": {"path": "/v1/health", "method": "GET"},
|
|
235
245
|
"directus": {"path": "/server/health", "method": "GET"},
|
|
246
|
+
"coolify": {"path": "/api/v1/version", "method": "GET"},
|
|
236
247
|
}
|
|
237
248
|
|
|
238
249
|
|
|
@@ -354,7 +365,7 @@ async def validate_site_connection(
|
|
|
354
365
|
elif plugin_type == "appwrite":
|
|
355
366
|
headers["X-Appwrite-Project"] = credentials.get("project_id", "")
|
|
356
367
|
headers["X-Appwrite-Key"] = credentials.get("api_key", "")
|
|
357
|
-
elif plugin_type
|
|
368
|
+
elif plugin_type in ("directus", "coolify"):
|
|
358
369
|
headers["Authorization"] = f"Bearer {credentials.get('token', '')}"
|
|
359
370
|
elif plugin_type == "openpanel":
|
|
360
371
|
headers["openpanel-client-id"] = credentials.get("client_id", "")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcphub-server
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.7.0
|
|
4
4
|
Summary: AI-native management hub for WordPress, WooCommerce, and self-hosted services via Model Context Protocol (MCP)
|
|
5
5
|
Author-email: MCP Hub <contact@mcphub.dev>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -62,8 +62,8 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
62
62
|
[](https://www.python.org/)
|
|
63
63
|
[](https://pypi.org/project/mcphub-server/)
|
|
64
64
|
[](https://hub.docker.com/r/airano/mcphub)
|
|
65
|
-
[]()
|
|
66
|
+
[]()
|
|
67
67
|
[](https://github.com/airano-ir/mcphub/actions/workflows/ci.yml)
|
|
68
68
|
|
|
69
69
|
</div>
|
|
@@ -74,7 +74,7 @@ Connect your sites, stores, repos, and databases — manage them all through Cla
|
|
|
74
74
|
|
|
75
75
|
WordPress powers 43% of the web. WooCommerce runs 36% of online stores. Yet **no MCP server existed** for managing them through AI — until now.
|
|
76
76
|
|
|
77
|
-
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
77
|
+
MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and 8 other self-hosted services through any AI assistant. Instead of clicking through dashboards, just tell your AI what to do:
|
|
78
78
|
|
|
79
79
|
> *"Update the SEO meta description for all WooCommerce products that don't have one"*
|
|
80
80
|
>
|
|
@@ -111,8 +111,9 @@ MCP Hub is the first MCP server that lets you manage WordPress, WooCommerce, and
|
|
|
111
111
|
| **OpenPanel** | 42 | Events, export, insights, profiles, projects, system |
|
|
112
112
|
| **Appwrite** | 100 | Databases, auth, storage, functions, teams, messaging |
|
|
113
113
|
| **Directus** | 100 | Collections, items, users, files, flows, permissions |
|
|
114
|
+
| **Coolify** | 30 | Applications, deployments, servers, env vars, logs |
|
|
114
115
|
| **System** | 24 | Health monitoring, API keys, OAuth management, audit |
|
|
115
|
-
| **Total** | **
|
|
116
|
+
| **Total** | **596** | Constant count — scales to unlimited sites |
|
|
116
117
|
|
|
117
118
|
---
|
|
118
119
|
|
|
@@ -213,6 +214,7 @@ MASTER_API_KEY=your-secure-key-here
|
|
|
213
214
|
| OpenPanel | URL, Client ID, Client Secret | OpenPanel Dashboard → Project Settings |
|
|
214
215
|
| Appwrite | URL, API Key, Project ID | Appwrite Console → Settings → API Keys |
|
|
215
216
|
| Directus | URL, Static Token | Directus Admin → Settings |
|
|
217
|
+
| Coolify | URL, API Token | Coolify → Keys & Tokens → API tokens |
|
|
216
218
|
|
|
217
219
|
</details>
|
|
218
220
|
|
|
@@ -325,11 +327,12 @@ MCP Hub supports **Open Dynamic Client Registration** (RFC 7591). ChatGPT can au
|
|
|
325
327
|
/openpanel/mcp → OpenPanel tools (42 tools)
|
|
326
328
|
/appwrite/mcp → Appwrite tools (100 tools)
|
|
327
329
|
/directus/mcp → Directus tools (100 tools)
|
|
330
|
+
/coolify/mcp → Coolify tools (30 tools)
|
|
328
331
|
/project/{alias}/mcp → Per-project endpoint (auto-injects site)
|
|
329
332
|
/u/{user_id}/{alias}/mcp → Per-user endpoint (hosted/OAuth users)
|
|
330
333
|
```
|
|
331
334
|
|
|
332
|
-
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (
|
|
335
|
+
**Recommendation**: Use plugin-specific endpoints instead of `/mcp` (596 tools) to minimize token usage.
|
|
333
336
|
|
|
334
337
|
| Endpoint | Use Case | Tools |
|
|
335
338
|
|----------|----------|------:|
|
|
@@ -85,6 +85,15 @@ plugins/appwrite/handlers/storage.py
|
|
|
85
85
|
plugins/appwrite/handlers/system.py
|
|
86
86
|
plugins/appwrite/handlers/teams.py
|
|
87
87
|
plugins/appwrite/handlers/users.py
|
|
88
|
+
plugins/coolify/__init__.py
|
|
89
|
+
plugins/coolify/client.py
|
|
90
|
+
plugins/coolify/plugin.py
|
|
91
|
+
plugins/coolify/handlers/__init__.py
|
|
92
|
+
plugins/coolify/handlers/applications.py
|
|
93
|
+
plugins/coolify/handlers/deployments.py
|
|
94
|
+
plugins/coolify/handlers/servers.py
|
|
95
|
+
plugins/coolify/schemas/__init__.py
|
|
96
|
+
plugins/coolify/schemas/common.py
|
|
88
97
|
plugins/directus/__init__.py
|
|
89
98
|
plugins/directus/client.py
|
|
90
99
|
plugins/directus/plugin.py
|
|
@@ -192,6 +201,7 @@ tests/test_api_keys.py
|
|
|
192
201
|
tests/test_auth.py
|
|
193
202
|
tests/test_auth_logic.py
|
|
194
203
|
tests/test_config_snippets.py
|
|
204
|
+
tests/test_coolify.py
|
|
195
205
|
tests/test_dashboard.py
|
|
196
206
|
tests/test_database.py
|
|
197
207
|
tests/test_dynamic_endpoints_integration.py
|
|
@@ -11,6 +11,7 @@ v2.3.0 (Phase G): Supabase Self-Hosted Plugin added
|
|
|
11
11
|
|
|
12
12
|
from plugins.appwrite.plugin import AppwritePlugin
|
|
13
13
|
from plugins.base import BasePlugin, PluginRegistry
|
|
14
|
+
from plugins.coolify.plugin import CoolifyPlugin
|
|
14
15
|
from plugins.directus.plugin import DirectusPlugin
|
|
15
16
|
from plugins.gitea.plugin import GiteaPlugin
|
|
16
17
|
from plugins.n8n.plugin import N8nPlugin
|
|
@@ -33,6 +34,7 @@ registry.register("supabase", SupabasePlugin)
|
|
|
33
34
|
registry.register("openpanel", OpenPanelPlugin)
|
|
34
35
|
registry.register("appwrite", AppwritePlugin)
|
|
35
36
|
registry.register("directus", DirectusPlugin)
|
|
37
|
+
registry.register("coolify", CoolifyPlugin)
|
|
36
38
|
|
|
37
39
|
__all__ = [
|
|
38
40
|
"BasePlugin",
|
|
@@ -47,4 +49,5 @@ __all__ = [
|
|
|
47
49
|
"OpenPanelPlugin",
|
|
48
50
|
"AppwritePlugin",
|
|
49
51
|
"DirectusPlugin",
|
|
52
|
+
"CoolifyPlugin",
|
|
50
53
|
]
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Coolify REST API Client
|
|
3
|
+
|
|
4
|
+
Handles all HTTP communication with Coolify REST API.
|
|
5
|
+
Separates API communication from business logic.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
import logging
|
|
9
|
+
from typing import Any
|
|
10
|
+
|
|
11
|
+
import aiohttp
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class CoolifyClient:
|
|
15
|
+
"""
|
|
16
|
+
Coolify REST API client for HTTP communication.
|
|
17
|
+
|
|
18
|
+
Handles Bearer token authentication, request formatting,
|
|
19
|
+
and error handling for all Coolify API v1 endpoints.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
def __init__(self, site_url: str, token: str):
|
|
23
|
+
"""
|
|
24
|
+
Initialize Coolify API client.
|
|
25
|
+
|
|
26
|
+
Args:
|
|
27
|
+
site_url: Coolify instance URL (e.g., https://coolify.example.com)
|
|
28
|
+
token: API token for Bearer authentication
|
|
29
|
+
"""
|
|
30
|
+
self.site_url = site_url.rstrip("/")
|
|
31
|
+
self.api_base = f"{self.site_url}/api/v1"
|
|
32
|
+
self.token = token
|
|
33
|
+
self.logger = logging.getLogger(f"CoolifyClient.{site_url}")
|
|
34
|
+
|
|
35
|
+
def _get_headers(self) -> dict[str, str]:
|
|
36
|
+
"""Get request headers with Bearer authentication."""
|
|
37
|
+
return {
|
|
38
|
+
"Authorization": f"Bearer {self.token}",
|
|
39
|
+
"Content-Type": "application/json",
|
|
40
|
+
"Accept": "application/json",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async def request(
|
|
44
|
+
self,
|
|
45
|
+
method: str,
|
|
46
|
+
endpoint: str,
|
|
47
|
+
params: dict | None = None,
|
|
48
|
+
json_data: dict | None = None,
|
|
49
|
+
) -> Any:
|
|
50
|
+
"""
|
|
51
|
+
Make authenticated request to Coolify REST API.
|
|
52
|
+
|
|
53
|
+
Args:
|
|
54
|
+
method: HTTP method (GET, POST, PATCH, DELETE)
|
|
55
|
+
endpoint: API endpoint (without base URL)
|
|
56
|
+
params: Query parameters
|
|
57
|
+
json_data: JSON body data
|
|
58
|
+
|
|
59
|
+
Returns:
|
|
60
|
+
API response (dict, list, or None)
|
|
61
|
+
|
|
62
|
+
Raises:
|
|
63
|
+
Exception: On API errors with status code and message
|
|
64
|
+
"""
|
|
65
|
+
url = f"{self.api_base}/{endpoint.lstrip('/')}"
|
|
66
|
+
|
|
67
|
+
if params:
|
|
68
|
+
params = {k: v for k, v in params.items() if v is not None}
|
|
69
|
+
|
|
70
|
+
if json_data:
|
|
71
|
+
json_data = {k: v for k, v in json_data.items() if v is not None}
|
|
72
|
+
|
|
73
|
+
self.logger.debug(f"{method} {url}")
|
|
74
|
+
|
|
75
|
+
async with (
|
|
76
|
+
aiohttp.ClientSession() as session,
|
|
77
|
+
session.request(
|
|
78
|
+
method=method,
|
|
79
|
+
url=url,
|
|
80
|
+
params=params,
|
|
81
|
+
json=json_data,
|
|
82
|
+
headers=self._get_headers(),
|
|
83
|
+
) as response,
|
|
84
|
+
):
|
|
85
|
+
self.logger.debug(f"Response status: {response.status}")
|
|
86
|
+
|
|
87
|
+
if response.status == 204:
|
|
88
|
+
return {"success": True, "message": "Operation completed successfully"}
|
|
89
|
+
|
|
90
|
+
try:
|
|
91
|
+
response_data = await response.json()
|
|
92
|
+
except Exception:
|
|
93
|
+
response_text = await response.text()
|
|
94
|
+
if response.status >= 400:
|
|
95
|
+
raise Exception(
|
|
96
|
+
f"Coolify API error (status {response.status}): {response_text}"
|
|
97
|
+
)
|
|
98
|
+
return {"success": True, "message": response_text}
|
|
99
|
+
|
|
100
|
+
if response.status >= 400:
|
|
101
|
+
error_msg = response_data.get("message", "Unknown error")
|
|
102
|
+
raise Exception(f"Coolify API error (status {response.status}): {error_msg}")
|
|
103
|
+
|
|
104
|
+
return response_data
|
|
105
|
+
|
|
106
|
+
# --- Applications ---
|
|
107
|
+
|
|
108
|
+
async def list_applications(self, tag: str | None = None) -> list[dict]:
|
|
109
|
+
"""List all applications."""
|
|
110
|
+
params = {"tag": tag} if tag else {}
|
|
111
|
+
return await self.request("GET", "applications", params=params)
|
|
112
|
+
|
|
113
|
+
async def get_application(self, uuid: str) -> dict:
|
|
114
|
+
"""Get application by UUID."""
|
|
115
|
+
return await self.request("GET", f"applications/{uuid}")
|
|
116
|
+
|
|
117
|
+
async def create_application_public(self, data: dict) -> dict:
|
|
118
|
+
"""Create application from public repository."""
|
|
119
|
+
return await self.request("POST", "applications/public", json_data=data)
|
|
120
|
+
|
|
121
|
+
async def create_application_dockerfile(self, data: dict) -> dict:
|
|
122
|
+
"""Create application from Dockerfile."""
|
|
123
|
+
return await self.request("POST", "applications/dockerfile", json_data=data)
|
|
124
|
+
|
|
125
|
+
async def create_application_docker_image(self, data: dict) -> dict:
|
|
126
|
+
"""Create application from Docker image."""
|
|
127
|
+
return await self.request("POST", "applications/dockerimage", json_data=data)
|
|
128
|
+
|
|
129
|
+
async def create_application_docker_compose(self, data: dict) -> dict:
|
|
130
|
+
"""Create application from Docker Compose."""
|
|
131
|
+
return await self.request("POST", "applications/dockercompose", json_data=data)
|
|
132
|
+
|
|
133
|
+
async def update_application(self, uuid: str, data: dict) -> dict:
|
|
134
|
+
"""Update application by UUID."""
|
|
135
|
+
return await self.request("PATCH", f"applications/{uuid}", json_data=data)
|
|
136
|
+
|
|
137
|
+
async def delete_application(
|
|
138
|
+
self,
|
|
139
|
+
uuid: str,
|
|
140
|
+
delete_configurations: bool = True,
|
|
141
|
+
delete_volumes: bool = True,
|
|
142
|
+
docker_cleanup: bool = True,
|
|
143
|
+
delete_connected_networks: bool = True,
|
|
144
|
+
) -> dict:
|
|
145
|
+
"""Delete application by UUID."""
|
|
146
|
+
params = {
|
|
147
|
+
"delete_configurations": str(delete_configurations).lower(),
|
|
148
|
+
"delete_volumes": str(delete_volumes).lower(),
|
|
149
|
+
"docker_cleanup": str(docker_cleanup).lower(),
|
|
150
|
+
"delete_connected_networks": str(delete_connected_networks).lower(),
|
|
151
|
+
}
|
|
152
|
+
return await self.request("DELETE", f"applications/{uuid}", params=params)
|
|
153
|
+
|
|
154
|
+
async def start_application(
|
|
155
|
+
self, uuid: str, force: bool = False, instant_deploy: bool = False
|
|
156
|
+
) -> dict:
|
|
157
|
+
"""Deploy/start application."""
|
|
158
|
+
params = {}
|
|
159
|
+
if force:
|
|
160
|
+
params["force"] = "true"
|
|
161
|
+
if instant_deploy:
|
|
162
|
+
params["instant_deploy"] = "true"
|
|
163
|
+
return await self.request("GET", f"applications/{uuid}/start", params=params)
|
|
164
|
+
|
|
165
|
+
async def stop_application(self, uuid: str, docker_cleanup: bool = True) -> dict:
|
|
166
|
+
"""Stop application."""
|
|
167
|
+
params = {"docker_cleanup": str(docker_cleanup).lower()}
|
|
168
|
+
return await self.request("GET", f"applications/{uuid}/stop", params=params)
|
|
169
|
+
|
|
170
|
+
async def restart_application(self, uuid: str) -> dict:
|
|
171
|
+
"""Restart application."""
|
|
172
|
+
return await self.request("GET", f"applications/{uuid}/restart")
|
|
173
|
+
|
|
174
|
+
async def get_application_logs(self, uuid: str, lines: int = 100) -> dict:
|
|
175
|
+
"""Get application logs."""
|
|
176
|
+
return await self.request("GET", f"applications/{uuid}/logs", params={"lines": lines})
|
|
177
|
+
|
|
178
|
+
# --- Application Environment Variables ---
|
|
179
|
+
|
|
180
|
+
async def list_application_envs(self, uuid: str) -> list[dict]:
|
|
181
|
+
"""List application environment variables."""
|
|
182
|
+
return await self.request("GET", f"applications/{uuid}/envs")
|
|
183
|
+
|
|
184
|
+
async def create_application_env(self, uuid: str, data: dict) -> dict:
|
|
185
|
+
"""Create application environment variable."""
|
|
186
|
+
return await self.request("POST", f"applications/{uuid}/envs", json_data=data)
|
|
187
|
+
|
|
188
|
+
async def update_application_env(self, uuid: str, data: dict) -> dict:
|
|
189
|
+
"""Update application environment variable."""
|
|
190
|
+
return await self.request("PATCH", f"applications/{uuid}/envs", json_data=data)
|
|
191
|
+
|
|
192
|
+
async def update_application_envs_bulk(self, uuid: str, data: list[dict]) -> dict:
|
|
193
|
+
"""Bulk update application environment variables."""
|
|
194
|
+
return await self.request(
|
|
195
|
+
"PATCH", f"applications/{uuid}/envs/bulk", json_data={"data": data}
|
|
196
|
+
)
|
|
197
|
+
|
|
198
|
+
async def delete_application_env(self, uuid: str, env_uuid: str) -> dict:
|
|
199
|
+
"""Delete application environment variable."""
|
|
200
|
+
return await self.request("DELETE", f"applications/{uuid}/envs/{env_uuid}")
|
|
201
|
+
|
|
202
|
+
# --- Deployments ---
|
|
203
|
+
|
|
204
|
+
async def list_deployments(self) -> list[dict]:
|
|
205
|
+
"""List running deployments."""
|
|
206
|
+
return await self.request("GET", "deployments")
|
|
207
|
+
|
|
208
|
+
async def get_deployment(self, uuid: str) -> dict:
|
|
209
|
+
"""Get deployment by UUID."""
|
|
210
|
+
return await self.request("GET", f"deployments/{uuid}")
|
|
211
|
+
|
|
212
|
+
async def cancel_deployment(self, uuid: str) -> dict:
|
|
213
|
+
"""Cancel a deployment."""
|
|
214
|
+
return await self.request("POST", f"deployments/{uuid}/cancel")
|
|
215
|
+
|
|
216
|
+
async def deploy(
|
|
217
|
+
self,
|
|
218
|
+
tag: str | None = None,
|
|
219
|
+
uuid: str | None = None,
|
|
220
|
+
force: bool = False,
|
|
221
|
+
) -> dict:
|
|
222
|
+
"""Deploy by tag or UUID."""
|
|
223
|
+
params = {}
|
|
224
|
+
if tag:
|
|
225
|
+
params["tag"] = tag
|
|
226
|
+
if uuid:
|
|
227
|
+
params["uuid"] = uuid
|
|
228
|
+
if force:
|
|
229
|
+
params["force"] = "true"
|
|
230
|
+
return await self.request("GET", "deploy", params=params)
|
|
231
|
+
|
|
232
|
+
async def list_app_deployments(self, uuid: str, skip: int = 0, take: int = 10) -> list[dict]:
|
|
233
|
+
"""List deployments for a specific application."""
|
|
234
|
+
params = {"skip": skip, "take": take}
|
|
235
|
+
return await self.request("GET", f"deployments/applications/{uuid}", params=params)
|
|
236
|
+
|
|
237
|
+
# --- Servers ---
|
|
238
|
+
|
|
239
|
+
async def list_servers(self) -> list[dict]:
|
|
240
|
+
"""List all servers."""
|
|
241
|
+
return await self.request("GET", "servers")
|
|
242
|
+
|
|
243
|
+
async def get_server(self, uuid: str) -> dict:
|
|
244
|
+
"""Get server by UUID."""
|
|
245
|
+
return await self.request("GET", f"servers/{uuid}")
|
|
246
|
+
|
|
247
|
+
async def create_server(self, data: dict) -> dict:
|
|
248
|
+
"""Create a new server."""
|
|
249
|
+
return await self.request("POST", "servers", json_data=data)
|
|
250
|
+
|
|
251
|
+
async def update_server(self, uuid: str, data: dict) -> dict:
|
|
252
|
+
"""Update server by UUID."""
|
|
253
|
+
return await self.request("PATCH", f"servers/{uuid}", json_data=data)
|
|
254
|
+
|
|
255
|
+
async def delete_server(self, uuid: str) -> dict:
|
|
256
|
+
"""Delete server by UUID."""
|
|
257
|
+
return await self.request("DELETE", f"servers/{uuid}")
|
|
258
|
+
|
|
259
|
+
async def get_server_resources(self, uuid: str) -> list[dict]:
|
|
260
|
+
"""Get resources on a server."""
|
|
261
|
+
return await self.request("GET", f"servers/{uuid}/resources")
|
|
262
|
+
|
|
263
|
+
async def get_server_domains(self, uuid: str) -> list[dict]:
|
|
264
|
+
"""Get domains configured on a server."""
|
|
265
|
+
return await self.request("GET", f"servers/{uuid}/domains")
|
|
266
|
+
|
|
267
|
+
async def validate_server(self, uuid: str) -> dict:
|
|
268
|
+
"""Validate server connectivity and configuration."""
|
|
269
|
+
return await self.request("GET", f"servers/{uuid}/validate")
|