Skip to content

Added create_service and delete_service tools#20

Merged
StuMason merged 3 commits intoStuMason:mainfrom
faahim:main
Jan 2, 2026
Merged

Added create_service and delete_service tools#20
StuMason merged 3 commits intoStuMason:mainfrom
faahim:main

Conversation

@faahim
Copy link
Contributor

@faahim faahim commented Dec 30, 2025

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 createService and deleteService already exist in coolify-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_service

Let'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 deploy
  • environment_name or environment_uuid - Target environment
  • name, description - Optional metadata
  • instant_deploy - Deploy immediately after creation
  • docker_compose_raw - Base64 encoded compose file for custom setups (alternative to type)

delete_service

Clean 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 endpoints
  • src/types/coolify.ts - Made type optional and added docker_compose_raw to support custom compose files

Tested against Coolify v4 and everything works as expected.

Cheers 🙏

faahim and others added 3 commits January 2, 2026 16:23
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>
@StuMason StuMason merged commit 099e4e7 into StuMason:main Jan 2, 2026
3 of 4 checks passed
@StuMason
Copy link
Owner

StuMason commented Jan 2, 2026

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants