Hermes runs in CoreDesktop's sandbox, with its own network, so it can't reach 127.0.0.1:8470. The app now also serves MCP on a Unix socket in its data folder (/data/mcp.sock), which Hermes reaches with socat. HTTP /mcp with the bearer token remains for other agents. hermes/setup.sh asks for the user's own hub token (the Core now issues per-user tokens), checks it with the hub, and stores it in Hermes' .env. The hub only speaks SSE, and Hermes' Streamable HTTP attempt can use up its connect time, so the setup sets transport: sse. It also warns when Hermes' gateway is still running with the old servers. Check-ins store the hub's own tool names, without Hermes' mcp__mcphub__ prefix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# Run through `supermarket` (bin/supermarket) or update.sh, which pass
|
|
# --env-file ~/.local/share/supermarket/compose.env with the values below.
|
|
name: supermarket
|
|
|
|
services:
|
|
supermarket:
|
|
build:
|
|
context: .
|
|
args:
|
|
VERSION: ${SUPERMARKET_VERSION:-dev}
|
|
image: supermarket:local
|
|
container_name: supermarket
|
|
restart: unless-stopped
|
|
init: true
|
|
# Run as you, so the files in the data folder stay yours.
|
|
user: "${SUPERMARKET_UID:?}:${SUPERMARKET_GID:?}"
|
|
# Only this computer can reach the app: it has no login of its own.
|
|
ports:
|
|
- "127.0.0.1:8470:8080"
|
|
environment:
|
|
SUPERMARKET_PUBLIC_URL: http://localhost:8470
|
|
# Where the data folder (and the MCP socket Hermes uses) is on the host
|
|
SUPERMARKET_HOST_DATA: ${SUPERMARKET_DATA:?}
|
|
volumes:
|
|
- ${SUPERMARKET_DATA:?}:/data
|
|
# LLM servers on this computer are at host.docker.internal.
|
|
extra_hosts:
|
|
- "host.docker.internal:host-gateway"
|
|
read_only: true
|
|
tmpfs:
|
|
- /tmp
|
|
cap_drop:
|
|
- ALL
|
|
security_opt:
|
|
- no-new-privileges:true
|