Skip to content

Commit 56ffa60

Browse files
authored
Update cline.mdx
Adds new instructions
1 parent c2ba125 commit 56ffa60

File tree

1 file changed

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

1 file changed

+36
-3
lines changed

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

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,57 @@ Create or edit your `cline_mcp_settings.json` file.
1818

1919
> **MCP Servers** > **Installed** > **Configure MCP Servers**
2020
21+
**REST-based MCP**
2122
```json label="cline_mcp_settings.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>"
2930
}
3031
}
3132
}
3233
}
3334
```
3435

36+
**SQL-based MCP**
37+
```json label="cline_mcp_settings.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>"
45+
}
46+
}
47+
}
48+
}
49+
```
50+
51+
> [!NOTE]
52+
> The previous `--sse-url` option is deprecated, use `--remote-url`.
53+
3554
## Troubleshooting
3655

3756
To enable logs for the MCP, use the `--verbose true` option.
3857

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

4174
![Cline error dialog showing 'ENOENT' system alert.](/img/cline-error.png)

0 commit comments

Comments
 (0)