Dynamic URL Support and Kubernetes Deployment Enhancements #237
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds dynamic URL configuration support and comprehensive Kubernetes deployment capabilities to the Elasticsearch MCP server, enabling multi-cluster and multi-tenant scenarios without server restarts.
Summary of Changes
Core Features
X-Elasticsearch-URLHTTP headerhttp://localhost:9200if not configuredTechnical Changes
Backend (6 files, 433 lines changed)
EsClientProviderto dynamically build clients with custom URLs and credentialsENABLE_SSEenvironment variable support for SSE transportDocumentation (324 lines added)
--sseflagUse Cases
This enhancement enables:
Configuration Examples
Dynamic URL via Header
Kubernetes Deployment
Backward Compatibility
✅ Fully backward compatible - All existing configurations continue to work unchanged:
Testing
Documentation Updates
Commits
Add dynamic URL support via X-Elasticsearch-URL header (
e80ed01)Add Kubernetes deployment support with environment variables (
6dc2894)Files Changed
Checklist
AI Assistance
AI-assisted-by: Claude Sonnet 4.5