diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..10ba1d8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:stable + +WORKDIR /mcpo + +COPY requirements.txt requirements.txt + +COPY mcpo_config.json mcpo_config.json + +COPY gitea_mcp_set.sh gitea_mcp_set.sh + +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 + +EXPOSE 8000 +ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"] diff --git a/gitea_mcp_set.sh b/gitea_mcp_set.sh new file mode 100755 index 0000000..81a37da --- /dev/null +++ b/gitea_mcp_set.sh @@ -0,0 +1,10 @@ +#!/bin/bash +# This script will download and establish gitea-mcp as a binary for use by mcpo in this container + +wget https://gitea.com/gitea/gitea-mcp/releases/download/v0.3.0/gitea-mcp_Linux_x86_64.tar.gz + +tar -xvf gitea-mcp_Linux_x86_64.tar.gz + +cp gitea-mcp /usr/local/bin + +rm -rf gitea-mcp* README* LICENSE 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" + } + } + } }