From cd7539b73d2cf70523e00f45bd762e48667811b8 Mon Sep 17 00:00:00 2001 From: "stephane.david" Date: Sat, 5 Sep 2026 17:01:47 +0200 Subject: [PATCH] Correct info linked to new image and add config.json file --- docker-compose.yml | 9 +++++++-- sources/config.json | 29 +++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 sources/config.json diff --git a/docker-compose.yml b/docker-compose.yml index bc7fd30..f2b5ec9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,7 @@ services: container_name: init-mcpo user: '0' command: > - sh -c "cp -fu /sources/config.yaml /app/" + sh -c "cp -fu /sources/config.json /app/" volumes: - ./sources:/sources # Chemin des stacks pour Hawser sous Ubuntu @@ -17,9 +17,14 @@ services: - mcponet mcpo: - image: ghcr.io/open-webui/mcpo:latest + image: ghcr.io/open-webui/mcpo:main container_name: mcpo restart: always + environment: + port: 8000 + api-key: "top-secret" + command: + - "--config /app/config.json" ports: - "8888:8000" volumes: diff --git a/sources/config.json b/sources/config.json new file mode 100644 index 0000000..342b659 --- /dev/null +++ b/sources/config.json @@ -0,0 +1,29 @@ +{ + "mcpServers": { + "memory": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-memory"] + }, + "time": { + "command": "uvx", + "args": ["mcp-server-time", "--local-timezone=Europe/Paris"], + "disabledTools": ["convert_time"] + }, + "dockhand": { + "type": "http", + "url": "http://dartydisk6.maison:8080" + }, + "mcp_sse": { + "type": "sse", + "url": "http://127.0.0.1:8001/sse", + "headers": { + "Authorization": "Bearer token", + "X-Custom-Header": "value" + } + }, + "mcp_streamable_http": { + "type": "streamable-http", + "url": "http://127.0.0.1:8002/mcp" + } + } +} \ No newline at end of file