problem when connecting to MCP Supabase through VS Code plugin Roo Code

A problem when connecting to MCP Supabase through VS Code plugin Roo Code gives an error. The process was performed according to the spraying instructions, the connection is tightened. You can request the name of the table, but you can not create a table, when creating it, you get this error: Error executing MCP tool: 32 minutes ago MCP error -32603: read ECONNRESET I have a local installed on the VDS server to add Supabase. #help-and-questions
44 Replies
Lordvickthor
Lordvickthor2mo ago
I can help you fix the ECONNRESET issue by checking your Roo Code–Supabase setup, network configs, and permissions. Are the required ports open and SSL properly set on your VDS? @CHESS & LESSONS
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Why do I need SSL? Everything works in the version of the CLI installation for VDS. I also installed Supabase on another VDS according to another instruction according to your official instruction: Get the code cyt cloning is 1 https://github.com/supabase/supabase Create your new supabase project catalog macdir soupas project A tree should look like this . - soupabase is a project to develop SUPABEIES Copy files to create your project cp -rf supabase/docker/* supabase project Copy fake envverses cp supabase/docker/.env.example supabase-project/.env Go to the project directory cd supabase project Draw out the latest images docker write traction Run services (in a separate mode) The docker compiled -d -- I didn't do anything else. And in this case, MCP Supabase doesn't work...
GitHub
GitHub - supabase/supabase: The Postgres development platform. Supa...
The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications. - supabase/supabase
Lordvickthor
Lordvickthor2mo ago
It sounds like your CLI setup works, but Roo Code via MCP may require some additional network or connection handling that the CLI abstracts away. I can help you troubleshoot and get MCP Supabase working directly on your VDS. Would you like me to assist you with that setup? @CHESS & LESSONS
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
that would be great, what do I need for this? Should I write you an IP address and password? What am I doing wrong?
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
No description
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
I took the port from env, after installing Supabase . i.e. I can't connect to postgres
No description
inder
inder2mo ago
Are you self-hosting supabase using docker-compose?
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Yes, according to these instructions.
No description
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
I specify my IP address in the host. I connect via http it turns out
inder
inder2mo ago
Inside your .env file you'll find a POOLER_TENANT_ID variable. Copy that And in the username field enter: postgres.<THE_VALUE_OF_POOLER_TENANT_ID
inder
inder2mo ago
No description
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
No description
No description
inder
inder2mo ago
try with port 5432. 6543 is more for one time connections The software you're using looks like a db client so it will need a persistent connection to db
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
I've tried everything. I don't understand what the problem is. I've installed 5432 now, but it's still an error.
inder
inder2mo ago
Is the port 5432 open on your server firewall? Did you send the password to this user?
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
No. I didn't send it.
Here is the verification of the port : root@supabase:~/supabase-project# telnet localhost 5432 Trying 127.0.0.1... telnet: Unable to connect to remote host: Connection refused
inder
inder2mo ago
This user is spamming the server with AI generated answers. Have you checked firewall? This seems to be a firewall issue What cloud provider are you using?
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Yes I did:root@supabase:~/supabase-project# ss -tuln | grep 5432 root@supabase:~/supabase-project# iptables -L -n | grep 5432 root@supabase:~/supabase-project# ufw status Command 'ufw' not found, but can be installed with: apt install ufw FirstVDS, I wrote to their technical support service and they informed me that there were no locks on their part. the most amazing thing is that I installed Supabase using the CLI method, everything connected there from the first The most amazing thing is that I installed Supabase using the CLI method, everything connected there the first time.
inder
inder2mo ago
Wait. I'm setting up supabase on an ec2 instance and will share db creds with you
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
well, thank you
inder
inder2mo ago
ip: 13.201.180.134 port: 5432 pass: ef751ed83dbdcb9787b64b31562775bd username: postgres.your-tenant-id db is same
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
in my opinion, it turned out to be connected. and what settings have you applied in env and what instructions were used to install it?
inder
inder2mo ago
The self-hosting guide you've been following You mention that you've checked firewall. ufw isn't installed so it isn't enabled. But this is for the server itself. Does your cloud provider have its own firewall? For example, in ec2 instances there are security groups and we have to open ports from there
inder
inder2mo ago
No description
inder
inder2mo ago
Both inbound and outbound connections need to be open
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
the provider reported that it has a firewall that It blocks it.
inder
inder2mo ago
Yeah, so you'll have to open port 5432 from this firewall for this to work both inbound and outbound
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Can you tell me how to do this? I'm not good at this
inder
inder2mo ago
I found this guide https://firstvds.ru/technology/rabota-firewall-v-ispmanager Don't know if the translation was correct or not
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
I understood. thank you very much. For your help. I went to open the port and check I figured out what the problem was. I have one container in constant restart.: supabase-pooler supabase/supavisor:2.5.7 "/usr/bin/tini -s -g…" supavisor About a minute ago Restarting (1) 5 seconds ago
inder
inder2mo ago
Have you checked the logs for any error msg
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
** (ErlangError) Erlang error: {:badarg, {~c"aead.c", 90}, ~c"Unknown cipher or invalid key size"}:
inder
inder2mo ago
After cloning the repo which env variables did you update in env file
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
These are
inder
inder2mo ago
I believe you either modified the SECRET_KEY_BASE or VAULT_ENC_KEY And thats causing this issue Try using the default values for these 2 variables The value which was present in .env.example
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Yes, yes, I changed them, I think I made them too short.
inder
inder2mo ago
And then restart the containers
docker compose up -d --force-recreate
docker compose up -d --force-recreate
Yup thats exactly the issue
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
or you can send these 2 values or the examplfiles themselves, because it has been deleted from me.
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Hooray! It helped. We are geniuses.
inder
inder2mo ago
In the future, if you have any queries regarding the self hosted supabase make sure to tag self-hosted and also don't share your project credentials with anyone.
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Yes, I got it, no problem, thanks again for the advice. or can you say that I can also send requests for the availability of information about tables, but I can't create tables through the MCP server, right?
inder
inder2mo ago
I have never used MCP server so can't say on that You can post a new question and someone might answer
CHESS & LESSONS
CHESS & LESSONSOP2mo ago
Yes, I got it well, thank you very much.

Did you find this page helpful?