Skip to content

Commit c6c4f89

Browse files
fix(container): add sse defaults (#65)
This commit adds default arguments to the container so that it automatically starts using the SSE transport on port 5000 for all interfaces.
1 parent e20ebfb commit c6c4f89

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.github/workflows/release-container.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
docker image tag "${{ steps.build.outputs.id }}" "$FQDN:$TAG"
7070
docker image push "$FQDN:$TAG"
71-
echo "digest=`docker manifest inspect $FQDN:$TAG --verbose | nix run nixpkgs#jq -- -r .Descriptor.digest`" >> $GITHUB_OUTPUT
71+
echo "digest=`docker manifest inspect $FQDN:$TAG --verbose | nix run --inputs-from .# nixpkgs#jq -- -r .Descriptor.digest`" >> $GITHUB_OUTPUT
7272
7373
- name: Generate artifact attestation
7474
uses: actions/attest-build-provenance@v2

flake.nix

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,26 @@
159159
packages.apollo-mcp
160160
];
161161

162-
config = {
162+
config = let
163+
sse-port = 5000;
164+
in {
163165
# Make the entrypoint the server
164-
Entrypoint = ["apollo-mcp-server" "-d" "/data"];
166+
Entrypoint = [
167+
"apollo-mcp-server"
168+
169+
# Always consider /data to be the CWD for the process
170+
"-d"
171+
"/data"
172+
173+
# Use SSE transport by default, bound to all addresses
174+
"--sse-address"
175+
"0.0.0.0"
176+
"--sse-port"
177+
"${builtins.toString sse-port}"
178+
];
179+
180+
# Listen on container port for SSE requests
181+
Expose = "${builtins.toString sse-port}/tcp";
165182

166183
# Drop to local user
167184
User = "1000";

0 commit comments

Comments
 (0)