Skip to content

Commit 03ae557

Browse files
authored
Merge pull request #49 from Azure-Samples/fix/issue-46
fix: Updated mcp.json and host.json to support streamable http - Fixes #46
2 parents 59ad262 + ad49056 commit 03ae557

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.vscode/mcp.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
],
1515
"servers": {
1616
"remote-snippy": {
17-
"type": "sse",
18-
"url": "https://${input:functionapp-name}.azurewebsites.net/runtime/webhooks/mcp/sse",
17+
"type": "http",
18+
"url": "https://${input:functionapp-name}.azurewebsites.net/runtime/webhooks/mcp/",
1919
"headers": {
2020
"x-functions-key": "${input:functions-mcp-extension-system-key}"
2121
}
2222
},
2323
"local-snippy": {
24-
"type": "sse",
25-
"url": "http://localhost:7071/runtime/webhooks/mcp/sse"
24+
"type": "http",
25+
"url": "http://localhost:7071/runtime/webhooks/mcp/"
2626
}
2727
}
2828
}

src/host.json

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,17 @@
1212
}
1313
},
1414
"extensionBundle": {
15-
"id": "Microsoft.Azure.Functions.ExtensionBundle.Experimental",
16-
"version": "[4.*, 5.0.0)"
17-
}
15+
"id": "Microsoft.Azure.Functions.ExtensionBundle.Preview",
16+
"version": "[4.0.0, 5.0.0)"
17+
},
18+
"extensions": {
19+
"mcp": {
20+
"instructions": "Snippy is an intelligent code snippet service with AI-powered analysis. Available tools: save_snippet (save code with vector embeddings), get_snippet (retrieve saved snippets by name), code_style (generate style guides from snippets), and deep_wiki (create comprehensive documentation). Use save_snippet with 'snippetname' and 'snippet' parameters, optionally include 'projectid'. Retrieve snippets using get_snippet with 'snippetname'. Generate documentation with code_style or deep_wiki, optionally providing 'chathistory' and 'userquery' for context.",
21+
"serverName": "Snippy",
22+
"serverVersion": "2.0.0",
23+
"messageOptions": {
24+
"useAbsoluteUriForEndpoint": false
25+
}
26+
}
27+
}
1828
}

0 commit comments

Comments
 (0)