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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ MCP client config (stdio):
}
```

### Docker / GHCR (streamable HTTP — for remote / metamcp wiring)
### Docker / GHCR (streamable HTTP — for remote wiring)

```bash
docker run -p 3900:3900 ghcr.io/cordfuse/barcoding-mcp:latest
Expand Down
31 changes: 19 additions & 12 deletions docker/compose.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# barcoding-mcp — the streamable-HTTP server that backs the metamcp endpoint.
# barcoding-mcp — the streamable-HTTP server.
#
# Deploy / update the endpoint (pull the published image, recreate on the
# metamcp network — this is the whole "update after a release" flow):
# Run it:
# docker compose -f docker/compose.yaml pull
# docker compose -f docker/compose.yaml up -d
#
# Pin a specific version: BARCODING_TAG=0.2.0 docker compose … up -d
# Local dev (build from src): docker compose -f docker/compose.yaml up -d --build
#
# The server listens on 127.0.0.1:3900 — point an MCP client at
# http://localhost:3900/mcp. To let another container reach it by name, attach
# both to a shared network (see the commented block at the bottom).
name: barcoding-mcp

services:
Expand All @@ -19,11 +22,9 @@ services:
environment:
PORT: "3900"
ports:
# localhost-only; metamcp reaches this by container name over the shared network.
# localhost-only.
- "127.0.0.1:3900:3900"
restart: unless-stopped
networks:
- metamcp
healthcheck:
# node is present in the runtime image; no curl/wget needed.
test:
Expand All @@ -36,9 +37,15 @@ services:
retries: 3
start_period: 10s

networks:
# Created by the metamcp compose project; we attach so the aggregator can
# reach us by container name (http://barcoding-mcp:3900/mcp).
metamcp:
external: true
name: metamcp_metamcp-network
# Joining an existing network (e.g. an aggregator that reaches this by container
# name at http://barcoding-mcp:3900/mcp) — add to the service above:
#
# networks:
# - shared
#
# and declare it here:
#
# networks:
# shared:
# external: true
# name: <the-other-project>_<network>
Loading