Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,15 @@ isort src/ tests/

The Kong Rate Limiter MCP Server is available on Docker Hub as `shibbirmcc/kong-ratelimiter-mcp-server`.

#### Host Configuration

By default, the server binds to `127.0.0.1`, which works for local development but may not be accessible when running in Docker. For Docker deployments, especially on Windows, you might need to bind to `0.0.0.0` to allow external access:

```bash
# Run with custom host binding
docker run -p 8080:8080 -e FASTMCP_HOST=0.0.0.0 shibbirmcc/kong-ratelimiter-mcp-server
```

#### Quick Start with Docker Hub

```bash
Expand Down
5 changes: 3 additions & 2 deletions src/kong_mcp_server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,12 @@ def main() -> None:
# Set up tools before starting the server
setup_tools()

# Get port from environment variable with fallback to 8080
# Get host and port from environment variables with fallbacks
host = os.environ.get("FASTMCP_HOST", "127.0.0.1")
port = int(os.environ.get("FASTMCP_PORT", "8080"))

# Run the server with SSE transport on /sse/ endpoint
mcp.run("sse", path="/sse/", port=port)
mcp.run("sse", path="/sse/", host=host, port=port)


if __name__ == "__main__":
Expand Down