supabase-mcp icon indicating copy to clipboard operation
supabase-mcp copied to clipboard

Client Closed with Cursor

Open phoenix-error opened this issue 8 months ago • 29 comments

Bug report

Describe the bug

Every time I try to use the supabase MCP it always says client closed

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Go to '…'
  2. Click on '…'
  3. Scroll down to '…'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: macOS

Additional context

Add any other context about the problem here.

phoenix-error avatar Apr 05 '25 14:04 phoenix-error

i have this same issue

jacobabiola avatar Apr 05 '25 15:04 jacobabiola

Same issue: 2025-04-05 09:29:11.125 [info] base: Client closed for command 2025-04-05 09:29:11.126 [error] base: Error in MCP: Client closed 2025-04-05 09:29:11.132 [info] base: Handling ListOfferings action 2025-04-05 09:29:11.132 [error] base: No server info found

On windows

thatguyrynodyno avatar Apr 05 '25 16:04 thatguyrynodyno

Same here

On macbook

niclastanskanen avatar Apr 05 '25 17:04 niclastanskanen

Same issue here

conticomp avatar Apr 05 '25 21:04 conticomp

Same problem here. Also doesn't work in Windsurf.

crsmoore avatar Apr 06 '25 03:04 crsmoore

Yes , same issue for me too.

growthriseagency avatar Apr 06 '25 09:04 growthriseagency

same here on mac

radzio avatar Apr 06 '25 20:04 radzio

Same here

rajinsyed avatar Apr 07 '25 10:04 rajinsyed

same here

Gadi-Chait avatar Apr 07 '25 11:04 Gadi-Chait

same here.

2025-04-07 16:44:24.976 [info] cial: Handling ReloadClient action 2025-04-07 16:44:24.976 [info] cial: getOrCreateClient for stdio server. process.platform: darwin isElectron: true 2025-04-07 16:44:24.976 [info] cial: Starting new stdio process with command: npx -y @supabase/mcp-server-supabase@latest --access-token sbp_XXXX8ab49e0e0df54b28ed08868db20ba65a0XXX 2025-04-07 16:44:26.659 [info] cial: Client closed for command 2025-04-07 16:44:26.659 [error] cial: Error in MCP: Client closed 2025-04-07 16:44:26.659 [error] cial: Failed to reload client: MCP error -32000: Connection closed 2025-04-07 16:44:26.660 [info] Tool: Handling ListOfferings action 2025-04-07 16:44:26.660 [info] Tool: Listing offerings 2025-04-07 16:44:26.660 [info] Tool: getOrCreateClient for stdio server. process.platform: darwin isElectron: true 2025-04-07 16:44:26.660 [info] Tool: Reusing existing stdio client 2025-04-07 16:44:26.660 [info] Tool: Connected to stdio server, fetching offerings 2025-04-07 16:44:26.664 [info] listOfferings: Found 7 tools 2025-04-07 16:44:26.664 [info] Tool: Found 7 tools, 0 resources, and 0 resource templates 2025-04-07 16:44:26.665 [info] rawl: Handling ListOfferings action 2025-04-07 16:44:26.665 [error] rawl: No server info found 2025-04-07 16:44:26.668 [info] -mcp: Handling ListOfferings action 2025-04-07 16:44:26.668 [error] -mcp: No server info found 2025-04-07 16:44:26.669 [info] cial: Handling ListOfferings action 2025-04-07 16:44:26.669 [error] cial: No server info found 2025-04-07 16:44:26.670 [info] gres: Handling ListOfferings action 2025-04-07 16:44:26.670 [info] gres: Listing offerings 2025-04-07 16:44:26.670 [info] gres: getOrCreateClient for stdio server. process.platform: darwin isElectron: true 2025-04-07 16:44:26.670 [info] gres: Reusing existing stdio client 2025-04-07 16:44:26.670 [info] gres: Connected to stdio server, fetching offerings 2025-04-07 16:44:26.672 [info] listOfferings: Found 1 tools 2025-04-07 16:44:26.672 [info] gres: Found 1 tools, 0 resources, and 0 resource templates 2025-04-07 16:44:27.218 [error] -mcp: Client error for command SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333 2025-04-07 16:44:27.218 [error] -mcp: Error in MCP: SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333 2025-04-07 16:44:30.227 [error] -mcp: Client error for command SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333 2025-04-07 16:44:30.228 [error] -mcp: Error in MCP: SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333 2025-04-07 16:44:33.233 [error] -mcp: Client error for command SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333 2025-04-07 16:44:33.233 [error] -mcp: Error in MCP: SSE error: TypeError: fetch failed: connect ECONNREFUSED 127.0.0.1:3333, connect ECONNREFUSED ::1:3333

