fix: filter MCP-specific fields from database creation requests#59
fix: filter MCP-specific fields from database creation requests#59
Conversation
The database tool was passing all parameters including 'action', 'type', 'uuid', and 'delete_volumes' to the Coolify API, causing validation errors. The API only expects database-specific fields. This fix extracts MCP-specific fields and only passes the relevant database configuration to the API. Fixes #58
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
Code Review for PR #59SummaryThis PR fixes a validation error when creating databases via the ✅ What Looks Good
|
Problem
The
databaseMCP tool was returningError: Validation failed.when trying to create databases, even with all required parameters provided.Root Cause
The tool was passing ALL parameters to the Coolify API, including MCP-specific fields (
action,type,uuid,delete_volumes). The Coolify API validation rejected these extra fields.Solution
Extract MCP-specific fields before passing data to the API:
Now only database-specific fields are sent to the API.
Testing
Closes
Fixes #58