diff --git a/internal/model/model.go b/internal/model/model.go index 2f908ca..7090ff5 100644 --- a/internal/model/model.go +++ b/internal/model/model.go @@ -19,7 +19,7 @@ type Authentication struct { // PublishRequest represents a request to publish a server to the registry type PublishRequest struct { - ServerDetail ServerDetail `json:"server_detail"` + ServerDetail `json:",inline"` Authentication Authentication `json:"-"` // Now provided via Authorization header AuthStatusToken string `json:"-"` // Used internally for device flows } diff --git a/tools/publisher/main.go b/tools/publisher/main.go index 80b006a..638076f 100644 --- a/tools/publisher/main.go +++ b/tools/publisher/main.go @@ -294,9 +294,7 @@ func publishToRegistry(registryURL string, mcpData []byte, token string) error { } // Create the publish request payload (without authentication) - publishReq := map[string]interface{}{ - "server_detail": mcpDetails, - } + publishReq := mcpDetails // Convert the request to JSON jsonData, err := json.Marshal(publishReq)