Skip to content

Commit 97ae4e5

Browse files
[Docs] Update MCP authentication from headers to query parameters
1 parent 34067c0 commit 97ae4e5

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

apps/portal/src/app/ai/mcp/page.mdx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ You can use the thirdweb MCP server to interact with the thirdweb API from your
77
You can access the MCP server at the following url, with your project secret key.
88

99
```http
10-
# endpoint
11-
POST /mcp
12-
Host: api.thirdweb.com
13-
14-
# auth header (required)
15-
x-secret-key <your-project-secret-key>
10+
POST https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>
1611
```
1712

13+
Make sure to keep your secret key safe and never share it with anyone.
14+
1815
### Usage with LLM clients
1916

2017
You can also use the MCP server on your own LLM client, like cursor, claude code and more. Refer to your LLM client's documentation for more information.
@@ -27,10 +24,7 @@ Add the following to your `.cursor/mcp.json` file:
2724
{
2825
"mcpServers": {
2926
"thirdweb-api": {
30-
"url": "https://api.thirdweb.com/mcp",
31-
"headers": {
32-
"x-secret-key": "<your-project-secret-key>"
33-
}
27+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
3428
}
3529
}
3630
}
@@ -50,10 +44,7 @@ client = MultiServerMCPClient(
5044
{
5145
"thirdweb-api": {
5246
"transport": "streamable_http",
53-
"url": "https://api.thirdweb.com/mcp",
54-
"headers": {
55-
"x-secret-key": "<your-project-secret-key>"
56-
},
47+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
5748
}
5849
}
5950
)

0 commit comments

Comments
 (0)