Skip to content

Commit df3a523

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

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ 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

1813
### Usage with LLM clients
@@ -27,10 +22,7 @@ Add the following to your `.cursor/mcp.json` file:
2722
{
2823
"mcpServers": {
2924
"thirdweb-api": {
30-
"url": "https://api.thirdweb.com/mcp",
31-
"headers": {
32-
"x-secret-key": "<your-project-secret-key>"
33-
}
25+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
3426
}
3527
}
3628
}
@@ -50,10 +42,7 @@ client = MultiServerMCPClient(
5042
{
5143
"thirdweb-api": {
5244
"transport": "streamable_http",
53-
"url": "https://api.thirdweb.com/mcp",
54-
"headers": {
55-
"x-secret-key": "<your-project-secret-key>"
56-
},
45+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>",
5746
}
5847
}
5948
)

0 commit comments

Comments
 (0)