Skip to content

Commit ba7886b

Browse files
committed
Adding mcp.json to .vscode folder
1 parent ac78a42 commit ba7886b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ You are an ai assistant tasked assisting the developer to build and deploy MCP S
33
Here are some specific requirements and pieces of context:
44

55
- This must build a working Azure Function project complete with code, Readme changes, and AZD bicep. The original repo is already in this state, so your job is to preserve it.
6+
- If I ever ask you to run a tool (e.g. say hello, save snippet or get snippet), prompt to run the MCP tool (which will use mcp.json) and never try to get me to rerun this project or a process to run the tool first.
67
- AZD and the func (aka Azure Functions Core Tools) commandline tools are the main tools to be used for deployment, provisioning and running locally. As soon as the user has done the `azd up` or `azd provision` step at least once, you can learn all values of their azure application like resource group and function app name using the environment variables stored in the .azure folder. Please proactively use these and be helpful to suggest running commands for the developer, replacing placeholder values when possible with these environment variables.
78
- This particular project is dotnet-isolated (.NET 8) Azure Function in C#
89
- We prefer using Azure Functions bindings if they can work versus the Azure SDKs, but Azure SDKs are ok if there is no substitute.

.vscode/mcp.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"inputs": [
3+
{
4+
"type": "promptString",
5+
"id": "functions-mcp-extension-system-key",
6+
"description": "Azure Functions MCP Extension System Key",
7+
"password": true
8+
},
9+
{
10+
"type": "promptString",
11+
"id": "functionapp-name",
12+
"description": "Azure Functions App Name"
13+
}
14+
],
15+
"servers": {
16+
"remote-mcp-function": {
17+
"type": "sse",
18+
"url": "https://${input:functionapp-name}.azurewebsites.net/runtime/webhooks/mcp/sse",
19+
"headers": {
20+
"x-functions-key": "${input:functions-mcp-extension-system-key}"
21+
}
22+
},
23+
"local-mcp-function": {
24+
"type": "sse",
25+
"url": "http://0.0.0.0:7071/runtime/webhooks/mcp/sse"
26+
}
27+
}
28+
}

0 commit comments

Comments
 (0)