Skip to content

Commit 163bba2

Browse files
committed
fix: Move mcp-protocol-version to headers
1 parent 8406e57 commit 163bba2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

internal/server/static/js/loadTools.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ export async function loadTools(secondNavContent, toolDisplayArea, toolsetName)
3030
const url = toolsetName ? `/mcp/${toolsetName}` : `/mcp`;
3131
const response = await fetch(url, {
3232
method: 'POST',
33-
headers: { 'Content-Type': 'application/json' },
33+
headers: {
34+
'Content-Type': 'application/json',
35+
'MCP-Protocol-Version': '2025-11-25'
36+
},
3437
body: JSON.stringify({
3538
jsonrpc: "2.0",
3639
id: "1",
3740
method: "tools/list",
38-
'Mcp-Protocol-Version': '2025-11-25'
3941
})
4042
});
4143

internal/server/static/js/runTool.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export async function handleRunTool(toolId, form, responseArea, parameters, pret
9393
const mcpHeaders = {
9494
...headers,
9595
'Content-Type': 'application/json',
96-
'Mcp-Protocol-Version': '2025-11-25'
96+
'MCP-Protocol-Version': '2025-11-25'
9797
};
9898

9999
const response = await fetch(`/mcp`, {

0 commit comments

Comments
 (0)