Skip to content

feature/add-input-variables#23

Merged
wcollins merged 2 commits intotorerodev:mainfrom
wcollins:feature/add-input-variables
Aug 23, 2025
Merged

feature/add-input-variables#23
wcollins merged 2 commits intotorerodev:mainfrom
wcollins:feature/add-input-variables

Conversation

@wcollins
Copy link
Contributor

✨ Feature: Add input variables support for service execution

📒 Summary

Adds comprehensive support for input variables (--set and --set-secret) and state management parameters to all service execution methods in the torero MCP server.

🔧 Changes

  • Enhanced run_ansible_playbook_service() to support set_vars, set_secrets, and use_decorator parameters
  • Enhanced run_python_script_service() with the same parameter support
  • Enhanced run_opentofu_plan_apply_service() with additional state and state_out parameters
  • Enhanced run_opentofu_plan_destroy_service() with full parameter support including state management
  • Updated all execution tool functions to parse JSON input for set_vars and comma-separated lists for set_secrets
  • Improved command building logic to properly format --set and --set-secret CLI arguments
  • Added comprehensive docstrings with detailed parameter descriptions and examples

🧪 Testing

  • Manual testing of service execution with various parameter combinations
  • Verified JSON parsing for set_vars parameter
  • Tested comma-separated parsing for set_secrets parameter
  • Confirmed backward compatibility with existing code

🔗 Useful Links

@wcollins wcollins added the enhancement New feature or request label Aug 23, 2025
@wcollins wcollins merged commit cd43f16 into torerodev:main Aug 23, 2025
@wcollins wcollins deleted the feature/add-input-variables branch August 23, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant