feat: Add configurable HOST binding for production deployments #100
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.
Summary
This PR adds support for configurable HOST binding address to enable deployment in containerized environments like Docker and Kubernetes.
Changes
Core Implementation
HOSTenvironment variable with default127.0.0.1Documentation
HOSTto configuration options tableHOSTconfiguration and usage examplesMotivation
The server was hardcoded to bind to
127.0.0.1(localhost only), which prevented external access in production environments:Solution
Added a configurable
HOSTenvironment variable that:127.0.0.1: Maintains secure localhost binding for local development0.0.0.0: Enables external access when explicitly configured via environment variableUsage
Local Development (Default)
# Binds to 127.0.0.1 (localhost only) npx @taazkareem/clickup-mcp-serverProduction/Kubernetes
# Binds to 0.0.0.0 (external access) HOST=0.0.0.0 PORT=8080 ENABLE_SSE=true npx @taazkareem/clickup-mcp-serverKubernetes Deployment
Security Considerations
✅ Secure by default: Defaults to
127.0.0.1(localhost only)✅ Opt-in for production: Requires explicit
HOST=0.0.0.0configuration✅ No breaking changes: Existing users unaffected
✅ Works with existing security features: Compatible with HTTPS, origin validation, rate limiting
Testing
Tested in production Kubernetes cluster:
Related Issues
This enables proper deployment in containerized environments and resolves binding issues in Kubernetes.
CC: @taazkareem - This change enables the ClickUp MCP Server to run in production Kubernetes environments while maintaining secure defaults for local development.