-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from alexander-zuev/feat/infra
chore: add Docker and environment configuration files
- Loading branch information
Showing
8 changed files
with
193 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# Python | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
*.so | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
.pytest_cache/ | ||
.coverage | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
|
||
# Virtual Environment | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# macOS | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
Icon | ||
._* | ||
.DocumentRevisions-V100 | ||
.fseventsd | ||
.Spotlight-V100 | ||
.TemporaryItems | ||
.Trashes | ||
.VolumeIcon.icns | ||
.com.apple.timemachine.donotpresent | ||
|
||
# IDEs and Editors | ||
.idea/ | ||
.vscode/ | ||
*.swp | ||
*.swo | ||
*~ | ||
.project | ||
.classpath | ||
.settings/ | ||
*.sublime-workspace | ||
*.sublime-project | ||
|
||
# Local development | ||
.env.mcp | ||
.env.mcp2 | ||
*.log | ||
logs/ | ||
|
||
# Ignore local assets | ||
assets/ | ||
*.gif | ||
*.mp4 | ||
|
||
# Generated version file | ||
supabase_mcp/_version.py | ||
|
||
# Docs | ||
.llms-full.txt | ||
|
||
# Docker specific ignores | ||
Dockerfile | ||
.dockerignore | ||
docker-compose.yml | ||
docker-compose.yaml | ||
|
||
# Git | ||
.git/ | ||
.github/ | ||
.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
# .env.mcp.example | ||
SUPABASE_PROJECT_REF=your-project-ref # default is local supabase project ref if not set | ||
SUPABASE_DB_PASSWORD=your-db-password # default is local supabase db password if not set | ||
# Supabase MCP Server Environment Configuration | ||
# Copy this file to .env to configure your server | ||
|
||
# Required for remote Supabase projects (optional for local development) | ||
SUPABASE_PROJECT_REF=your-project-ref # Your project reference from dashboard URL | ||
SUPABASE_DB_PASSWORD=your-db-password # Database password for your project | ||
|
||
# Optional configuration | ||
SUPABASE_REGION=us-east-1 # Region where your Supabase project is hosted (defaults to us-east-1) | ||
SUPABASE_ACCESS_TOKEN=your-personal-access-token # Required for Management API tools | ||
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key # Required for Auth Admin SDK tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Description | ||
|
||
<!-- Provide a clear and concise description of what this PR accomplishes --> | ||
|
||
## Type of Change | ||
|
||
- [ ] Bug fix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) | ||
- [ ] Documentation update | ||
- [ ] Performance improvement | ||
- [ ] Code refactoring (no functional changes) | ||
- [ ] Test updates | ||
- [ ] CI/CD or build process changes | ||
- [ ] Other (please describe): | ||
|
||
## Checklist | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] New and existing unit tests pass locally with my changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,3 +77,4 @@ supabase_mcp/_version.py | |
|
||
# Docs | ||
.llms-full.txt | ||
COMMIT_CONVENTION.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM python:3.12-slim-bookworm | ||
|
||
WORKDIR /app | ||
|
||
# Install PostgreSQL client libraries (required for psycopg2) and curl for uv installation | ||
RUN apt-get update && apt-get install -y \ | ||
libpq-dev \ | ||
gcc \ | ||
curl \ | ||
ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# # Install uv with fixed version | ||
ENV UV_VERSION="0.6.1" | ||
ADD https://astral.sh/uv/${UV_VERSION}/install.sh /uv-installer.sh | ||
RUN sh /uv-installer.sh && rm /uv-installer.sh | ||
# Ensure the installed binary is on the `PATH` | ||
ENV PATH="/root/.local/bin/:$PATH" | ||
|
||
# # Copy the project into the image | ||
COPY . /app | ||
WORKDIR /app | ||
|
||
# Create venv and install dependencies with version set | ||
ENV SETUPTOOLS_SCM_PRETEND_VERSION="0.3.6" | ||
RUN uv venv && \ | ||
. .venv/bin/activate && \ | ||
uv pip install . | ||
|
||
# Set the entrypoint to use the venv | ||
ENTRYPOINT ["uv", "run", "supabase-mcp-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters