mcp-openstack-ops 3.6.6__tar.gz → 3.6.7__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.
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.env.example +6 -1
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/PKG-INFO +12 -8
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/README.md +11 -7
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/docs/multi-user-guide.md +23 -7
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/mcp_main.py +10 -1
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/core.py +12 -12
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/user_connection.py +24 -9
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/PKG-INFO +12 -8
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/scm_version.json +2 -2
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_user_connection.py +57 -1
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.env.test +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.github/FUNDING.yml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.github/copilot-instructions.md +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.github/dependabot.yml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.github/workflows/pypi-publish.yml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.github/workflows/tests.yml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.gitignore +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.gitleaks.toml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.pre-commit-config.yaml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/.python-version +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/AGENTS.md +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/Dockerfile.MCP-Server +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/Dockerfile.MCPO-Proxy +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/LICENSE +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/MANIFEST.in +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/build-mcp-server-docker-image.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/build-mcpo-server-docker-image.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/diagnose_openstack.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/docker-compose.yml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/docs/issues/issue-73-test-report-20261104-054928.ko.md +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/docs/issues/issue-73-test-report-20261104-054928.md +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/MCP-Workflow-of-Quickstart-Tutorial.png +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/screenshot-claude-desktop.png +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/screenshot-example-cluster-status.png +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/screenshot-openstack-dashboard.png +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/main.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/mcp-config.json.http +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/mcp-config.json.multi-project +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/mcp-config.json.multi-user +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/mcp-config.json.stdio +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/pyproject.toml +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/scripts/check_release.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/scripts/mcp-server-docker-cmd.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/scripts/publish_release.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/scripts/run-mcp-inspector-local.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/scripts/run-mcp-inspector-pypi.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/setup.cfg +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/__init__.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/__main__.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/connection.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/functions.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/prompt_template.md +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/__init__.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/alarms.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/compute.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/identity.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/image.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/__init__.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/amphorae.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/core.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/health_monitors.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/l7_policies.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/listeners.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/management.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/load_balancer/pools.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/monitoring.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/network.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/orchestration.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/services/storage.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/__init__.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_availability_zones.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_domains.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_floating_ip_pools.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_floating_ips.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_heat_stack_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_heat_stacks.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_hypervisor_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_identity_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_image_detail_list.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_image_members.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_instance.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_instance_by_name.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_instance_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_instances_by_status.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_keypair_list.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_amphorae.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_availability_zones.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_flavors.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_health_monitors.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_l7_policies.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_l7_rules.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_list.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_listeners.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_pool_members.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_pools.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_providers.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_load_balancer_quotas.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_network_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_network_qos_policies.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_project_details.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_quota.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_resource_monitoring.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_role_assignments.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_routers.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_security_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_server_events.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_server_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_server_volumes.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_service_status.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_usage_statistics.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_user_list.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_backups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_list.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_qos.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_snapshots.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_transfers.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/get_volume_types.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/search_instances.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_alarms.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_compute_agents.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_domains.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_flavor.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_floating_ip.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_floating_ip_port_forwarding.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_heat_stack.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_identity_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_image.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_image_members.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_image_metadata.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_image_visibility.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_instance.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_keypair.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_amphora.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_availability_zone.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_flavor.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_health_monitor.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_l7_policy.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_l7_rule.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_listener.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_pool.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_pool_member.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_load_balancer_quota.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_metrics.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_network_agents.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_network_ports.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_network_qos_policies.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_networks.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_project.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_quota.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_roles.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_routers.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_security_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_backup.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_dump.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_fixed_ip.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_floating_ip.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_group.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_migration.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_network.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_properties.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_security_group.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_server_volume.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_service_logs.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_services.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_snapshot.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_subnets.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_users.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_volume.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_volume_backups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_volume_groups.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_volume_qos.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/tools/set_volume_types.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/SOURCES.txt +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/dependency_links.txt +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/entry_points.txt +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/requires.txt +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/scm_file_list.json +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops.egg-info/top_level.txt +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/test_compatibility.sh +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/test_project_isolation.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_connection.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_expanded_validation_fixes.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_floating_ip.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_instance_image.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_live_regressions.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_operational_tools.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_phase1_stabilization.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_publish_release.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_release.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/tests/test_tool_registration.py +0 -0
- {mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/uv.lock +0 -0
|
@@ -34,7 +34,7 @@ FASTMCP_PORT=8000
|
|
|
34
34
|
# on every MCP request:
|
|
35
35
|
# X-OpenStack-Application-Credential-ID
|
|
36
36
|
# X-OpenStack-Application-Credential-Secret
|
|
37
|
-
# This mode requires OS_AUTH_PROTOCOL=https and OS_AUTH_HOST. It authenticates
|
|
37
|
+
# This mode requires OS_AUTH_PROTOCOL=https and OS_AUTH_HOST by default. It authenticates
|
|
38
38
|
# each request directly with Keystone, does not use OS_USERNAME, OS_PASSWORD,
|
|
39
39
|
# or OS_PROJECT_NAME, and never falls back to the server environment account.
|
|
40
40
|
# It can run alone or behind shared Bearer authentication. When both modes are
|
|
@@ -44,6 +44,11 @@ FASTMCP_PORT=8000
|
|
|
44
44
|
# independent instance whose private config contains only their own headers.
|
|
45
45
|
MCP_MULTI_USER=false
|
|
46
46
|
|
|
47
|
+
# Development/testing only: explicitly allow multi-user credentials over HTTP.
|
|
48
|
+
# Keep false in production. When true, use disposable least-privilege credentials
|
|
49
|
+
# on an isolated network because secrets and tokens are transmitted in plaintext.
|
|
50
|
+
MCP_MULTI_USER_ALLOW_INSECURE_HTTP=false
|
|
51
|
+
|
|
47
52
|
# (Optional) Enable HTTP Bearer token authentication for streamable-http mode.
|
|
48
53
|
# Clients must send Authorization: Bearer <REMOTE_SECRET_KEY> when enabled.
|
|
49
54
|
# With MCP_MULTI_USER=true, every request must pass both Bearer authentication
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-openstack-ops
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.7
|
|
4
4
|
Summary: OpenStack operations automation MCP server
|
|
5
5
|
Author-email: JungJungIn <call518@gmail.com>
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -192,7 +192,7 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
192
192
|
|
|
193
193
|
**Validation evidence:**
|
|
194
194
|
- **Live snapshot (2026-11-04; working tree based on `a57b165`):** This live
|
|
195
|
-
snapshot predates the current working-tree
|
|
195
|
+
snapshot predates the current working-tree changes. Its live
|
|
196
196
|
classifications remain historical evidence and were not rerun for this change.
|
|
197
197
|
- **Live tool checks:** 105/105 registered tools exercised. At least one live
|
|
198
198
|
path passed for 76 tools; 28 tools were unavailable because the test cloud
|
|
@@ -212,11 +212,14 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
212
212
|
- **Follow-up targeted checks:** `/mcp/.well-known/openid-configuration`
|
|
213
213
|
returned 404 without authentication. A real Nova action list explicitly
|
|
214
214
|
reported that the list has no finish time; optional event-detail lookup
|
|
215
|
-
returned an event result and derived its latest finish time.
|
|
216
|
-
-
|
|
215
|
+
returned an event result and derived its latest finish time. The new
|
|
216
|
+
HTTP-only multi-user test override is **Live unverified**; only its fail-closed
|
|
217
|
+
default, explicit opt-in, endpoint generation, and startup warning were tested
|
|
218
|
+
locally.
|
|
219
|
+
- **Local unit tests (current working tree, 2026-11-05):** 274/274 (100%); no
|
|
217
220
|
failures or skipped tests. These tests include MCP action-description and
|
|
218
|
-
advanced-parameter forwarding regressions
|
|
219
|
-
validation.
|
|
221
|
+
advanced-parameter forwarding regressions plus the insecure-HTTP opt-in
|
|
222
|
+
regressions; they do not replace live service validation.
|
|
220
223
|
|
|
221
224
|
**Detailed Mapping by Category**
|
|
222
225
|
|
|
@@ -820,7 +823,8 @@ Options:
|
|
|
820
823
|
| `FASTMCP_HOST` | HTTP host address | `127.0.0.1` | For HTTP mode only |
|
|
821
824
|
| `FASTMCP_PORT` | HTTP port number | `8080` | For HTTP mode only |
|
|
822
825
|
| **Authentication (Optional)** |
|
|
823
|
-
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints and can be combined with shared Bearer authentication |
|
|
826
|
+
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints by default and can be combined with shared Bearer authentication |
|
|
827
|
+
| `MCP_MULTI_USER_ALLOW_INSECURE_HTTP` | Allow multi-user OpenStack API requests over HTTP | `false` | Development/testing only; requires `MCP_MULTI_USER=true` and transmits credentials and tokens in plaintext |
|
|
824
828
|
| `REMOTE_AUTH_ENABLE` | Enable Bearer token authentication for streamable-http mode | `false` | Production security |
|
|
825
829
|
| `REMOTE_SECRET_KEY` | Shared secret for Bearer token authentication | Required when auth enabled | Checked before per-user authentication when both modes are enabled |
|
|
826
830
|
| **Docker Compose** |
|
|
@@ -1229,7 +1233,7 @@ uv run python -m mcp_openstack_ops --type streamable-http --auth-enable --secret
|
|
|
1229
1233
|
1. **stdio mode** (Default): Local-only access, no authentication needed
|
|
1230
1234
|
2. **streamable-http + REMOTE_AUTH_ENABLE=false/undefined**: Remote access without authentication ⚠️ **NOT RECOMMENDED for production**
|
|
1231
1235
|
3. **streamable-http + REMOTE_AUTH_ENABLE=true**: Remote access with Bearer token authentication ✅ **RECOMMENDED for production**
|
|
1232
|
-
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints.
|
|
1236
|
+
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints by default. HTTP is available only for isolated development/testing with `MCP_MULTI_USER_ALLOW_INSECURE_HTTP=true`.
|
|
1233
1237
|
5. **streamable-http + MCP_MULTI_USER=true + REMOTE_AUTH_ENABLE=true**: Each request must pass shared Bearer authentication first and per-user Application Credential authentication second. See the [multi-user guide](docs/multi-user-guide.md).
|
|
1234
1238
|
|
|
1235
1239
|
> **🔒 Default Policy**: `REMOTE_AUTH_ENABLE` and `MCP_MULTI_USER` both default to `false`. A configured `REMOTE_SECRET_KEY` is used only when `REMOTE_AUTH_ENABLE=true`; enabling both modes requires both forms of authentication.
|
|
@@ -174,7 +174,7 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
174
174
|
|
|
175
175
|
**Validation evidence:**
|
|
176
176
|
- **Live snapshot (2026-11-04; working tree based on `a57b165`):** This live
|
|
177
|
-
snapshot predates the current working-tree
|
|
177
|
+
snapshot predates the current working-tree changes. Its live
|
|
178
178
|
classifications remain historical evidence and were not rerun for this change.
|
|
179
179
|
- **Live tool checks:** 105/105 registered tools exercised. At least one live
|
|
180
180
|
path passed for 76 tools; 28 tools were unavailable because the test cloud
|
|
@@ -194,11 +194,14 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
194
194
|
- **Follow-up targeted checks:** `/mcp/.well-known/openid-configuration`
|
|
195
195
|
returned 404 without authentication. A real Nova action list explicitly
|
|
196
196
|
reported that the list has no finish time; optional event-detail lookup
|
|
197
|
-
returned an event result and derived its latest finish time.
|
|
198
|
-
-
|
|
197
|
+
returned an event result and derived its latest finish time. The new
|
|
198
|
+
HTTP-only multi-user test override is **Live unverified**; only its fail-closed
|
|
199
|
+
default, explicit opt-in, endpoint generation, and startup warning were tested
|
|
200
|
+
locally.
|
|
201
|
+
- **Local unit tests (current working tree, 2026-11-05):** 274/274 (100%); no
|
|
199
202
|
failures or skipped tests. These tests include MCP action-description and
|
|
200
|
-
advanced-parameter forwarding regressions
|
|
201
|
-
validation.
|
|
203
|
+
advanced-parameter forwarding regressions plus the insecure-HTTP opt-in
|
|
204
|
+
regressions; they do not replace live service validation.
|
|
202
205
|
|
|
203
206
|
**Detailed Mapping by Category**
|
|
204
207
|
|
|
@@ -802,7 +805,8 @@ Options:
|
|
|
802
805
|
| `FASTMCP_HOST` | HTTP host address | `127.0.0.1` | For HTTP mode only |
|
|
803
806
|
| `FASTMCP_PORT` | HTTP port number | `8080` | For HTTP mode only |
|
|
804
807
|
| **Authentication (Optional)** |
|
|
805
|
-
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints and can be combined with shared Bearer authentication |
|
|
808
|
+
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints by default and can be combined with shared Bearer authentication |
|
|
809
|
+
| `MCP_MULTI_USER_ALLOW_INSECURE_HTTP` | Allow multi-user OpenStack API requests over HTTP | `false` | Development/testing only; requires `MCP_MULTI_USER=true` and transmits credentials and tokens in plaintext |
|
|
806
810
|
| `REMOTE_AUTH_ENABLE` | Enable Bearer token authentication for streamable-http mode | `false` | Production security |
|
|
807
811
|
| `REMOTE_SECRET_KEY` | Shared secret for Bearer token authentication | Required when auth enabled | Checked before per-user authentication when both modes are enabled |
|
|
808
812
|
| **Docker Compose** |
|
|
@@ -1211,7 +1215,7 @@ uv run python -m mcp_openstack_ops --type streamable-http --auth-enable --secret
|
|
|
1211
1215
|
1. **stdio mode** (Default): Local-only access, no authentication needed
|
|
1212
1216
|
2. **streamable-http + REMOTE_AUTH_ENABLE=false/undefined**: Remote access without authentication ⚠️ **NOT RECOMMENDED for production**
|
|
1213
1217
|
3. **streamable-http + REMOTE_AUTH_ENABLE=true**: Remote access with Bearer token authentication ✅ **RECOMMENDED for production**
|
|
1214
|
-
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints.
|
|
1218
|
+
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints by default. HTTP is available only for isolated development/testing with `MCP_MULTI_USER_ALLOW_INSECURE_HTTP=true`.
|
|
1215
1219
|
5. **streamable-http + MCP_MULTI_USER=true + REMOTE_AUTH_ENABLE=true**: Each request must pass shared Bearer authentication first and per-user Application Credential authentication second. See the [multi-user guide](docs/multi-user-guide.md).
|
|
1216
1220
|
|
|
1217
1221
|
> **🔒 Default Policy**: `REMOTE_AUTH_ENABLE` and `MCP_MULTI_USER` both default to `false`. A configured `REMOTE_SECRET_KEY` is used only when `REMOTE_AUTH_ENABLE=true`; enabling both modes requires both forms of authentication.
|
|
@@ -154,13 +154,29 @@ or secret store; the server's non-persistence rule does not cover client storage
|
|
|
154
154
|
|
|
155
155
|
This follows the existing configured-host deployment layout: compute, network,
|
|
156
156
|
volume, image, placement, and Heat endpoints use `OS_AUTH_HOST` with the existing
|
|
157
|
-
`OS_*_PORT` variables,
|
|
158
|
-
URL ends in `/v3`. Other SDK services use the Keystone catalog, whose
|
|
159
|
-
must
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
157
|
+
`OS_*_PORT` variables, using HTTPS with certificate verification by default. The
|
|
158
|
+
identity URL ends in `/v3`. Other SDK services use the Keystone catalog, whose
|
|
159
|
+
endpoints must use the same protocol. Plaintext SDK requests are rejected unless
|
|
160
|
+
the explicit test-only override below is enabled. Redirected requests are always
|
|
161
|
+
rejected. Existing manual Heat/Octavia probes use the validated configured
|
|
162
|
+
protocol and do not follow redirects. Deployments with HTTP-only internal
|
|
163
|
+
services cannot use this mode securely without HTTPS endpoints. Standard system
|
|
164
|
+
trust applies if no CA path is set; there is no implicit `verify=False` fallback.
|
|
165
|
+
|
|
166
|
+
For isolated development or functional testing against an HTTP-only OpenStack
|
|
167
|
+
cloud, the HTTPS guard can be explicitly disabled:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
export MCP_MULTI_USER=true
|
|
171
|
+
export MCP_MULTI_USER_ALLOW_INSECURE_HTTP=true
|
|
172
|
+
export OS_AUTH_PROTOCOL=http
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
This sends Application Credential secrets and issued tokens in plaintext. Use
|
|
176
|
+
only an isolated test network and a disposable, least-privileged credential with
|
|
177
|
+
a short expiration, then delete it after testing. The option defaults to `false`,
|
|
178
|
+
emits an `INSECURE TEST MODE` warning at startup, and must never be enabled in
|
|
179
|
+
production. Redirects remain disabled in both modes.
|
|
164
180
|
|
|
165
181
|
## Client compatibility
|
|
166
182
|
|
|
@@ -498,14 +498,23 @@ def main(argv: Optional[List[str]] = None) -> None:
|
|
|
498
498
|
secret_key = args.secret_key or os.getenv("REMOTE_SECRET_KEY", "")
|
|
499
499
|
multi_user = args.multi_user or _parse_bool_env(os.getenv("MCP_MULTI_USER", "false"))
|
|
500
500
|
if multi_user:
|
|
501
|
+
protocol = os.getenv("OS_AUTH_PROTOCOL", "http").lower()
|
|
502
|
+
allow_insecure_http = _parse_bool_env(
|
|
503
|
+
os.getenv("MCP_MULTI_USER_ALLOW_INSECURE_HTTP", "false")
|
|
504
|
+
)
|
|
501
505
|
if transport_type != "streamable-http":
|
|
502
506
|
parser.error("--multi-user requires streamable-http")
|
|
503
|
-
if
|
|
507
|
+
if protocol != "https" and not (protocol == "http" and allow_insecure_http):
|
|
504
508
|
parser.error("Multi-user mode requires OS_AUTH_PROTOCOL=https")
|
|
505
509
|
if not os.getenv("OS_AUTH_HOST"):
|
|
506
510
|
parser.error("Multi-user mode requires OS_AUTH_HOST")
|
|
507
511
|
if log_level.upper() == "DEBUG":
|
|
508
512
|
parser.error("Multi-user mode does not allow DEBUG credential wire logging")
|
|
513
|
+
if protocol == "http":
|
|
514
|
+
logger.warning(
|
|
515
|
+
"INSECURE TEST MODE: Multi-user OpenStack credentials will be "
|
|
516
|
+
"transmitted over HTTP. Never use this setting in production."
|
|
517
|
+
)
|
|
509
518
|
user_connection.configure(multi_user)
|
|
510
519
|
|
|
511
520
|
# Validation for streamable-http mode with authentication
|
|
@@ -96,7 +96,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
96
96
|
try:
|
|
97
97
|
service_status['endpoint'] = conn.session.get_endpoint(service_type='identity', interface='public')
|
|
98
98
|
except Exception:
|
|
99
|
-
service_status['endpoint'] = f"{
|
|
99
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{os.environ.get('OS_AUTH_HOST', 'localhost')}:{os.environ.get('OS_AUTH_PORT', '5000')}"
|
|
100
100
|
|
|
101
101
|
elif service == 'orchestration':
|
|
102
102
|
# Test orchestration service (Heat) with manual API call
|
|
@@ -111,7 +111,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
111
111
|
# Construct Heat API URL
|
|
112
112
|
auth_host = os.environ.get('OS_AUTH_HOST', 'localhost')
|
|
113
113
|
heat_port = os.environ.get('OS_HEAT_STACK_PORT', '8004')
|
|
114
|
-
heat_url = f"{
|
|
114
|
+
heat_url = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1/{project_id}/stacks"
|
|
115
115
|
|
|
116
116
|
headers = {'X-Auth-Token': token}
|
|
117
117
|
|
|
@@ -124,7 +124,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
124
124
|
|
|
125
125
|
# Also get Heat engine services information
|
|
126
126
|
try:
|
|
127
|
-
services_url = f"{
|
|
127
|
+
services_url = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1/{project_id}/services"
|
|
128
128
|
services_response = requests.get(services_url, headers=headers, timeout=3, **_probe_request_options(conn))
|
|
129
129
|
|
|
130
130
|
heat_engines_info = "engines status unknown"
|
|
@@ -136,7 +136,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
136
136
|
except Exception:
|
|
137
137
|
heat_engines_info = "engines status unavailable"
|
|
138
138
|
|
|
139
|
-
service_status['endpoint'] = f"{
|
|
139
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1"
|
|
140
140
|
service_status['details'] = {
|
|
141
141
|
'stacks_count': stacks_count,
|
|
142
142
|
'api_version': 'v1',
|
|
@@ -379,7 +379,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
379
379
|
|
|
380
380
|
for port in lb_ports:
|
|
381
381
|
try:
|
|
382
|
-
lb_url = f"{
|
|
382
|
+
lb_url = f"{user_connection.service_protocol()}://{auth_host}:{port}/v2.0/lbaas/loadbalancers"
|
|
383
383
|
headers = {'X-Auth-Token': token}
|
|
384
384
|
|
|
385
385
|
response = timeout_session.get(lb_url, headers=headers, timeout=3, **_probe_request_options(conn))
|
|
@@ -1010,7 +1010,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1010
1010
|
try:
|
|
1011
1011
|
service_status['endpoint'] = conn.session.get_endpoint(service_type='identity', interface='public')
|
|
1012
1012
|
except Exception:
|
|
1013
|
-
service_status['endpoint'] = f"{
|
|
1013
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{os.environ.get('OS_AUTH_HOST', 'localhost')}:{os.environ.get('OS_AUTH_PORT', '5000')}"
|
|
1014
1014
|
|
|
1015
1015
|
elif service == 'orchestration':
|
|
1016
1016
|
# Test orchestration service (Heat) with manual API call
|
|
@@ -1024,7 +1024,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1024
1024
|
# Construct Heat API URL
|
|
1025
1025
|
auth_host = os.environ.get('OS_AUTH_HOST', 'localhost')
|
|
1026
1026
|
heat_port = os.environ.get('OS_HEAT_STACK_PORT', '8004')
|
|
1027
|
-
heat_url = f"{
|
|
1027
|
+
heat_url = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1/{project_id}/stacks"
|
|
1028
1028
|
|
|
1029
1029
|
headers = {
|
|
1030
1030
|
'X-Auth-Token': token,
|
|
@@ -1035,7 +1035,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1035
1035
|
response = requests.get(heat_url, headers=headers, timeout=10, **_probe_request_options(conn))
|
|
1036
1036
|
|
|
1037
1037
|
if response.status_code in [200, 404]: # 404 is OK - means no stacks
|
|
1038
|
-
service_status['endpoint'] = f"{
|
|
1038
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}"
|
|
1039
1039
|
service_status['version'] = 'v1'
|
|
1040
1040
|
else:
|
|
1041
1041
|
raise Exception(f"Heat API returned status {response.status_code}")
|
|
@@ -1137,7 +1137,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1137
1137
|
try:
|
|
1138
1138
|
service_status['endpoint'] = conn.session.get_endpoint(service_type='identity', interface='public')
|
|
1139
1139
|
except Exception:
|
|
1140
|
-
service_status['endpoint'] = f"{
|
|
1140
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{os.environ.get('OS_AUTH_HOST', 'localhost')}:{os.environ.get('OS_AUTH_PORT', '5000')}"
|
|
1141
1141
|
projects = list(conn.identity.projects())
|
|
1142
1142
|
users = list(conn.identity.users())
|
|
1143
1143
|
roles = list(conn.identity.roles())
|
|
@@ -1163,7 +1163,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1163
1163
|
# Construct Heat API URL
|
|
1164
1164
|
auth_host = os.environ.get('OS_AUTH_HOST', 'localhost')
|
|
1165
1165
|
heat_port = os.environ.get('OS_HEAT_STACK_PORT', '8004')
|
|
1166
|
-
heat_url = f"{
|
|
1166
|
+
heat_url = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1/{project_id}/stacks"
|
|
1167
1167
|
|
|
1168
1168
|
headers = {'X-Auth-Token': token}
|
|
1169
1169
|
|
|
@@ -1177,7 +1177,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1177
1177
|
# Also check Heat engine services status
|
|
1178
1178
|
heat_services = []
|
|
1179
1179
|
try:
|
|
1180
|
-
services_url = f"{
|
|
1180
|
+
services_url = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1/{project_id}/services"
|
|
1181
1181
|
services_response = requests.get(services_url, headers=headers, timeout=5, **_probe_request_options(conn))
|
|
1182
1182
|
|
|
1183
1183
|
if services_response.status_code == 200:
|
|
@@ -1190,7 +1190,7 @@ def get_service_status(service_name: str = "") -> Dict[str, Any]:
|
|
|
1190
1190
|
up_services = [s for s in heat_services if s.get('status') == 'up']
|
|
1191
1191
|
down_services = [s for s in heat_services if s.get('status') == 'down']
|
|
1192
1192
|
|
|
1193
|
-
service_status['endpoint'] = f"{
|
|
1193
|
+
service_status['endpoint'] = f"{user_connection.service_protocol()}://{auth_host}:{heat_port}/v1"
|
|
1194
1194
|
service_status['available'] = True
|
|
1195
1195
|
service_status['details'] = {
|
|
1196
1196
|
'stacks': len(stacks),
|
{mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/src/mcp_openstack_ops/user_connection.py
RENAMED
|
@@ -29,19 +29,30 @@ logger = logging.getLogger(__name__)
|
|
|
29
29
|
enabled = False
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
class
|
|
33
|
-
"""
|
|
32
|
+
class RestrictedSession(requests.Session):
|
|
33
|
+
"""Restrict credential-bearing requests to the configured protocol."""
|
|
34
|
+
|
|
35
|
+
def __init__(self, protocol: str) -> None:
|
|
36
|
+
super().__init__()
|
|
37
|
+
self.protocol = protocol
|
|
34
38
|
|
|
35
39
|
def send(
|
|
36
40
|
self, request: requests.PreparedRequest, **kwargs: Any
|
|
37
41
|
) -> requests.Response:
|
|
38
42
|
"""Check the final prepared URL before sending credentials."""
|
|
39
|
-
if urlsplit(request.url).scheme !=
|
|
40
|
-
raise ValueError(
|
|
43
|
+
if urlsplit(request.url).scheme != self.protocol:
|
|
44
|
+
raise ValueError(
|
|
45
|
+
f"Multi-user OpenStack requests require {self.protocol.upper()}"
|
|
46
|
+
)
|
|
41
47
|
kwargs["allow_redirects"] = False
|
|
42
48
|
return super().send(request, **kwargs)
|
|
43
49
|
|
|
44
50
|
|
|
51
|
+
def service_protocol() -> str:
|
|
52
|
+
"""Return the validated protocol used by multi-user service probes."""
|
|
53
|
+
return os.getenv("OS_AUTH_PROTOCOL", "http").lower() if enabled else "http"
|
|
54
|
+
|
|
55
|
+
|
|
45
56
|
@dataclass
|
|
46
57
|
class RequestIdentity:
|
|
47
58
|
"""Keep connections and sensitive values out of object representations."""
|
|
@@ -157,18 +168,22 @@ def authenticate(credential_id: str, secret: str) -> RequestIdentity:
|
|
|
157
168
|
"""Authenticate afresh; never consult environment credentials or keyrings."""
|
|
158
169
|
host = os.environ["OS_AUTH_HOST"]
|
|
159
170
|
port = int(os.environ.get("OS_AUTH_PORT", "5000"))
|
|
160
|
-
|
|
171
|
+
protocol = os.environ.get("OS_AUTH_PROTOCOL", "http").lower()
|
|
172
|
+
allow_insecure_http = os.getenv(
|
|
173
|
+
"MCP_MULTI_USER_ALLOW_INSECURE_HTTP", "false"
|
|
174
|
+
).strip().lower() in ("true", "1", "yes", "on")
|
|
175
|
+
if protocol != "https" and not (protocol == "http" and allow_insecure_http):
|
|
161
176
|
raise ValueError("Multi-user mode requires OS_AUTH_PROTOCOL=https")
|
|
162
177
|
if any(char in host for char in "/@?#"):
|
|
163
178
|
raise ValueError("OS_AUTH_HOST must be a hostname or IP address")
|
|
164
179
|
auth = ApplicationCredential(
|
|
165
|
-
auth_url=f"
|
|
180
|
+
auth_url=f"{protocol}://{host}:{port}/v3",
|
|
166
181
|
application_credential_id=credential_id,
|
|
167
182
|
application_credential_secret=secret,
|
|
168
183
|
reauthenticate=False,
|
|
169
184
|
)
|
|
170
185
|
session = Session(
|
|
171
|
-
auth=auth, session=
|
|
186
|
+
auth=auth, session=RestrictedSession(protocol),
|
|
172
187
|
verify=os.getenv("OS_CACERT") or True, timeout=10, redirect=0,
|
|
173
188
|
)
|
|
174
189
|
conn = None
|
|
@@ -185,7 +200,7 @@ def authenticate(credential_id: str, secret: str) -> RequestIdentity:
|
|
|
185
200
|
"identity_api_version": "3",
|
|
186
201
|
"block_storage_api_version": "3",
|
|
187
202
|
"orchestration_api_version": "1",
|
|
188
|
-
"identity_endpoint_override": f"
|
|
203
|
+
"identity_endpoint_override": f"{protocol}://{host}:{port}/v3",
|
|
189
204
|
}
|
|
190
205
|
for service, variable, default, path in (
|
|
191
206
|
("compute", "OS_COMPUTE_PORT", "8774", "/v2.1"),
|
|
@@ -197,7 +212,7 @@ def authenticate(credential_id: str, secret: str) -> RequestIdentity:
|
|
|
197
212
|
):
|
|
198
213
|
service_port = int(os.getenv(variable, default))
|
|
199
214
|
config[f"{service}_endpoint_override"] = (
|
|
200
|
-
f"
|
|
215
|
+
f"{protocol}://{host}:{service_port}{path}"
|
|
201
216
|
)
|
|
202
217
|
conn = Connection(config=CloudRegion(
|
|
203
218
|
config=config, session=session, auth_plugin=auth,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mcp-openstack-ops
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.7
|
|
4
4
|
Summary: OpenStack operations automation MCP server
|
|
5
5
|
Author-email: JungJungIn <call518@gmail.com>
|
|
6
6
|
Requires-Python: >=3.12
|
|
@@ -192,7 +192,7 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
192
192
|
|
|
193
193
|
**Validation evidence:**
|
|
194
194
|
- **Live snapshot (2026-11-04; working tree based on `a57b165`):** This live
|
|
195
|
-
snapshot predates the current working-tree
|
|
195
|
+
snapshot predates the current working-tree changes. Its live
|
|
196
196
|
classifications remain historical evidence and were not rerun for this change.
|
|
197
197
|
- **Live tool checks:** 105/105 registered tools exercised. At least one live
|
|
198
198
|
path passed for 76 tools; 28 tools were unavailable because the test cloud
|
|
@@ -212,11 +212,14 @@ and the [multi-user setup guide](docs/multi-user-guide.md).
|
|
|
212
212
|
- **Follow-up targeted checks:** `/mcp/.well-known/openid-configuration`
|
|
213
213
|
returned 404 without authentication. A real Nova action list explicitly
|
|
214
214
|
reported that the list has no finish time; optional event-detail lookup
|
|
215
|
-
returned an event result and derived its latest finish time.
|
|
216
|
-
-
|
|
215
|
+
returned an event result and derived its latest finish time. The new
|
|
216
|
+
HTTP-only multi-user test override is **Live unverified**; only its fail-closed
|
|
217
|
+
default, explicit opt-in, endpoint generation, and startup warning were tested
|
|
218
|
+
locally.
|
|
219
|
+
- **Local unit tests (current working tree, 2026-11-05):** 274/274 (100%); no
|
|
217
220
|
failures or skipped tests. These tests include MCP action-description and
|
|
218
|
-
advanced-parameter forwarding regressions
|
|
219
|
-
validation.
|
|
221
|
+
advanced-parameter forwarding regressions plus the insecure-HTTP opt-in
|
|
222
|
+
regressions; they do not replace live service validation.
|
|
220
223
|
|
|
221
224
|
**Detailed Mapping by Category**
|
|
222
225
|
|
|
@@ -820,7 +823,8 @@ Options:
|
|
|
820
823
|
| `FASTMCP_HOST` | HTTP host address | `127.0.0.1` | For HTTP mode only |
|
|
821
824
|
| `FASTMCP_PORT` | HTTP port number | `8080` | For HTTP mode only |
|
|
822
825
|
| **Authentication (Optional)** |
|
|
823
|
-
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints and can be combined with shared Bearer authentication |
|
|
826
|
+
| `MCP_MULTI_USER` | Enable request-scoped per-user Application Credential authentication | `false` | Streamable HTTP only; requires HTTPS OpenStack endpoints by default and can be combined with shared Bearer authentication |
|
|
827
|
+
| `MCP_MULTI_USER_ALLOW_INSECURE_HTTP` | Allow multi-user OpenStack API requests over HTTP | `false` | Development/testing only; requires `MCP_MULTI_USER=true` and transmits credentials and tokens in plaintext |
|
|
824
828
|
| `REMOTE_AUTH_ENABLE` | Enable Bearer token authentication for streamable-http mode | `false` | Production security |
|
|
825
829
|
| `REMOTE_SECRET_KEY` | Shared secret for Bearer token authentication | Required when auth enabled | Checked before per-user authentication when both modes are enabled |
|
|
826
830
|
| **Docker Compose** |
|
|
@@ -1229,7 +1233,7 @@ uv run python -m mcp_openstack_ops --type streamable-http --auth-enable --secret
|
|
|
1229
1233
|
1. **stdio mode** (Default): Local-only access, no authentication needed
|
|
1230
1234
|
2. **streamable-http + REMOTE_AUTH_ENABLE=false/undefined**: Remote access without authentication ⚠️ **NOT RECOMMENDED for production**
|
|
1231
1235
|
3. **streamable-http + REMOTE_AUTH_ENABLE=true**: Remote access with Bearer token authentication ✅ **RECOMMENDED for production**
|
|
1232
|
-
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints.
|
|
1236
|
+
4. **streamable-http + MCP_MULTI_USER=true**: Each request authenticates with the caller's project-scoped Keystone Application Credential and requires HTTPS OpenStack endpoints by default. HTTP is available only for isolated development/testing with `MCP_MULTI_USER_ALLOW_INSECURE_HTTP=true`.
|
|
1233
1237
|
5. **streamable-http + MCP_MULTI_USER=true + REMOTE_AUTH_ENABLE=true**: Each request must pass shared Bearer authentication first and per-user Application Credential authentication second. See the [multi-user guide](docs/multi-user-guide.md).
|
|
1234
1238
|
|
|
1235
1239
|
> **🔒 Default Policy**: `REMOTE_AUTH_ENABLE` and `MCP_MULTI_USER` both default to `false`. A configured `REMOTE_SECRET_KEY` is used only when `REMOTE_AUTH_ENABLE=true`; enabling both modes requires both forms of authentication.
|
|
@@ -343,15 +343,56 @@ def test_catalog_or_redirect_cannot_send_token_over_http(monkeypatch):
|
|
|
343
343
|
headers={"X-Auth-Token": "token"}).prepare()
|
|
344
344
|
send = Mock()
|
|
345
345
|
monkeypatch.setattr(requests.Session, "send", send)
|
|
346
|
-
with users.
|
|
346
|
+
with users.RestrictedSession("https") as session:
|
|
347
347
|
with pytest.raises(ValueError, match="require HTTPS"):
|
|
348
348
|
session.send(request)
|
|
349
349
|
send.assert_not_called()
|
|
350
350
|
|
|
351
351
|
|
|
352
|
+
def test_insecure_http_mode_builds_http_endpoints(monkeypatch):
|
|
353
|
+
monkeypatch.setenv("OS_AUTH_HOST", "cloud.example")
|
|
354
|
+
monkeypatch.setenv("OS_AUTH_PROTOCOL", "http")
|
|
355
|
+
monkeypatch.setenv("MCP_MULTI_USER_ALLOW_INSECURE_HTTP", "true")
|
|
356
|
+
access = SimpleNamespace(
|
|
357
|
+
user_id="alice", project_id="project-a", auth_token="token"
|
|
358
|
+
)
|
|
359
|
+
monkeypatch.setattr(users.ApplicationCredential, "get_access", lambda *args: access)
|
|
360
|
+
|
|
361
|
+
item = users.authenticate("credential-id", "secret")
|
|
362
|
+
try:
|
|
363
|
+
assert item.connection.session.auth.auth_url.startswith("http://")
|
|
364
|
+
endpoint = item.connection.config.config["compute_endpoint_override"]
|
|
365
|
+
assert endpoint.startswith("http://")
|
|
366
|
+
finally:
|
|
367
|
+
item.connection.close()
|
|
368
|
+
item.connection.session.session.close()
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
def test_multi_user_http_requires_explicit_insecure_opt_in(monkeypatch):
|
|
372
|
+
monkeypatch.setenv("OS_AUTH_HOST", "cloud.example")
|
|
373
|
+
monkeypatch.setenv("OS_AUTH_PROTOCOL", "http")
|
|
374
|
+
monkeypatch.delenv("MCP_MULTI_USER_ALLOW_INSECURE_HTTP", raising=False)
|
|
375
|
+
|
|
376
|
+
with pytest.raises(ValueError, match="requires OS_AUTH_PROTOCOL=https"):
|
|
377
|
+
users.authenticate("credential-id", "secret")
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
def test_multi_user_startup_rejects_http_without_explicit_opt_in(monkeypatch):
|
|
381
|
+
from mcp_openstack_ops.mcp_main import main
|
|
382
|
+
monkeypatch.setenv("OS_AUTH_PROTOCOL", "http")
|
|
383
|
+
monkeypatch.setenv("OS_AUTH_HOST", "cloud.example")
|
|
384
|
+
monkeypatch.delenv("MCP_MULTI_USER_ALLOW_INSECURE_HTTP", raising=False)
|
|
385
|
+
|
|
386
|
+
with pytest.raises(SystemExit) as error:
|
|
387
|
+
main(["--multi-user", "--type", "streamable-http"])
|
|
388
|
+
|
|
389
|
+
assert error.value.code == 2
|
|
390
|
+
|
|
391
|
+
|
|
352
392
|
@pytest.mark.parametrize("args", [["--multi-user"]])
|
|
353
393
|
def test_invalid_startup_modes(monkeypatch, args):
|
|
354
394
|
from mcp_openstack_ops.mcp_main import main
|
|
395
|
+
monkeypatch.setenv("FASTMCP_TYPE", "stdio")
|
|
355
396
|
monkeypatch.setenv("OS_AUTH_PROTOCOL", "https")
|
|
356
397
|
monkeypatch.setenv("OS_AUTH_HOST", "cloud.example")
|
|
357
398
|
with pytest.raises(SystemExit) as error:
|
|
@@ -376,6 +417,21 @@ def test_multi_user_starts_stateless_and_keeps_writes_off(monkeypatch):
|
|
|
376
417
|
assert not mcp_main._is_modify_operation_allowed()
|
|
377
418
|
|
|
378
419
|
|
|
420
|
+
def test_multi_user_allows_explicit_insecure_http_test_mode(monkeypatch, caplog):
|
|
421
|
+
from mcp_openstack_ops import mcp_main
|
|
422
|
+
monkeypatch.setenv("OS_AUTH_PROTOCOL", "http")
|
|
423
|
+
monkeypatch.setenv("OS_AUTH_HOST", "cloud.example")
|
|
424
|
+
monkeypatch.setenv("MCP_MULTI_USER_ALLOW_INSECURE_HTTP", "true")
|
|
425
|
+
run = Mock()
|
|
426
|
+
monkeypatch.setattr(mcp_main.mcp, "run", run)
|
|
427
|
+
|
|
428
|
+
with caplog.at_level("WARNING"):
|
|
429
|
+
mcp_main.main(["--multi-user", "--type", "streamable-http"])
|
|
430
|
+
|
|
431
|
+
run.assert_called_once()
|
|
432
|
+
assert "INSECURE TEST MODE" in caplog.text
|
|
433
|
+
|
|
434
|
+
|
|
379
435
|
def test_multi_user_and_bearer_start_as_layered_authentication(monkeypatch):
|
|
380
436
|
from mcp_openstack_ops import mcp_main
|
|
381
437
|
monkeypatch.setenv("OS_AUTH_PROTOCOL", "https")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/MCP-Workflow-of-Quickstart-Tutorial.png
RENAMED
|
File without changes
|
|
File without changes
|
{mcp_openstack_ops-3.6.6 → mcp_openstack_ops-3.6.7}/img/screenshot-example-cluster-status.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|