first iteration of the service

This commit is contained in:
armistace 2025-07-22 21:44:05 +10:00
parent 91f070c985
commit 1ac41690c0
2 changed files with 28 additions and 14 deletions

View File

@ -4,6 +4,7 @@ WORKDIR /mcpo
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt
<<<<<<< HEAD
COPY mcpo_config.yaml mcpo_config.yaml COPY mcpo_config.yaml mcpo_config.yaml
COPY config_builder.py config_builder.py COPY config_builder.py config_builder.py
@ -12,13 +13,24 @@ COPY gitea_mcp_set.sh gitea_mcp_set.sh
COPY .env .env 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 apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip
RUN ./gitea_mcp_set.sh RUN ./gitea_mcp_set.sh
RUN pip install -r requirements.txt --break-system-packages RUN pip install -r requirements.txt --break-system-packages
<<<<<<< HEAD
RUN python3 config_builder.py RUN python3 config_builder.py
EXPOSE 8000 EXPOSE 8000
ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"] ENTRYPOINT ["mcpo", "--config", "/mcpo/config.json"]
=======
EXPOSE 8000
ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"]
>>>>>>> d186565 (first iteration of the service)

View File

@ -1,16 +1,18 @@
{ {
"mcpServers": { "mcpServers": {
"gitea_stdio": { "gitea_stdio": {
"command": "./gitea-mcp", "command": "gitea-mcp",
"args": [ "args": ["-t", "stdio", "--host", "https://git.aridgwayweb.com"],
"-t", "env": {
"stdio", "GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480"
"--host", }
"https://git.aridgwayweb.com" },
], "homeassistant": {
"env": { "type": "sse",
"GITEA_ACCESS_TOKEN": "bac6a1e753d6f2c0b848bd1cbad82965b43ea480" "url": "https://homeassistant.aridgwayweb.com/mcp_server/sse",
} "headers": {
} "Authorization": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiIwZmM4ZTIyNGFlOGI0MGIxOWJmNWE2YzI3NmRkYTBkYiIsImlhdCI6MTc1MzE4MzUwNSwiZXhwIjoyMDY4NTQzNTA1fQ.At_LG5QAuIzeM470tTokbp-XIq3ytf7j5SsAmpoPrLk"
} }
}
}
} }