Skip to content

Commit 45963ba

Browse files
authored
Merge pull request #14 from Azure-Samples/copilot/update-sample-with-python-changes
Migrate from APIM to Easy Auth, align with Python sample structure
2 parents 6a50d9e + bc365a5 commit 45963ba

21 files changed

+639
-853
lines changed

.vscode/mcp.json

Lines changed: 18 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,19 @@
11
{
2-
"servers": {
3-
"local-mcp-server": {
4-
"url": "http://localhost:7071/mcp",
5-
"type": "http"
6-
},
7-
"remote-mcp-server": {
8-
"type": "http",
9-
"url": "https://${input:functions-name}.azurewebsites.net/mcp",
10-
"headers": {
11-
"x-functions-key": "${input:functions-key}"
12-
}
13-
},
14-
"remote-mcp-server-apim": {
15-
"url": "https://${input:apim-name}.azure-api.net/mcp",
16-
"type": "http"
17-
}
18-
},
19-
"inputs": [
20-
{
21-
"type": "promptString",
22-
"id": "functions-key",
23-
"description": "Functions App Key",
24-
"password": true
25-
},
26-
{
27-
"type": "promptString",
28-
"id": "functions-name",
29-
"description": "Functions App Name",
30-
"password": false
31-
},
32-
{
33-
"type": "promptString",
34-
"id": "apim-name",
35-
"description": "API Management Name",
36-
"password": false
37-
}
38-
]
39-
}
2+
"servers": {
3+
"local-mcp-server": {
4+
"type": "http",
5+
"url": "http://localhost:7071/mcp"
6+
},
7+
"remote-mcp-server": {
8+
"type": "http",
9+
"url": "https://${input:functionapp-domain}/mcp",
10+
}
11+
},
12+
"inputs": [
13+
{
14+
"type": "promptString",
15+
"id": "functionapp-domain",
16+
"description": "The domain of the function app."
17+
}
18+
]
19+
}

ExistingServer.md

Lines changed: 0 additions & 120 deletions
This file was deleted.

Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77

88
var builder = WebApplication.CreateBuilder(args);
99

10-
var port = Environment.GetEnvironmentVariable("FUNCTIONS_CUSTOMHANDLER_PORT") ?? "8080";
11-
builder.WebHost.UseUrls($"http://0.0.0.0:{port}");
10+
builder.WebHost.UseUrls("http://0.0.0.0:8080");
1211

1312
builder.Services.AddMcpServer()
1413
.WithHttpTransport((options) =>

0 commit comments

Comments
 (0)