Skip to content

Conversation

@bobbyhouse
Copy link
Contributor

What I did

Because we are now marshaling data into Server and storing that data as Snapshot as part of a server's data in a profile or catalog. we need the complete object that was being returned by docker mcp catalog show which read from the file to get the metadata.

I have updated the Server struct to include Metadata so that we now get data like the following in profiles and catalogs

   "metadata": {
        "pulls": 500,
        "category": "finance",
        "tags": [
          "finance",
        ],
        "license": "MIT License",
        "owner": "owner-name"
      }

Testing Instructions

Verify that you see the metadata for the zerodha-kite MCP server that includes pulls and owner

docker mcp catalog-next create docker-mcp-catalog --from-legacy-catalog https://desktop.docker.com/mcp/catalog/v3/catalog.json
docker mcp profile create --name metadata
docker mcp profile server add metadata --catalog docker-mcp-catalog --catalog-server zerodha-kite
docker mcp profile show metadata --format json

Related issue

(not mandatory) A picture of a cute animal, if possible in relation to what you did

Screenshot 2025-11-18 at 6 51 56 AM

Because we are marshalling the data we get from a catalog into a Server
object and storing it into the Snapshot. The snapshot becomes the source
of truth for information about the server. We need to include the
metadata as well.
@bobbyhouse bobbyhouse requested a review from a team as a code owner November 18, 2025 14:59
@bobbyhouse bobbyhouse merged commit 003edee into main Nov 18, 2025
8 checks passed
@bobbyhouse bobbyhouse deleted the mcpt-217-add-metadata-to-snapshot branch November 18, 2025 15:17
null-runner pushed a commit to null-runner/mcp-gateway that referenced this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants