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 diff --git a/mcpo_config.yaml b/mcpo_config.yaml index 0f93208..f1330cf 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: "postgres-mcp" + args: ["--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