Skip to content

Commit 36acea7

Browse files
committed
fix: remove redundant /mcp suffix from API endpoints
1 parent fbf8bc6 commit 36acea7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Alternatively, connect directly to PageIndex without this wrapper:
8282
"mcpServers": {
8383
"pageindex": {
8484
"type": "http",
85-
"url": "https://dash.pageindex.ai/api/mcp/mcp",
85+
"url": "https://dash.pageindex.ai/api/mcp",
8686
"headers": {
8787
"Authorization": "Bearer <YOUR_PAGEINDEX_API_KEY>"
8888
}

src/client/mcp-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class PageIndexMcpClient {
3030

3131
await pRetry(
3232
async () => {
33-
const streamableHttpUrl = new URL(`${config.apiUrl}/api/mcp/mcp`);
33+
const streamableHttpUrl = new URL(`${config.apiUrl}/api/mcp`);
3434
streamableHttpUrl.searchParams.set('local_upload', '1');
3535

3636
const sseUrl = new URL(`${config.apiUrl}/api/mcp/sse`);

0 commit comments

Comments
 (0)