Skip to content

Commit 75116ba

Browse files
Copilottimheuerjoelverhagen
authored
Update MCP template for new registry specification (#6796)
* Initial plan * Update MCP template server.json for new registry specification Co-authored-by: timheuer <[email protected]> * Fix root property name from 'id' back to 'name' in MCP server.json template Co-authored-by: timheuer <[email protected]> * Update schema URI to use static.modelcontextprotocol.io and server.schema.json Co-authored-by: joelverhagen <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: timheuer <[email protected]> Co-authored-by: joelverhagen <[email protected]>
1 parent af84086 commit 75116ba

File tree

2 files changed

+14
-12
lines changed
  • src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/McpServer/McpServer-CSharp/.mcp
  • test/ProjectTemplates/Microsoft.Extensions.AI.Templates.IntegrationTests/Snapshots/mcpserver.Basic.verified/mcpserver/.mcp

2 files changed

+14
-12
lines changed
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
2-
"$schema": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json",
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
33
"description": "<your description here>",
44
"name": "io.github.<your GitHub username here>/<your repo name>",
5+
"version": "0.1.0-beta",
56
"packages": [
67
{
7-
"registry_name": "nuget",
8-
"name": "<your package ID here>",
8+
"registry_type": "nuget",
9+
"identifier": "<your package ID here>",
910
"version": "0.1.0-beta",
11+
"transport": {
12+
"type": "stdio"
13+
},
1014
"package_arguments": [],
1115
"environment_variables": []
1216
}
1317
],
1418
"repository": {
1519
"url": "https://github.com/<your GitHub username here>/<your repo name>",
1620
"source": "github"
17-
},
18-
"version_detail": {
19-
"version": "0.1.0-beta"
2021
}
2122
}
Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
{
2-
"$schema": "https://modelcontextprotocol.io/schemas/draft/2025-07-09/server.json",
2+
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-07-09/server.schema.json",
33
"description": "<your description here>",
44
"name": "io.github.<your GitHub username here>/<your repo name>",
5+
"version": "0.1.0-beta",
56
"packages": [
67
{
7-
"registry_name": "nuget",
8-
"name": "<your package ID here>",
8+
"registry_type": "nuget",
9+
"identifier": "<your package ID here>",
910
"version": "0.1.0-beta",
11+
"transport": {
12+
"type": "stdio"
13+
},
1014
"package_arguments": [],
1115
"environment_variables": []
1216
}
1317
],
1418
"repository": {
1519
"url": "https://github.com/<your GitHub username here>/<your repo name>",
1620
"source": "github"
17-
},
18-
"version_detail": {
19-
"version": "0.1.0-beta"
2021
}
2122
}

0 commit comments

Comments
 (0)