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
11 changes: 8 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ USER mcpuser
# Expose SSE port (default 8080)
EXPOSE 8080

# Default command: run SSE server on port 8080 in stateless mode
# Users can override with their own command to use stateful mode with --directory-path or --s3-bucket
CMD ["mcp-v8", "--sse-port", "8080", "--stateless"]
# Use ENTRYPOINT for the binary so CMD provides default arguments.
# This allows Docker MCP Registry and other orchestrators to override
# just the arguments (e.g. --stateless for stdio) without repeating the binary name.
ENTRYPOINT ["mcp-v8"]

# Default: run SSE server on port 8080 in stateless mode.
# Override with: docker run <image> --stateless (stdio), --http-port 8080 --stateless, etc.
CMD ["--sse-port", "8080", "--stateless"]

3 changes: 0 additions & 3 deletions docker-compose.cluster-stateless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ services:
node1:
build: .
command:
- mcp-v8
- --http-port=3000
- --stateless
- --cluster-port=4000
Expand All @@ -41,7 +40,6 @@ services:
node2:
build: .
command:
- mcp-v8
- --http-port=3000
- --stateless
- --cluster-port=4000
Expand All @@ -57,7 +55,6 @@ services:
node3:
build: .
command:
- mcp-v8
- --http-port=3000
- --stateless
- --cluster-port=4000
Expand Down
3 changes: 0 additions & 3 deletions docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ services:
node1:
build: .
command:
- mcp-v8
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
Expand All @@ -43,7 +42,6 @@ services:
node2:
build: .
command:
- mcp-v8
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
Expand All @@ -62,7 +60,6 @@ services:
node3:
build: .
command:
- mcp-v8
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
Expand Down
1 change: 0 additions & 1 deletion docker-compose.single-node-stateful.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ services:
node1:
build: .
command:
- mcp-v8
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
Expand Down
1 change: 0 additions & 1 deletion docker-compose.single-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ services:
node1:
build: .
command:
- mcp-v8
- --http-port=3000
- --stateless
expose:
Expand Down
5 changes: 2 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,14 @@ services:
- ./policies:/policies:ro

mcp-js:
image: docker.io/wholelottahoopla/mcp-js:latest
build: .
command:
- mcp-v8
- --http-port=3000
- --directory-path=/data/heaps
- --session-db-path=/data/sessions
- --opa-url=http://opa:8181
tmpfs:
- /data
- /data:uid=1000,gid=1000
ports:
- "3000:3000"
depends_on:
Expand Down