Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@HenkDz
Copy link

@HenkDz HenkDz commented Nov 4, 2025

This pull request introduces a major refactor to the Dokploy tool system by consolidating multiple resource-specific tools (for applications, domains, MySQL, PostgreSQL, and projects) into unified, action-driven tools. Instead of exposing each resource operation as a separate tool, the new approach provides a single tool per resource type that accepts an action parameter to determine the operation. This simplifies the tool interface and makes it easier to manage and extend.

The most important changes are:

Consolidation of Tools:

  • Added consolidated tools for applications/domains (dokployApplication), MySQL (dokployMysql), PostgreSQL (dokployPostgres), and projects (dokployProject). Each tool now handles multiple actions through an action parameter, routing to the appropriate handler internally. [1] [2] [3] [4]

Exports and Tool Registry Update:

  • Created a new consolidated/index.ts file to export the new consolidated tools.
  • Updated the main tool registry in tools/index.ts to import only the consolidated tools and expose them as the complete set of available tools, removing the previous resource-specific tool imports.

These changes greatly simplify the codebase and the interface for managing Dokploy resources, making it easier for both developers and users to interact with the system.

Copilot AI and others added 6 commits November 4, 2025 19:53
- Split dokploy_database into dokploy_postgres and dokploy_mysql
- Merge all domain tools into dokploy_application
- Final tool count: 4 consolidated tools (dokploy_application, dokploy_postgres, dokploy_mysql, dokploy_project)
- All 67 original API calls remain accessible through consolidated tools

Co-authored-by: HenkDz <[email protected]>
- Document all 4 consolidated tools with action parameters
- Add comprehensive examples for each tool
- Include migration guide from individual tools
- Add security considerations and usage notes

Co-authored-by: HenkDz <[email protected]>
…itions

Refactor existing tool definitions for consolidated architecture
@HenkDz
Copy link
Author

HenkDz commented Nov 4, 2025

Consoidation is needed because AI assistants get confused when given large number of tools to work with ( 67 in this case) I turned them into 4. Moreover, I added project lock and tools whitelist features as well:

image

The goal behind project locking is to focus on the project we are working on and for tools whitelist is to focus on the stack the current project uses, like there's no point of having MySQL tools when I only use Postgres and need its realted tools.

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.

1 participant