Skip to content

Updating an mcp server metadata does not work #213

@twdsilva

Description

@twdsilva

Describe the bug
Updating an mcp server currently does not work. This is because the index in mongodb name_1_versiondetail.version_1 is created with the old column name. The columns was renamed in this commit.
5c238ec

To Reproduce
Steps to reproduce the behavior:

  1. Post mcp server metadata
 {
      "name": "tdsilva",
      "description": "Integrate the Productboard API into agentic workflows via MCP",
      "repository": {
        "url": "https://github.com/kenjihikmatullah/productboard-mcp",
        "source": "github",
        "id": "939104710"
      },
      "version_detail": {
        "version": "0.0.1",
        "release_date": "2025-05-16T19:12:44Z",
        "is_latest": true
      }
    }
  1. Update mcp server metadata
 {
      "name": "tdsilva",
      "description": "Integrate the Productboard API into agentic workflows via MCP",
      "repository": {
        "url": "https://github.com/kenjihikmatullah/productboard-mcp",
        "source": "github",
        "id": "939104710"
      },
      "version_detail": {
        "version": "0.0.2",
        "release_date": "2025-05-16T19:12:44Z",
        "is_latest": true
      }
    }

We get an error
Failed to publish server details: record already exists

Expected behavior
Update should suceed
Logs
If applicable, add logs to help explain your problem.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions