Skip to content

Conversation

@FelipeGCaetano
Copy link
Contributor

@FelipeGCaetano FelipeGCaetano commented Nov 28, 2025

Created new usefull tool to enable a previously created settings.


Note

Adds a tool to enable Nginx configs by creating a sites-enabled symlink, testing config, reloading Nginx, and registers the tool.

  • MCP Config Tools:
    • New tool: nginx_config_enable in mcp/config/config_enable.go.
      • Creates symlink from sites-available (or specified base_dir) to sites-enabled.
      • Validates paths, ensures destination directory, supports overwrite.
      • Runs nginx -t via nginx.Control(TestConfig) and reloads on success; reverts on failure.
      • Returns JSON result with status, message, source, destination.
    • Registration: Adds tool to Init() in mcp/config/register.go.

Written by Cursor Bugbot for commit 95d04e4. This will update automatically on new commits. Configure here.

@0xJacky
Copy link
Owner

0xJacky commented Nov 28, 2025

cursor review

@FelipeGCaetano
Copy link
Contributor Author

Bugs were fixed, please validate again when is possible.

@0xJacky
Copy link
Owner

0xJacky commented Nov 28, 2025

cursor review

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!


@0xJacky 0xJacky merged commit f95836f into 0xJacky:dev Nov 28, 2025
25 checks passed
@0xJacky
Copy link
Owner

0xJacky commented Nov 28, 2025

LGTM 🎉

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