Skip to content

Commit e7d5619

Browse files
fix: attempt #3 to fix smithery.ai
1 parent fb441ab commit e7d5619

File tree

2 files changed

+16
-27
lines changed

2 files changed

+16
-27
lines changed

Dockerfile

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,16 @@ FROM python:3.12-slim-bookworm
22

33
WORKDIR /app
44

5-
# Install PostgreSQL client libraries (required for psycopg2) and curl for uv installation
5+
# Prepare the basic dependencies
66
RUN apt-get update && apt-get install -y \
7-
libpq-dev \
8-
gcc \
9-
curl \
10-
ca-certificates \
117
&& rm -rf /var/lib/apt/lists/*
128

13-
# # Install uv with fixed version
14-
ENV UV_VERSION="0.6.1"
15-
ADD https://astral.sh/uv/${UV_VERSION}/install.sh /uv-installer.sh
16-
RUN sh /uv-installer.sh && rm /uv-installer.sh
17-
ENV PATH="/root/.local/bin/:$PATH"
18-
19-
# # Copy the project into the image
20-
COPY . /app
21-
WORKDIR /app
22-
23-
# Create venv and install dependencies with version set
24-
ENV SETUPTOOLS_SCM_PRETEND_VERSION="0.3.9"
25-
RUN uv venv && \
26-
. .venv/bin/activate && \
27-
uv pip install .
9+
# Install pipx
10+
RUN pip install --no-cache-dir pipx && \
11+
pipx ensurepath && \
12+
pipx install supabase-mcp-server
2813

14+
# Add pipx bin directory to PATH
15+
ENV PATH="/root/.local/bin:$PATH"
2916

30-
# Set the entrypoint to use the venv
31-
CMD ["uv", "--directory", ".", "run", "supabase_mcp/main.py"]
17+
CMD ["supabase-mcp-server"]

smithery.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ startCommand:
77
type: stdio
88
configSchema:
99
type: object
10-
required:
11-
- supabaseProjectRef
12-
- supabaseDbPassword
10+
required:
11+
- supabaseProjectRef
12+
- supabaseDbPassword
1313
properties:
1414
supabaseProjectRef:
1515
type: string
1616
description: The project reference of Supabase project you want to connect to. Connects to local instance if not provided.
17+
default: "127.0.0.1:54322"
1718
supabaseDbPassword:
1819
type: string
1920
description: The database password of Supabase project you want to connect to. Connects to local instance if not provided.
21+
default: "postgres"
2022
supabaseRegion:
2123
type: string
2224
description: Region where your Supabase project is hosted.
25+
default: "us-east-1"
2326
supabaseAccessToken:
2427
type: string
2528
description: Your Supabase access token (required for Management API tools).
@@ -29,8 +32,8 @@ startCommand:
2932
commandFunction:
3033
|-
3134
(config) => ({
32-
command: 'uv',
33-
args: ['--directory', '.', 'run', 'supabase_mcp/main.py'],
35+
command: 'supabase-mcp-server',
36+
args: [],
3437
env: {
3538
SUPABASE_PROJECT_REF: config.supabaseProjectRef,
3639
SUPABASE_DB_PASSWORD: config.supabaseDbPassword,

0 commit comments

Comments
 (0)