Skip to content

Commit bce784c

Browse files
authored
Update cursor.mdx
Adds new instructions
1 parent 56ffa60 commit bce784c

File tree

1 file changed

+33
-3
lines changed
  • website/src/pages/en/ai-suite/token-api-mcp

1 file changed

+33
-3
lines changed

website/src/pages/en/ai-suite/token-api-mcp/cursor.mdx

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,30 @@ Create or edit your `~/.cursor/mcp.json` file.
1818

1919
> **Cursor Settings** > **MCP** > **Add new global MCP Server**
2020
21+
**REST-based MCP**
2122
```json label="mcp.json"
2223
{
2324
"mcpServers": {
24-
"mcp-pinax": {
25+
"token-api": {
2526
"command": "npx",
26-
"args": ["@pinax/mcp", "--sse-url", "https://token-api.mcp.thegraph.com/sse"],
27+
"args": ["@pinax/mcp", "--remote-url", "https://token-api.mcp.thegraph.com/"],
2728
"env": {
28-
"ACCESS_TOKEN": "<JWT Token from thegraph.market>"
29+
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
30+
}
31+
}
32+
}
33+
}
34+
```
35+
36+
**SQL-based MCP**
37+
```json label="mcp.json"
38+
{
39+
"mcpServers": {
40+
"token-api": {
41+
"command": "npx",
42+
"args": ["@pinax/mcp", "--remote-url", "https://token-api.mcp.thegraph.com/sql"],
43+
"env": {
44+
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
2945
}
3046
}
3147
}
@@ -38,6 +54,20 @@ Create or edit your `~/.cursor/mcp.json` file.
3854

3955
To enable logs for the MCP, use the `--verbose true` option.
4056

57+
```json label="mcp.json"
58+
{
59+
"mcpServers": {
60+
"token-api": {
61+
"command": "npx",
62+
"args": ["@pinax/mcp", "--remote-url", "https://token-api.mcp.thegraph.com/", "--verbose", "true"],
63+
"env": {
64+
"ACCESS_TOKEN": "<https://thegraph.market JWT Access Token>"
65+
}
66+
}
67+
}
68+
}
69+
```
70+
4171
### ENOENT
4272

4373
Try to use the full path of the command instead:

0 commit comments

Comments
 (0)