Skip to content

Commit 7c93cad

Browse files
committed
Add podman-run-ssl-host
1 parent 0a737d2 commit 7c93cad

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

DEVELOPING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ npx @modelcontextprotocol/inspector uv --directory "/home/cmihai/mcpgateway-wrap
1919
Supergateway runs a MCP stdio-based servers over SSE (Server-Sent Events) with one command. This is useful for remote access, debugging, or connecting to SSE-based clients when your MCP server only speaks stdio.
2020

2121
`npx -y supergateway --stdio "uvx run mcp-server-git"``
22+
or
23+
```
24+
pip install uvenv
25+
npx -y supergateway --stdio "uvenv run mcp-server-git"
26+
```
2227

2328
SSE endpoint: GET http://localhost:8000/sse
2429
POST messages: POST http://localhost:8000/message

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ publish: verify ## Verify, then upload to PyPI
737737
# help: podman-run - Run the container on HTTP (port 4444)
738738
# help: podman-run-shell - Run the container on HTTP (port 4444) and start a shell
739739
# help: podman-run-ssl - Run the container on HTTPS (port 4444, self-signed)
740+
# help: podman-run-ssl-host - Run the container on HTTPS with --network-host (port 4444, self-signed)
740741
# help: podman-stop - Stop & remove the container
741742
# help: podman-test - Quick curl smoke-test against the container
742743
# help: podman-logs - Follow container logs (⌃C to quit)
@@ -811,6 +812,24 @@ podman-run-ssl: certs
811812
-d $(IMG_PROD)
812813
@sleep 2 && podman logs $(PROJECT_NAME) | tail -n +1
813814

815+
podman-run-ssl-host: certs
816+
@echo "🚀 Starting podman container (TLS)…"
817+
-podman stop $(PROJECT_NAME) 2>/dev/null || true
818+
-podman rm $(PROJECT_NAME) 2>/dev/null || true
819+
podman run --name $(PROJECT_NAME) \
820+
--network=host \
821+
--env-file=.env \
822+
-e SSL=true \
823+
-e CERT_FILE=certs/cert.pem \
824+
-e KEY_FILE=certs/key.pem \
825+
-v $(PWD)/certs:/app/certs:ro,Z \
826+
--restart=always --memory=$(CONTAINER_MEMORY) --cpus=$(CONTAINER_CPUS) \
827+
--health-cmd="curl -k --fail https://localhost:4444/health || exit 1" \
828+
--health-interval=1m --health-retries=3 \
829+
--health-start-period=30s --health-timeout=10s \
830+
-d $(IMG_PROD)
831+
@sleep 2 && podman logs $(PROJECT_NAME) | tail -n +1
832+
814833
podman-stop:
815834
@echo "🛑 Stopping podman container…"
816835
-podman stop $(PROJECT_NAME) && podman rm $(PROJECT_NAME) || true

0 commit comments

Comments
 (0)