thothctl 0.17.3__tar.gz → 0.18.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {thothctl-0.17.3 → thothctl-0.18.0}/PKG-INFO +1 -1
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/commands/server.py +1 -1
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/stack_optimizer/__init__.py +24 -3
- thothctl-0.18.0/src/thothctl/services/mcp/__init__.py +6 -0
- thothctl-0.18.0/src/thothctl/services/mcp/simple_http_server.py +520 -0
- thothctl-0.17.3/src/thothctl/services/mcp/amazon_q_server.py → thothctl-0.18.0/src/thothctl/services/mcp/stdio_server.py +101 -1
- thothctl-0.18.0/src/thothctl/version.py +2 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_stack_optimizer.py +28 -0
- thothctl-0.17.3/src/thothctl/services/mcp/__init__.py +0 -5
- thothctl-0.17.3/src/thothctl/services/mcp/example.py +0 -29
- thothctl-0.17.3/src/thothctl/services/mcp/service.py +0 -993
- thothctl-0.17.3/src/thothctl/services/mcp/simple_http_server.py +0 -265
- thothctl-0.17.3/src/thothctl/version.py +0 -2
- {thothctl-0.17.3 → thothctl-0.18.0}/.devcontainer/Dockerfile +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.devcontainer/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.devcontainer/devcontainer.json +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.github/workflows/docs.yml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.github/workflows/python-publish.yml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.gitignore +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.pre-commit-config.yaml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/.readthedocs.yaml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/AWS_PRICING_API_FINAL_REPORT.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/AWS_PRICING_API_IMPLEMENTATION_PLAN.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/AWS_PRICING_REFACTOR_REPORT.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/Dockerfile +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/LICENSE +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/TECHNICAL_DEBT_METRICS.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/catalog/catalog-info.yaml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/dashboard/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/ai-review/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/ai-review/agent_specifications.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/ai-review/agentcore.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/blast-radius.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/check_environment.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/check_iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/check_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/check_project_iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/check_space.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/cost-analysis-quick-reference.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/cost-analysis.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/customizing_rules.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/deps-advanced.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/deps.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/drift-detection.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/check/plan.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/document/customizing_docs.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/document/document_iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/document/document_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/document/iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/document/use_cases.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/generate/generate_components.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/generate/generate_stacks.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/init/init.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/init/init_space.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/CHANGELOG.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/frameworks/terraform.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/frameworks/terragrunt.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/inventory_iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/inventory/inventory_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/list/list_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/list/list_projects.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/list/list_spaces.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/mcp/mcp.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/project_cleanup.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/project_convert.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/project_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/project_upgrade.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/project/use_cases.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/remove/remove_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/remove/remove_project.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/remove/remove_space.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/scan/iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/scan/scan_iac.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/scan/scan_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/scan/use_cases.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/commands/upgrade/upgrade_overview.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/concepts.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/cross_platform_support.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/framework_architecture.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/infrasctructure_composition.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/policy_as_code.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/roadmap_fdi.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/software_architecture.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/space_configuration.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/ai_dlc.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/check_command.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/devsecops_quickstart.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/devsecops_sdlc.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/inventory_command.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/platform_engineering_templates.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/space_management.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/framework/use_cases/tasks/create_template.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/iac_devsecops_use_case.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/automate_tasks_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/commnad_init.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/create_component.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/create_inventory.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/doc_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/document_project_code.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/framework/thothforge-framework.svg +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/framework/thothfr.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/iacpeerbot_summary.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/icon-light.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/icon.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/init_project.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/inventory_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/notification_img.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/report_dependencies.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/report_dependencies_summary.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/restore_inventory_version.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/reuse_project_pattern.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/scan_code.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/scan_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/stable/scan_report_example.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/sync_wk_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/transform_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/update_inventory_version.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/validate_command.png +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/validate_environment.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/img/validate_project.gif +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/includes/abbreviations.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/index.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/installation/linux_installation.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/installation/windows_installation.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/javascripts/tablesort.js +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/mcp.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/navigation.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/quick_start.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/requirements.txt +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/stylesheets/extra-enhanced.css +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/stylesheets/extra.css +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/telemetry.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/template_engine/cli_commands_audit.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/template_engine/for_developers.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/template_engine/for_platform_engineers.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/template_engine/github_templates.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/template_engine/template_engine.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/troubleshooting/linux_troubleshooting.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/troubleshooting/macos_troubleshooting.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/troubleshooting/troubleshooting.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/docs/troubleshooting/windows_troubleshooting.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/mkdocs.yaml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/pyproject.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/scripts/run_mcp_server.sh +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/application/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/autocomplete.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/analyze.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/apply_fix.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/configure.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/configure_decisions.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/decide.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/history.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/improve.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/orchestrate.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/override.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/report.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/ai_review/commands/serve.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/environment.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/iac.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/project/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/project/iac.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/check/commands/project.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/dashboard/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/dashboard/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/dashboard/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/dashboard/commands/launch.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/document/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/document/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/document/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/document/commands/iac.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/generate/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/generate/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/generate/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/generate/commands/component.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/generate/commands/stacks.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/commands/env.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/commands/project.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/commands/space.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/init/commands/template.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/inventory/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/inventory/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/inventory/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/inventory/commands/check.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/inventory/commands/iac.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/list/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/list/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/list/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/list/commands/projects.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/list/commands/spaces.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/commands/register.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/commands/status.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/mcp/commands/stop.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/commands/bootstrap.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/commands/cleanup.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/commands/convert.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/project/commands/upgrade.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/remove/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/remove/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/remove/project.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/remove/space.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/scan/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/scan/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/scan/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/scan/commands/iac.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/space/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/space/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/space/commands/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/space/commands/activate.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/space/commands/update.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/commands/upgrade/cli.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/.thothcf.setup.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/.thothcf_home.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/.thothcf_module.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/.thothcf_project.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/.thothcf_template_parameters.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/common.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/common/terragrunt/.thothcf_project.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/constants.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/default_values.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/defaults.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/settings.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/template_config.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/template_configs.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/templates.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/config/validation.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/cli_ui.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/commands.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/config.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/azure_devops/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/azure_devops/get_azure_devops.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/azure_devops/pull_request_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/github/get_github.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/github/pull_request_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/integrate_messages_services/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/integrate_messages_services/microsoft_teams.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/integrate_messages_services/sent_message_teams.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/pattern_names.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/pr_comments/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/integrations/pr_comments/pr_comment_publisher.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/logger.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/telemetry.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/core/version_tools.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/domain/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/domain/interfaces/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/domain/models/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/mcp/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/mcp/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/mcp/server.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/agentcore/agentcore.json +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/ai_agent.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/analyzers/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/analyzers/code_reviewer.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/analyzers/context_builder.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/analyzers/report_analyzer.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/analyzers/risk_assessor.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/bedrock_agent_api.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/config/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/config/ai_settings.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/config/decision_rules.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/decision_engine.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/main.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/memory.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/orchestrator.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/pr_decision_publisher.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/azure_provider.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/bedrock_agent_provider.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/bedrock_provider.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/ollama_provider.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/providers/openai_provider.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/safety/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/safety/safety_guard.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/strands_agent.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/tracing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/cost_tracker.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/fix_patterns.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/fix_prompts.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/formatters.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/ai_review/utils/prompts.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/environment/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/environment/check_environment.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/org_policy_loader.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/blast_radius_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/check_origin_version.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/check_project_structure.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/cost_analyzer.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/models/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/models/cloudformation_mapper.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/models/cost_models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/aws_pricing_client.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/base_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/apigateway_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/bedrock_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/cloudwatch_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/dynamodb_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/ebs_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/ec2_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/ecs_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/eip_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/eks_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/elb_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/free_resources_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/kms_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/lambda_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/msk_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/rds_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/s3_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/secrets_manager_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/pricing/providers/vpc_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/cost/unified_cost_report.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/drift_ai.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/drift_history.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/drift_policy.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/drift_report.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/drift_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/drift/models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/risk_assessment.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/project/validate_project_structure.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/check/rule_merger.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/dashboard/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/dashboard/dashboard_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/dashboard/data_loader.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/create_documentation.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/files_content.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/files_scan.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/iac_documentation.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/iac_grunt_graph.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/document/iac_grunt_info.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_stacks/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_stacks/config_generator.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_stacks/remote_config_generation.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_stacks/stack_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_stacks/templates/terragrunt.hcl.j2 +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/config.yaml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/create_code.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/create_component.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/create_component_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/create_stacks.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/create_template.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/files_content.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/github_template_loader.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/generate/create_template/project_templates.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/environment/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/environment/install_tools.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/project/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/project/project.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/space/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/space/example_space.toml +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/space/local_registry.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/init/space/space.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/changelog_parser.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/inventory_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/module_compatibility_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/report_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/schema_compatibility_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/terragrunt_parser.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/update_versions.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/inventory/version_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/mcp/README.md +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/bootstrap/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/bootstrap/bootstrap_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/cleanup/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/cleanup/clean_project.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/cleanup/clean_space.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/conversion_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/get_project_data.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/post_init.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/project_converter.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/project_defaults.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/convert/set_project_parameters.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/create_terramate/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/create_terramate/create_terramate_stacks.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/create_terramate/detect_changes_stacks.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/create_terramate/manage_terramate_stacks.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/upgrade/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/project/upgrade/upgrade_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/compliance_review.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/import_reports.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/report_parser.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/sarif_output.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scan_history.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scan_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/checkov.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/kics.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/opa.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/scan_reports.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/scanners.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/terraform_compliance.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/tfsec.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/services/scan/scanners/trivy.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/templates/reports/inventory_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/templates/reports/inventory_report.js +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/templates/unified_report_styles.css +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/banner.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/create_compliance_html_reports.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/create_html_reports.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/delete_directory.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/fix_report_styling.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/render_scan_report.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/report_html_utils.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/dashboard.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/index_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/individual_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/simple_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/unified_report_styles.css +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/unified_scan_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/unified_simple_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/common/templates/xunit_report.html +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/crypto.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/manage_backend_resources/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/manage_backend_resources/manage_backend_resources.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/modules_ops/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/modules_ops/terraform_module_details.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/modules_ops/terraform_modules_fetcher.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/platform_utils.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/analyze_terraform_plan.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/graph_manager.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/graph_terragrunt_dependencies.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/process_terraform_file.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/process_hcl/risk_analyzing_terraform_plan.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/sync_workspaces/__init__.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/sync_workspaces/sync_terraform_workspaces.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/sync_workspaces/sync_terragrunt_workspaces.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/template_loader.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/utils/thoth_colors.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/src/thothctl/wellcome_banner.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/conftest.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_agentcore_entrypoint.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_aws_pricing_client.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_azure_devops_pr_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_bedrock_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_cdk_language_selection.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_context_steering.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_cost_analyzer.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_cost_models.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_cost_pr_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_dashboard_loading_fix.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_dashboard_service.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_drift.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_drift_detection.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_ec2_pricing.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_github_pr_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_iac_cost_integration.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_inventory_pr_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_kics_scanner.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_mermaid_edge_labels.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_new_cost_providers.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_parallel_scan.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_platform_utils.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_pr_comment_publisher.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_provider_source_url_fix.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_provider_versions.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_scan_pr_comments.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_space_command.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_space_management.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_template_url_fix.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tests/test_terragrunt_parser.py +0 -0
- {thothctl-0.17.3 → thothctl-0.18.0}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: thothctl
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.18.0
|
|
4
4
|
Summary: A CLI for Developer Control Plane. Accelerate your cloud IaC deployments.
|
|
5
5
|
Project-URL: SourceCode, https://github.com/thothforge/thothctl
|
|
6
6
|
Project-URL: HomePage, https://github.com/thothforge/thothctl
|
|
@@ -20,7 +20,7 @@ class MCPServerCommand(ClickCommand):
|
|
|
20
20
|
from pathlib import Path
|
|
21
21
|
|
|
22
22
|
# Use Amazon Q compatible server as default for stdio mode
|
|
23
|
-
from ....services.mcp.
|
|
23
|
+
from ....services.mcp.stdio_server import serve_amazon_q
|
|
24
24
|
# Don't print anything in stdio mode - it breaks MCP protocol
|
|
25
25
|
asyncio.run(serve_amazon_q())
|
|
26
26
|
else:
|
|
@@ -36,7 +36,7 @@ class StackOptimizer:
|
|
|
36
36
|
|
|
37
37
|
Returns:
|
|
38
38
|
dict with keys:
|
|
39
|
-
optimized_filters: minimal list of filters
|
|
39
|
+
optimized_filters: minimal list of terragrunt-compatible filters
|
|
40
40
|
removed_redundant: filters that were eliminated
|
|
41
41
|
details: per-filter resolution info
|
|
42
42
|
"""
|
|
@@ -64,13 +64,13 @@ class StackOptimizer:
|
|
|
64
64
|
redundant.add(stack_a)
|
|
65
65
|
break
|
|
66
66
|
|
|
67
|
-
optimized = [s for s in target_stacks if s not in redundant]
|
|
67
|
+
optimized = [self._normalize_filter(s) for s in target_stacks if s not in redundant]
|
|
68
68
|
|
|
69
69
|
return {
|
|
70
70
|
"optimized_filters": optimized,
|
|
71
71
|
"removed_redundant": list(redundant),
|
|
72
72
|
"total_units_before": sum(len(v) for v in resolved.values()),
|
|
73
|
-
"total_units_after": len(set().union(*(resolved[s] for s in
|
|
73
|
+
"total_units_after": len(set().union(*(resolved[s] for s in target_stacks if s not in redundant))),
|
|
74
74
|
"details": {
|
|
75
75
|
stack: {
|
|
76
76
|
"direct_units": len(self._resolve_stack_direct(stack)),
|
|
@@ -157,6 +157,27 @@ class StackOptimizer:
|
|
|
157
157
|
|
|
158
158
|
return ""
|
|
159
159
|
|
|
160
|
+
|
|
161
|
+
def _normalize_filter(self, stack_pattern: str) -> str:
|
|
162
|
+
"""Normalize a filter for terragrunt compatibility.
|
|
163
|
+
|
|
164
|
+
Strips trailing /** for leaf units (units with no child sub-units)
|
|
165
|
+
because terragrunt's ** glob requires child directories to match.
|
|
166
|
+
"""
|
|
167
|
+
if not stack_pattern.endswith("/**"):
|
|
168
|
+
return stack_pattern
|
|
169
|
+
|
|
170
|
+
bare = stack_pattern[:-3]
|
|
171
|
+
# Check if it's a leaf unit (exists as a unit AND has no sub-units)
|
|
172
|
+
if bare in self._units:
|
|
173
|
+
has_children = any(
|
|
174
|
+
u.startswith(bare + "/") for u in self._all_unit_paths if u != bare
|
|
175
|
+
)
|
|
176
|
+
if not has_children:
|
|
177
|
+
return bare
|
|
178
|
+
|
|
179
|
+
return stack_pattern
|
|
180
|
+
|
|
160
181
|
def _resolve_stack_direct(self, stack_pattern: str) -> Set[str]:
|
|
161
182
|
"""Resolve a glob pattern to matching unit paths (no dependency expansion)."""
|
|
162
183
|
matched = set()
|
|
@@ -0,0 +1,520 @@
|
|
|
1
|
+
"""Simplified HTTP MCP server for ThothCTL."""
|
|
2
|
+
|
|
3
|
+
import asyncio
|
|
4
|
+
import json
|
|
5
|
+
import logging
|
|
6
|
+
import os
|
|
7
|
+
import atexit
|
|
8
|
+
from pathlib import Path
|
|
9
|
+
from typing import Dict, Any
|
|
10
|
+
|
|
11
|
+
import uvicorn
|
|
12
|
+
from starlette.applications import Starlette
|
|
13
|
+
from starlette.responses import JSONResponse
|
|
14
|
+
from starlette.routing import Route
|
|
15
|
+
from starlette.middleware import Middleware
|
|
16
|
+
from starlette.middleware.cors import CORSMiddleware
|
|
17
|
+
|
|
18
|
+
from ...version import __version__
|
|
19
|
+
from ...core.cli_ui import CliUI
|
|
20
|
+
|
|
21
|
+
# Initialize CLI UI
|
|
22
|
+
ui = CliUI()
|
|
23
|
+
|
|
24
|
+
# Configure logging
|
|
25
|
+
logger = logging.getLogger("thothctl-mcp-http")
|
|
26
|
+
|
|
27
|
+
class SimpleHTTPMCPServer:
|
|
28
|
+
"""Simplified HTTP MCP server for ThothCTL."""
|
|
29
|
+
|
|
30
|
+
def __init__(self, host: str = "localhost", port: int = 8080):
|
|
31
|
+
self.host = host
|
|
32
|
+
self.port = port
|
|
33
|
+
self.tools = self._get_available_tools()
|
|
34
|
+
|
|
35
|
+
def _get_available_tools(self) -> list:
|
|
36
|
+
"""Get list of available tools."""
|
|
37
|
+
return [
|
|
38
|
+
{
|
|
39
|
+
"name": "thothctl_init_project",
|
|
40
|
+
"description": "Initialize a new project with ThothCTL",
|
|
41
|
+
"parameters": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"properties": {
|
|
44
|
+
"project_name": {"type": "string", "description": "Name of the project"},
|
|
45
|
+
"directory": {"type": "string", "description": "Directory to initialize in", "default": "."},
|
|
46
|
+
"space": {"type": "string", "description": "Space name (optional)"}
|
|
47
|
+
},
|
|
48
|
+
"required": ["project_name"]
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "thothctl_list_projects",
|
|
53
|
+
"description": "List all projects managed by ThothCTL",
|
|
54
|
+
"parameters": {"type": "object", "properties": {}}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "thothctl_list_spaces",
|
|
58
|
+
"description": "List all spaces managed by ThothCTL",
|
|
59
|
+
"parameters": {"type": "object", "properties": {}}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "thothctl_inventory",
|
|
63
|
+
"description": "Create infrastructure inventory",
|
|
64
|
+
"parameters": {
|
|
65
|
+
"type": "object",
|
|
66
|
+
"properties": {
|
|
67
|
+
"directory": {"type": "string", "default": "."},
|
|
68
|
+
"check_versions": {"type": "boolean", "default": False},
|
|
69
|
+
"report_type": {"type": "string", "enum": ["html", "json", "all"], "default": "html"}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "thothctl_scan",
|
|
75
|
+
"description": "Scan infrastructure code for security issues using multiple tools (Checkov, Trivy, TFSec, KICS, OPA/Conftest). Supports custom Rego policies and enforcement modes.",
|
|
76
|
+
"parameters": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"directory": {"type": "string", "default": "."},
|
|
80
|
+
"tools": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {"type": "string", "enum": ["checkov", "trivy", "tfsec", "kics", "terraform-compliance", "opa"]},
|
|
83
|
+
"default": ["checkov"]
|
|
84
|
+
},
|
|
85
|
+
"enforcement": {
|
|
86
|
+
"type": "string",
|
|
87
|
+
"enum": ["soft", "hard"],
|
|
88
|
+
"description": "soft=report only, hard=exit 1 on violations",
|
|
89
|
+
"default": "soft"
|
|
90
|
+
},
|
|
91
|
+
"reports_dir": {"type": "string", "default": "Reports"},
|
|
92
|
+
"tftool": {"type": "string", "enum": ["terraform", "tofu"], "default": "tofu"},
|
|
93
|
+
"options": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Additional key=value options. For OPA: mode=conftest|opa, policy_dir=path, decision=path"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "thothctl_version",
|
|
102
|
+
"description": "Get ThothCTL version",
|
|
103
|
+
"parameters": {"type": "object", "properties": {}}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "thothctl_cost_analysis",
|
|
107
|
+
"description": "Estimate AWS infrastructure costs from Terraform plans or CloudFormation templates. Provides monthly/annual projections, service-by-service breakdown, and optimization recommendations.",
|
|
108
|
+
"parameters": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"directory": {"type": "string", "default": "."},
|
|
112
|
+
"recursive": {"type": "boolean", "default": False}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "thothctl_drift_detection",
|
|
118
|
+
"description": "Detect infrastructure drift by comparing IaC state against live cloud resources. Supports tag filtering, policy enforcement, coverage trending, and AI-powered analysis.",
|
|
119
|
+
"parameters": {
|
|
120
|
+
"type": "object",
|
|
121
|
+
"properties": {
|
|
122
|
+
"directory": {"type": "string", "default": "."},
|
|
123
|
+
"recursive": {"type": "boolean", "default": False},
|
|
124
|
+
"tftool": {"type": "string", "enum": ["terraform", "tofu"], "default": "tofu"},
|
|
125
|
+
"filter_tags": {"type": "string", "description": "Tag filter (e.g. 'env=prod,team=platform')"},
|
|
126
|
+
"ai_provider": {"type": "string", "enum": ["openai", "bedrock", "azure", "ollama"]},
|
|
127
|
+
"ai_model": {"type": "string"},
|
|
128
|
+
"project_name": {"type": "string"}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "thothctl_ai_review",
|
|
134
|
+
"description": "AI-powered security analysis and code review for Infrastructure as Code. Supports analyze, decide, improve, and orchestrate modes with multiple AI providers.",
|
|
135
|
+
"parameters": {
|
|
136
|
+
"type": "object",
|
|
137
|
+
"properties": {
|
|
138
|
+
"directory": {"type": "string", "default": "."},
|
|
139
|
+
"provider": {"type": "string", "enum": ["openai", "bedrock", "azure", "ollama"]},
|
|
140
|
+
"model": {"type": "string"},
|
|
141
|
+
"mode": {"type": "string", "enum": ["analyze", "decide", "improve", "orchestrate"], "default": "analyze"},
|
|
142
|
+
"scan_results": {"type": "string", "description": "Path to existing scan results to analyze"},
|
|
143
|
+
"severity": {"type": "string", "enum": ["critical", "high", "medium", "low"]},
|
|
144
|
+
"agents": {"type": "array", "items": {"type": "string", "enum": ["security", "architecture", "fix", "decision"]}}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "thothctl_remove_project",
|
|
150
|
+
"description": "Remove a project managed by ThothCTL",
|
|
151
|
+
"parameters": {
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"project_name": {"type": "string", "description": "Name of the project to remove"}
|
|
155
|
+
},
|
|
156
|
+
"required": ["project_name"]
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "thothctl_init_space",
|
|
161
|
+
"description": "Initialize a new space with ThothCTL",
|
|
162
|
+
"parameters": {
|
|
163
|
+
"type": "object",
|
|
164
|
+
"properties": {
|
|
165
|
+
"space_name": {"type": "string", "description": "Name of the space"},
|
|
166
|
+
"directory": {"type": "string", "default": "."}
|
|
167
|
+
},
|
|
168
|
+
"required": ["space_name"]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "thothctl_remove_space",
|
|
173
|
+
"description": "Remove a space managed by ThothCTL",
|
|
174
|
+
"parameters": {
|
|
175
|
+
"type": "object",
|
|
176
|
+
"properties": {
|
|
177
|
+
"space_name": {"type": "string", "description": "Name of the space to remove"}
|
|
178
|
+
},
|
|
179
|
+
"required": ["space_name"]
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "thothctl_get_projects_in_space",
|
|
184
|
+
"description": "Get list of projects in a specific space",
|
|
185
|
+
"parameters": {
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"space_name": {"type": "string", "description": "Space name"}
|
|
189
|
+
},
|
|
190
|
+
"required": ["space_name"]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "thothctl_project_bootstrap",
|
|
195
|
+
"description": "Bootstrap existing projects with ThothCTL support",
|
|
196
|
+
"parameters": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"directory": {"type": "string", "default": "."}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"name": "thothctl_project_cleanup",
|
|
205
|
+
"description": "Clean up residual files and directories from your project",
|
|
206
|
+
"parameters": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"directory": {"type": "string", "default": "."}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "thothctl_project_convert",
|
|
215
|
+
"description": "Convert project to template or template to project",
|
|
216
|
+
"parameters": {
|
|
217
|
+
"type": "object",
|
|
218
|
+
"properties": {
|
|
219
|
+
"directory": {"type": "string", "default": "."},
|
|
220
|
+
"target_format": {"type": "string", "description": "Target format for conversion"}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "thothctl_project_upgrade",
|
|
226
|
+
"description": "Upgrade project scaffold files from remote template",
|
|
227
|
+
"parameters": {
|
|
228
|
+
"type": "object",
|
|
229
|
+
"properties": {
|
|
230
|
+
"directory": {"type": "string", "default": "."},
|
|
231
|
+
"template_url": {"type": "string", "description": "URL of the template to upgrade from"}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"name": "thothctl_generate",
|
|
237
|
+
"description": "Generate IaC components or stacks from rules and templates",
|
|
238
|
+
"parameters": {
|
|
239
|
+
"type": "object",
|
|
240
|
+
"properties": {
|
|
241
|
+
"template": {"type": "string", "description": "Template to generate from"},
|
|
242
|
+
"output": {"type": "string", "default": "."}
|
|
243
|
+
},
|
|
244
|
+
"required": ["template"]
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "thothctl_document",
|
|
249
|
+
"description": "Generate documentation for IaC projects",
|
|
250
|
+
"parameters": {
|
|
251
|
+
"type": "object",
|
|
252
|
+
"properties": {
|
|
253
|
+
"directory": {"type": "string", "default": "."}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "thothctl_check",
|
|
259
|
+
"description": "Check infrastructure code: environment validation, project structure, or compliance",
|
|
260
|
+
"parameters": {
|
|
261
|
+
"type": "object",
|
|
262
|
+
"properties": {
|
|
263
|
+
"directory": {"type": "string", "default": "."},
|
|
264
|
+
"check_type": {"type": "string", "enum": ["environment", "project", "space"], "default": "project"}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "thothctl_project",
|
|
270
|
+
"description": "Manage project: convert, clean up, bootstrap, or upgrade",
|
|
271
|
+
"parameters": {
|
|
272
|
+
"type": "object",
|
|
273
|
+
"properties": {
|
|
274
|
+
"action": {"type": "string", "enum": ["bootstrap", "cleanup", "convert", "upgrade"]},
|
|
275
|
+
"directory": {"type": "string", "default": "."}
|
|
276
|
+
},
|
|
277
|
+
"required": ["action"]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "thothctl_upgrade",
|
|
282
|
+
"description": "Upgrade thothctl to the latest version",
|
|
283
|
+
"parameters": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"properties": {
|
|
286
|
+
"check_only": {"type": "boolean", "default": False}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
|
|
292
|
+
async def health_check(self, request):
|
|
293
|
+
"""Health check endpoint."""
|
|
294
|
+
return JSONResponse({
|
|
295
|
+
"status": "ok",
|
|
296
|
+
"version": __version__,
|
|
297
|
+
"server": "ThothCTL MCP Server"
|
|
298
|
+
})
|
|
299
|
+
|
|
300
|
+
async def list_tools(self, request):
|
|
301
|
+
"""List available tools endpoint."""
|
|
302
|
+
return JSONResponse({
|
|
303
|
+
"tools": self.tools
|
|
304
|
+
})
|
|
305
|
+
|
|
306
|
+
async def execute_tool(self, request):
|
|
307
|
+
"""Execute a tool endpoint."""
|
|
308
|
+
try:
|
|
309
|
+
body = await request.json()
|
|
310
|
+
tool_name = body.get("tool")
|
|
311
|
+
arguments = body.get("arguments", {})
|
|
312
|
+
|
|
313
|
+
if not tool_name:
|
|
314
|
+
return JSONResponse(
|
|
315
|
+
{"error": "Missing 'tool' parameter"},
|
|
316
|
+
status_code=400
|
|
317
|
+
)
|
|
318
|
+
|
|
319
|
+
# Execute the tool using subprocess (same as Amazon Q server)
|
|
320
|
+
result = await self._execute_thothctl_command(tool_name, arguments)
|
|
321
|
+
|
|
322
|
+
return JSONResponse({
|
|
323
|
+
"result": result,
|
|
324
|
+
"status": "success"
|
|
325
|
+
})
|
|
326
|
+
|
|
327
|
+
except Exception as e:
|
|
328
|
+
logger.error(f"Error executing tool: {e}")
|
|
329
|
+
return JSONResponse(
|
|
330
|
+
{"error": str(e), "status": "error"},
|
|
331
|
+
status_code=500
|
|
332
|
+
)
|
|
333
|
+
|
|
334
|
+
async def _execute_thothctl_command(self, name: str, arguments: Dict[str, Any]) -> str:
|
|
335
|
+
"""Execute a ThothCTL command."""
|
|
336
|
+
import subprocess
|
|
337
|
+
|
|
338
|
+
# Build the command (same logic as Amazon Q server)
|
|
339
|
+
cmd = ["thothctl"]
|
|
340
|
+
|
|
341
|
+
if name == "thothctl_init_project":
|
|
342
|
+
cmd.extend(["init", "project", "--project-name", arguments["project_name"]])
|
|
343
|
+
if arguments.get("space"):
|
|
344
|
+
cmd.extend(["--space", arguments["space"]])
|
|
345
|
+
elif name == "thothctl_list_projects":
|
|
346
|
+
cmd.extend(["list", "projects"])
|
|
347
|
+
elif name == "thothctl_list_spaces":
|
|
348
|
+
cmd.extend(["list", "spaces"])
|
|
349
|
+
elif name == "thothctl_inventory":
|
|
350
|
+
cmd.extend(["inventory", "iac"])
|
|
351
|
+
if arguments.get("check_versions", False):
|
|
352
|
+
cmd.append("--check-versions")
|
|
353
|
+
report_type = arguments.get("report_type", "html")
|
|
354
|
+
cmd.extend(["--report-type", report_type])
|
|
355
|
+
elif name == "thothctl_scan":
|
|
356
|
+
cmd.extend(["scan", "iac"])
|
|
357
|
+
tools = arguments.get("tools", ["checkov"])
|
|
358
|
+
for tool in tools:
|
|
359
|
+
cmd.extend(["--tools", tool])
|
|
360
|
+
cmd.extend(["--enforcement", arguments.get("enforcement", "soft")])
|
|
361
|
+
cmd.extend(["--reports-dir", arguments.get("reports_dir", "Reports")])
|
|
362
|
+
cmd.extend(["--tftool", arguments.get("tftool", "tofu")])
|
|
363
|
+
if arguments.get("options"):
|
|
364
|
+
cmd.extend(["-o", arguments["options"]])
|
|
365
|
+
elif name == "thothctl_version":
|
|
366
|
+
cmd.append("--version")
|
|
367
|
+
elif name == "thothctl_cost_analysis":
|
|
368
|
+
cmd.extend(["check", "iac", "-type", "cost-analysis"])
|
|
369
|
+
if arguments.get("recursive", False):
|
|
370
|
+
cmd.append("--recursive")
|
|
371
|
+
elif name == "thothctl_drift_detection":
|
|
372
|
+
cmd.extend(["check", "iac", "-type", "drift"])
|
|
373
|
+
if arguments.get("recursive", False):
|
|
374
|
+
cmd.append("--recursive")
|
|
375
|
+
if arguments.get("tftool"):
|
|
376
|
+
cmd.extend(["--tftool", arguments["tftool"]])
|
|
377
|
+
if arguments.get("filter_tags"):
|
|
378
|
+
cmd.extend(["--filter-tags", arguments["filter_tags"]])
|
|
379
|
+
if arguments.get("ai_provider"):
|
|
380
|
+
cmd.extend(["--ai-provider", arguments["ai_provider"]])
|
|
381
|
+
if arguments.get("ai_model"):
|
|
382
|
+
cmd.extend(["--ai-model", arguments["ai_model"]])
|
|
383
|
+
if arguments.get("project_name"):
|
|
384
|
+
cmd.extend(["--project-name", arguments["project_name"]])
|
|
385
|
+
elif name == "thothctl_ai_review":
|
|
386
|
+
mode = arguments.get("mode", "analyze")
|
|
387
|
+
cmd.extend(["ai-review", mode])
|
|
388
|
+
if arguments.get("provider"):
|
|
389
|
+
cmd.extend(["-p", arguments["provider"]])
|
|
390
|
+
if arguments.get("model"):
|
|
391
|
+
cmd.extend(["--model", arguments["model"]])
|
|
392
|
+
if mode == "improve" and arguments.get("severity"):
|
|
393
|
+
cmd.extend(["--severity", arguments["severity"]])
|
|
394
|
+
if mode == "orchestrate" and arguments.get("agents"):
|
|
395
|
+
for agent in arguments["agents"]:
|
|
396
|
+
cmd.extend(["-a", agent])
|
|
397
|
+
elif name == "thothctl_remove_project":
|
|
398
|
+
cmd.extend(["remove", "-pj", arguments["project_name"]])
|
|
399
|
+
elif name == "thothctl_init_space":
|
|
400
|
+
cmd.extend(["init", "space", "--name", arguments["space_name"]])
|
|
401
|
+
elif name == "thothctl_remove_space":
|
|
402
|
+
cmd.extend(["remove", "-sp", arguments["space_name"]])
|
|
403
|
+
elif name == "thothctl_get_projects_in_space":
|
|
404
|
+
cmd.extend(["list", "projects", "--space", arguments["space_name"]])
|
|
405
|
+
elif name == "thothctl_project_bootstrap":
|
|
406
|
+
cmd.extend(["project", "bootstrap"])
|
|
407
|
+
elif name == "thothctl_project_cleanup":
|
|
408
|
+
cmd.extend(["project", "cleanup"])
|
|
409
|
+
elif name == "thothctl_project_convert":
|
|
410
|
+
cmd.extend(["project", "convert"])
|
|
411
|
+
if arguments.get("target_format"):
|
|
412
|
+
cmd.extend(["--template-project-type", arguments["target_format"]])
|
|
413
|
+
elif name == "thothctl_project_upgrade":
|
|
414
|
+
cmd.extend(["project", "upgrade"])
|
|
415
|
+
if arguments.get("template_url"):
|
|
416
|
+
cmd.extend(["--template-url", arguments["template_url"]])
|
|
417
|
+
elif name == "thothctl_generate":
|
|
418
|
+
cmd.extend(["generate", "component", "--template", arguments["template"]])
|
|
419
|
+
elif name == "thothctl_document":
|
|
420
|
+
cmd.extend(["document", "iac"])
|
|
421
|
+
elif name == "thothctl_check":
|
|
422
|
+
check_type = arguments.get("check_type", "project")
|
|
423
|
+
if check_type == "environment":
|
|
424
|
+
cmd.extend(["check", "environment"])
|
|
425
|
+
elif check_type == "space":
|
|
426
|
+
cmd.extend(["check", "space"])
|
|
427
|
+
else:
|
|
428
|
+
cmd.extend(["check", "project", "iac"])
|
|
429
|
+
elif name == "thothctl_project":
|
|
430
|
+
action = arguments["action"]
|
|
431
|
+
cmd.extend(["project", action])
|
|
432
|
+
elif name == "thothctl_upgrade":
|
|
433
|
+
cmd.extend(["upgrade"])
|
|
434
|
+
if arguments.get("check_only", False):
|
|
435
|
+
cmd.append("--check-only")
|
|
436
|
+
else:
|
|
437
|
+
return f"Unknown tool: {name}"
|
|
438
|
+
|
|
439
|
+
# Execute the command
|
|
440
|
+
try:
|
|
441
|
+
directory = arguments.get("directory", ".")
|
|
442
|
+
result = subprocess.run(
|
|
443
|
+
cmd,
|
|
444
|
+
capture_output=True,
|
|
445
|
+
text=True,
|
|
446
|
+
timeout=300,
|
|
447
|
+
cwd=directory if directory != "." else None
|
|
448
|
+
)
|
|
449
|
+
|
|
450
|
+
if result.returncode == 0:
|
|
451
|
+
output = result.stdout.strip()
|
|
452
|
+
if not output and result.stderr.strip():
|
|
453
|
+
output = result.stderr.strip()
|
|
454
|
+
return output or f"Command executed successfully: {' '.join(cmd)}"
|
|
455
|
+
else:
|
|
456
|
+
error_output = result.stderr.strip() or result.stdout.strip()
|
|
457
|
+
return f"Command failed (exit code {result.returncode}): {error_output}"
|
|
458
|
+
|
|
459
|
+
except subprocess.TimeoutExpired:
|
|
460
|
+
return f"Command timed out after 5 minutes: {' '.join(cmd)}"
|
|
461
|
+
except Exception as e:
|
|
462
|
+
return f"Error executing command: {str(e)}"
|
|
463
|
+
|
|
464
|
+
def create_app(self):
|
|
465
|
+
"""Create the Starlette application."""
|
|
466
|
+
routes = [
|
|
467
|
+
Route("/health", self.health_check, methods=["GET"]),
|
|
468
|
+
Route("/tools", self.list_tools, methods=["GET"]),
|
|
469
|
+
Route("/execute", self.execute_tool, methods=["POST"]),
|
|
470
|
+
Route("/mcp/v1/tools", self.list_tools, methods=["GET"]),
|
|
471
|
+
Route("/mcp/v1/execute", self.execute_tool, methods=["POST"]),
|
|
472
|
+
]
|
|
473
|
+
|
|
474
|
+
middleware = [
|
|
475
|
+
Middleware(CORSMiddleware, allow_origins=["*"], allow_methods=["*"], allow_headers=["*"])
|
|
476
|
+
]
|
|
477
|
+
|
|
478
|
+
return Starlette(routes=routes, middleware=middleware)
|
|
479
|
+
|
|
480
|
+
def run(self):
|
|
481
|
+
"""Run the HTTP server."""
|
|
482
|
+
try:
|
|
483
|
+
# Create PID file
|
|
484
|
+
pid_dir = os.path.expanduser("~/.thothctl/mcp")
|
|
485
|
+
os.makedirs(pid_dir, exist_ok=True)
|
|
486
|
+
pid_file = os.path.join(pid_dir, f"server_{self.port}.pid")
|
|
487
|
+
|
|
488
|
+
with open(pid_file, 'w') as f:
|
|
489
|
+
f.write(str(os.getpid()))
|
|
490
|
+
|
|
491
|
+
# Register cleanup
|
|
492
|
+
def cleanup():
|
|
493
|
+
try:
|
|
494
|
+
if os.path.exists(pid_file):
|
|
495
|
+
os.remove(pid_file)
|
|
496
|
+
except:
|
|
497
|
+
pass
|
|
498
|
+
|
|
499
|
+
atexit.register(cleanup)
|
|
500
|
+
|
|
501
|
+
# Create and run the app
|
|
502
|
+
app = self.create_app()
|
|
503
|
+
|
|
504
|
+
ui.print_success(f"MCP server ready at http://{self.host}:{self.port}")
|
|
505
|
+
ui.print_info(f"Health check endpoint: http://{self.host}:{self.port}/health")
|
|
506
|
+
ui.print_info(f"Tools endpoint: http://{self.host}:{self.port}/tools")
|
|
507
|
+
ui.print_info(f"Execute endpoint: http://{self.host}:{self.port}/execute")
|
|
508
|
+
|
|
509
|
+
uvicorn.run(app, host=self.host, port=self.port, log_level="info")
|
|
510
|
+
|
|
511
|
+
except Exception as e:
|
|
512
|
+
logger.error(f"Error running HTTP server: {e}")
|
|
513
|
+
ui.print_error(f"Error running HTTP server: {str(e)}")
|
|
514
|
+
raise
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
def run_simple_http_server(host: str = "localhost", port: int = 8080):
|
|
518
|
+
"""Run the simplified HTTP MCP server."""
|
|
519
|
+
server = SimpleHTTPMCPServer(host, port)
|
|
520
|
+
server.run()
|