feelfetch avatar Apr 07 '25 14:04 feelfetch

same issue on Linux

fls-pax avatar Apr 07 '25 17:04 fls-pax

Same issue on Mac with cursor and windsurf. Tried multiple versions of node and mcp with no resolution.

maycoth avatar Apr 08 '25 02:04 maycoth

Same here with Claude on Windows (both with the Claude app and via Cline + VS Code).

ApeOnFire avatar Apr 08 '25 20:04 ApeOnFire

Same here on Mac with Cursor

ghidoz avatar Apr 10 '25 09:04 ghidoz

Same for me on MacBook with Cursor

mohammedsagban avatar Apr 10 '25 09:04 mohammedsagban

Using @supabase/mcp-server-supabase instead of @supabase/mcp-server-supabase@latest solved it for me

aproli90 avatar Apr 14 '25 18:04 aproli90

Using @supabase/mcp-server-supabase instead of @supabase/mcp-server-supabase@latest solved it for me

this worked for me .. Legend

jacobabiola avatar Apr 14 '25 19:04 jacobabiola

@aproli90 and @jacobabiola glad you solved this though this is concerning that @latest fails. Can you confirm that you include a -y in front? ie:

npx -y @supabase/mcp-server-supabase@latest --access-token=<personal-access-token>

Edit: Another good step to debug is checking the version - what does this command give you?

npx -y @supabase/mcp-server-supabase@latest --version

gregnr avatar Apr 14 '25 19:04 gregnr

@aproli90 and @jacobabiola glad you solved this though this is concerning that @latest fails. Can you confirm that you include a -y in front? ie:

npx -y @supabase/mcp-server-supabase@latest --access-token= Edit: Another good step to debug is checking the version - what does this command give you?

npx -y @supabase/mcp-server-supabase@latest --version

Yes it includes -y in front.

Image

jacobabiola avatar Apr 14 '25 19:04 jacobabiola

Strange that -y didn't work with @latest - I'll keep digging into this.

Just a heads up - you leaked your access token in that screenshot - be sure to rotate it!

gregnr avatar Apr 14 '25 19:04 gregnr

Strange that -y didn't work with @latest - I'll keep digging into this.

Just a heads up - you leaked your access token in that screenshot - be sure to rotate it!

yes i rotated it. Thank you for letting me know though.

jacobabiola avatar Apr 14 '25 19:04 jacobabiola

I have had the same issue on windows for a while and have noticed if you manually change it from @supabase/mcp-server-supabase@latest to @supabase/[email protected] it fixes the issue.

ApplaudedTwo7 avatar Apr 14 '25 20:04 ApplaudedTwo7

@ApplaudedTwo7 what version of node and npx are you running? I wonder if this is affecting this.

node --version
npx --version

I've tried reproducing on macOS and Windows and both work with @latest on the following versions:

macOS:

node --version
v22.9.0
npx --version
10.8.3

Windows:

node --version
v22.14.0
npx --version
10.9.2

gregnr avatar Apr 14 '25 21:04 gregnr

@aproli90 and @jacobabiola glad you solved this though this is concerning that @latest fails. Can you confirm that you include a -y in front? ie:

npx -y @supabase/mcp-server-supabase@latest --access-token=

Edit: Another good step to debug is checking the version - what does this command give you?

npx -y @supabase/mcp-server-supabase@latest --version

I get error when trying to find the version of @latest

Image

aproli90 avatar Apr 14 '25 22:04 aproli90

wokrs! @latest removed. but interesting i had @latest tag in shopify dev MCP server it is works.

Image

eibrahimov avatar Apr 21 '25 09:04 eibrahimov

For anyone who can't get @latest working - can you confirm which Node.js and OS version you are on? I'll try to reproduce with the same setup.

gregnr avatar Apr 21 '25 16:04 gregnr

having the same issue, using Windows 11 with WSL. Same npx and node version. Doesnt work with removing @latest.

Movm avatar Apr 21 '25 23:04 Movm

@gregnr For me, removing @latest also made it work. Details:

  • Windows 11 Home 10.0.26100 (build 26100)
  • Node v18.20.4
  • NPM 10.9.0

Using NVM as well: Image

ErwinAI avatar Apr 23 '25 07:04 ErwinAI

Usando @supabase/mcp-server-supabaseem vez de @supabase/mcp-server-supabase@latestresolveu para mim

isso funcionou para mim .. Legenda

Isso funcionou pra mim <3

contatoagendainfinita avatar May 09 '25 17:05 contatoagendainfinita