From 1a8d216ceaff0a63128a6d606b4c1162a178f705 Mon Sep 17 00:00:00 2001 From: armistace Date: Mon, 28 Jul 2025 15:12:56 +1000 Subject: [PATCH 1/3] add postgres --- mcpo_config.yaml | 5 +++++ requirements.txt | 1 + 2 files changed, 6 insertions(+) diff --git a/mcpo_config.yaml b/mcpo_config.yaml index 0f93208..424a619 100644 --- a/mcpo_config.yaml +++ b/mcpo_config.yaml @@ -9,3 +9,8 @@ mcpServers: url: "https://homeassistant.aridgwayweb.com/mcp_server/sse" headers: Authorization: !ENV ${HOMEASSISTANT_TOKEN} + postgres: + command: "uv" + args: ["run", "postgres-mcp", "--access-mode=unrestricted"] + env: + "DATABASE_URI": !ENV ${POSTGRES_URI} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index df16a19..9e6668c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ mcpo pyyaml python-dotenv pyaml_env +postgres-mcp \ No newline at end of file From c39b393503c4578204abb77949b07aac3e89b602 Mon Sep 17 00:00:00 2001 From: armistace Date: Mon, 28 Jul 2025 15:15:06 +1000 Subject: [PATCH 2/3] update pipeline --- .gitea/workflows/build_push.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build_push.yml b/.gitea/workflows/build_push.yml index ad32387..88325ca 100644 --- a/.gitea/workflows/build_push.yml +++ b/.gitea/workflows/build_push.yml @@ -39,6 +39,7 @@ jobs: run: | echo "GITEA_TOKEN=${{ secrets.GITEAMCPTOKEN }}" > .env echo "HOMEASSISTANT_TOKEN=${{ secrets.HOMEASSISTANTMCPTOKEN }}" >> .env + echo "POSTGRES_URI"=${{ secrets.POSTGRES_URI }}" >> .env - name: Build and push uses: docker/build-push-action@v5 From 1e3202c8698dfb9ba10386acc0c917eb0bf3fbe6 Mon Sep 17 00:00:00 2001 From: armistace Date: Mon, 28 Jul 2025 15:18:01 +1000 Subject: [PATCH 3/3] don't use uv, debian not ready for that --- mcpo_config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mcpo_config.yaml b/mcpo_config.yaml index 424a619..f1330cf 100644 --- a/mcpo_config.yaml +++ b/mcpo_config.yaml @@ -10,7 +10,7 @@ mcpServers: headers: Authorization: !ENV ${HOMEASSISTANT_TOKEN} postgres: - command: "uv" - args: ["run", "postgres-mcp", "--access-mode=unrestricted"] + command: "postgres-mcp" + args: ["--access-mode=unrestricted"] env: "DATABASE_URI": !ENV ${POSTGRES_URI} \ No newline at end of file