From e6a7356866c6b477b150083f622d33cb4d36394a Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Mon, 30 Jun 2025 16:58:44 -0600 Subject: [PATCH] combining many mcps --- openwebui/mcp-servers/docker-compose.yml | 18 ++++-------------- openwebui/mcp-servers/mcpo-config.json | 12 ++++++++++++ openwebui/mcp-servers/playwright.Dockerfile | 5 +++-- 3 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 openwebui/mcp-servers/mcpo-config.json diff --git a/openwebui/mcp-servers/docker-compose.yml b/openwebui/mcp-servers/docker-compose.yml index 409b52a..51c102f 100644 --- a/openwebui/mcp-servers/docker-compose.yml +++ b/openwebui/mcp-servers/docker-compose.yml @@ -1,22 +1,12 @@ services: - sequential: - container_name: sequential_thinking - build: - context: . - dockerfile: npx-uvx.Dockerfile - # restart: always - command: uvx mcpo --port 3901 -- npx -y @modelcontextprotocol/server-sequential-thinking - ports: - - 3901:3901 - - playwright: - container_name: playwrite_mcp + many_mcp: + container_name: many_mcp build: context: . dockerfile: playwright.Dockerfile # restart: always ports: - - "3902:3902" # MCP port + - 3901:3901 playwright_novnc: build: @@ -29,4 +19,4 @@ services: - playwright # restart: always command: > - websockify --web=/opt/novnc --wrap-mode=ignore 3903 playwrite_mcp:5900 \ No newline at end of file + websockify --web=/opt/novnc --wrap-mode=ignore 3903 many_mcp:5900 \ No newline at end of file diff --git a/openwebui/mcp-servers/mcpo-config.json b/openwebui/mcp-servers/mcpo-config.json new file mode 100644 index 0000000..25af5d6 --- /dev/null +++ b/openwebui/mcp-servers/mcpo-config.json @@ -0,0 +1,12 @@ +{ + "mcpServers": { + "sequential": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"] + }, + "playwright": { + "command": "npx", + "args": ["-y", "@playwright/mcp@latest", "--isolated"] + } + } +} diff --git a/openwebui/mcp-servers/playwright.Dockerfile b/openwebui/mcp-servers/playwright.Dockerfile index 598988b..6c2ec06 100644 --- a/openwebui/mcp-servers/playwright.Dockerfile +++ b/openwebui/mcp-servers/playwright.Dockerfile @@ -43,9 +43,10 @@ fluxbox & x11vnc -nopw -display :99 -forever -shared & # Start Playwright MCP -uvx mcpo --port 3902 -- npx -y @playwright/mcp@latest --no-sandbox +uvx mcpo --port 3901 --config mcpo-config.json + EOF RUN chmod +x /playwright-start.sh - +COPY mcpo-config.json mcpo-config.json CMD ["/playwright-start.sh"]