From 1ac41690c0edfca4de28242eeed57960150f1493 Mon Sep 17 00:00:00 2001 From: armistace Date: Tue, 22 Jul 2025 21:44:05 +1000 Subject: [PATCH] first iteration of the service --- Dockerfile | 12 ++++++++++++ mcpo_config.json | 30 ++++++++++++++++-------------- 2 files changed, 28 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index e61728a..5722d27 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,7 @@ WORKDIR /mcpo COPY requirements.txt requirements.txt +<<<<<<< HEAD COPY mcpo_config.yaml mcpo_config.yaml COPY config_builder.py config_builder.py @@ -12,13 +13,24 @@ COPY gitea_mcp_set.sh gitea_mcp_set.sh COPY .env .env +======= +COPY mcpo_config.json mcpo_config.json + +COPY gitea_mcp_set.sh gitea_mcp_set.sh + +>>>>>>> d186565 (first iteration of the service) RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip RUN ./gitea_mcp_set.sh RUN pip install -r requirements.txt --break-system-packages +<<<<<<< HEAD RUN python3 config_builder.py EXPOSE 8000 ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"] +======= +EXPOSE 8000 +ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] +>>>>>>> d186565 (first iteration of the service) diff --git a/mcpo_config.json b/mcpo_config.json index 8d2423d..2ffd714 100644 --- a/mcpo_config.json +++ b/mcpo_config.json @@ -1,16 +1,18 @@ { - "mcpServers": { - "gitea_stdio": { - "command": "./gitea-mcp", - "args": [ - "-t", - "stdio", - "--host", - "https://git.aridgwayweb.com" - ], - "env": { - "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" - } - } - } + "mcpServers": { + "gitea_stdio": { + "command": "gitea-mcp", + "args": ["-t", "stdio", "--host", "https://git.aridgwayweb.com"], + "env": { + "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" + } + }, + "homeassistant": { + "type": "sse", + "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse", + "headers": { + "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk" + } + } + } }