diff --git a/docs/server-json/examples.md b/docs/server-json/examples.md index fe44ed3..361c76d 100644 --- a/docs/server-json/examples.md +++ b/docs/server-json/examples.md @@ -9,8 +9,7 @@ "status": "active", "repository": { "url": "https://github.com/modelcontextprotocol/servers", - "source": "github", - "id": "abc123de-f456-7890-ghij-klmnopqrstuv" + "source": "github" }, "version_detail": { "version": "1.0.2" diff --git a/docs/server-json/schema.json b/docs/server-json/schema.json index 1d8e3cb..f139f39 100644 --- a/docs/server-json/schema.json +++ b/docs/server-json/schema.json @@ -8,8 +8,7 @@ "type": "object", "required": [ "url", - "source", - "id" + "source" ], "properties": { "url": { diff --git a/internal/model/model.go b/internal/model/model.go index ad38bee..752cde8 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -31,7 +31,7 @@ type PublishRequest struct { type Repository struct { URL string `json:"url" bson:"url"` Source string `json:"source" bson:"source"` - ID string `json:"id" bson:"id"` + ID string `json:"id,omitempty" bson:"id,omitempty"` } // ServerList represents the response for listing servers as defined in the spec