Skip to content

Commit 43fc682

Browse files
authored
Merge pull request #17 from supabase-community/docs/clarify-cli-usage
docs: clarify cli usage
2 parents fb29985 + 50b033c commit 43fc682

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,7 @@ This will be used to authenticate the MCP server with your Supabase account. Mak
2626

2727
### 2. Configure MCP client
2828

29-
Next, configure your MCP client (like Cursor) with the following command:
30-
31-
```shell
32-
npx -y @supabase/mcp-server-supabase@latest --access-token=<personal-access-token>
33-
```
34-
35-
Replacing `<personal-access-token>` with the token you created in step 1. If you are on Windows, you will need to [prefix this command](#windows).
36-
37-
#### JSON format
38-
39-
Most MCP clients store the configuration as JSON in the following format:
29+
Next, configure your MCP client (such as Cursor) to use this server. Most MCP clients store the configuration as JSON in the following format:
4030

4131
```json
4232
{
@@ -54,6 +44,16 @@ Most MCP clients store the configuration as JSON in the following format:
5444
}
5545
```
5646

47+
Replace `<personal-access-token>` with the token you created in step 1. If you are on Windows, you will need to [prefix this command](#windows).
48+
49+
If your MCP client doesn't accept JSON, the direct CLI command is:
50+
51+
```shell
52+
npx -y @supabase/mcp-server-supabase@latest --access-token=<personal-access-token>
53+
```
54+
55+
> Note: Do not run this command directly - this is meant to be executed by your MCP client in order to start the server. `npx` automatically downloads the latest version of the MCP server from `npm` and runs it in a single command.
56+
5757
#### Windows
5858

5959
On Windows, you will need to prefix the command with `cmd /c`:

0 commit comments

Comments
 (0)