Added create_service and delete_service tools#20
Merged
StuMason merged 3 commits intoStuMason:mainfrom Jan 2, 2026
Merged
Conversation
The client methods already existed but weren't exposed as MCP tools. This enables full automation of one-click service creation (e.g., pocketbase). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add test for createService with docker_compose_raw instead of type - Add test for deleteService with all options (deleteConfigurations, deleteConnectedNetworks) - Fix prettier formatting in mcp-server.ts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Owner
|
Hey @faahim - love this, thank you. I've (claude...) added a couple tests and ran lint to get the CI passing. Merged. I've cut version 0.5.0 and pushed it up, should be available to you now :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey @StuMason ! 👋
Thanks a ton for creating this great MCP!
I was trying to automate some Coolify tasks using this and realised it couldn't create new services (other than GitHub/Docker), especially from the one-click service collections. I tried inspect why, and it turns out these capabilities are exposed even though
createServiceanddeleteServicealready exist incoolify-client.ts. So I went ahead and added them!I don't know if this omission was intentional or if it was on the roadmap. But it felt like a key component that others could benefit from. But please feel free to reject it if it's not relevant or the implementation isn't how you want it to be. 🙂
Full disclosure: the code was mostly written using Claude Opus 4.5. Below are some AI-generated details for the changes that might be useful.
Thanks!
What's included
create_serviceLet's you spin up one-click services (pocketbase, mysql, redis, wordpress, etc.) directly from MCP Client. Super handy for quickly setting up backends without leaving the conversation.
Parameters:
type- Service type (pocketbase, mysql, redis, postgresql, mongodb, wordpress, etc.)server_uuid,project_uuid- Where to deployenvironment_nameorenvironment_uuid- Target environmentname,description- Optional metadatainstant_deploy- Deploy immediately after creationdocker_compose_raw- Base64 encoded compose file for custom setups (alternative totype)delete_serviceClean up services when you're done. Includes options for removing volumes, configurations, and running Docker cleanup.
Changes
src/lib/mcp-server.ts- Added tool registrations for both endpointssrc/types/coolify.ts- Madetypeoptional and addeddocker_compose_rawto support custom compose filesTested against Coolify v4 and everything works as expected.
Cheers 🙏