Skip to content

Changes in MCP template for registry ingestion needed #6788

@timheuer

Description

@timheuer

Description

The MCP template needs a few changes for ingesting into the MCP registry as the server.json spec has changed (source: https://github.com/modelcontextprotocol/registry/blob/main/docs/reference/server-json/generic-server-json.md). Specifically in .mcp/server.json:

  • registry_name needs to be registry_type
  • name needs to be identifier in the packages
  • remove version_details and just add version as root property
  • A new value is needed for transport in the packages property in the form of:
      "transport":{
        "type": "stdio"
      }

Example of a corrected packages property:

  "version": "0.1.0-beta",
  "packages": [
    {
      "registry_type": "nuget",
      "identifier": "<your package ID here>",
      "version": "0.1.0-beta",
      "transport":{
        "type": "stdio"
      },
      "package_arguments": [],
      "environment_variables": []
    }
  ]

Reproduction Steps

Using the template today try to publish using mcp-publisher

Expected behavior

Successful publish

Actual behavior

Errors on missing properties

Regression?

No, spec changed

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

Labels

area-ai-templatesMicrosoft.Extensions.AI.TemplatesbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions