Skip to content

Commit cdef959

Browse files
committed
feat: add homeassistant ingress support
1 parent 90835cf commit cdef959

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

.github/workflows/docker-publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ jobs:
8181
if: steps.compare_versions.outputs.needs_build == 'true'
8282
uses: docker/setup-buildx-action@v3
8383

84+
- name: Append ENTRYPOINT and CMD to Dockerfile for standalone build
85+
if: steps.compare_versions.outputs.needs_build == 'true'
86+
run: |
87+
echo '' >> Dockerfile # Add a newline for separation
88+
echo '# Added by GitHub Actions for standalone build' >> Dockerfile
89+
echo 'ENTRYPOINT ["tini", "--"]' >> Dockerfile
90+
echo 'CMD ["node", "build/sse.js"]' >> Dockerfile
91+
echo 'Dockerfile content after append:'
92+
cat Dockerfile
93+
8494
- name: Build and push Docker image
8595
if: steps.compare_versions.outputs.needs_build == 'true'
8696
uses: docker/build-push-action@v5

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ VOLUME /tools
140140
EXPOSE 3663
141141

142142
# --- Entrypoint & Command ---
143-
ENTRYPOINT ["tini", "--"]
144-
145-
CMD ["node", "build/sse.js"]
143+
# For Home Assistant addon builds, the entrypoint is /init (from S6-Overlay in the base image).
144+
# CMD is also typically handled by S6 services defined in rootfs.
145+
# By not specifying ENTRYPOINT or CMD here, we rely on the base image's defaults when built as an addon.
146+
# For standalone builds, users will need to specify the command when running the container,
147+
# e.g., docker run <image_name> tini -- node build/sse.js
148+
# Or, a multi-stage build could define a specific entrypoint/cmd for the standalone target.

config.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "MCP Proxy Server"
2-
version: "0.1.4"
2+
version: "0.1.5"
33
slug: "mcp_proxy_server"
44
description: "A central hub for Model Context Protocol (MCP) servers. Manages multiple backend MCP servers (Stdio/SSE), exposing their combined tools and resources via a unified SSE interface or as a Stdio server. Features Web UI for server/tool management, real-time installation monitoring, and optional web terminal."
55
arch:
@@ -37,5 +37,7 @@ startup: application
3737
boot: auto
3838
webui: "http://[HOST]:[PORT:3663]/admin"
3939
ingress: true
40+
ingress_port: 3663
41+
ingress_entry: /admin
4042
panel_icon: "mdi:server-network-outline"
4143
panel_title: "MCP Proxy Server"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-proxy-server",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"author": "ptbsare",
55
"license": "MIT",
66
"description": "An MCP proxy server that aggregates and serves multiple MCP resource servers through a single interface with stdio/sse support",

0 commit comments

Comments
 (0)