registry icon indicating copy to clipboard operation
registry copied to clipboard

Unable to curl server that is published

Open MatthewDailey opened this issue 1 year ago • 6 comments

Describe the bug I tried to publish the https://github.com/ref-tools/ref-tools-mcp server and got a success message that did not match and am unable to verify the metadata via curl.

To Reproduce Steps to reproduce the behavior:

  1. Follow the publish instructions for an NPM package server. Possibly important this is an organization's repo.

Expected behavior I would expect to see metadata when curling status but get an empty response.

Logs

  1. Init:
➜  mcp-publisher init
Created server.json

Edit server.json to update:
  • Server name and description
  • Package details
  • Environment variables

Then publish with:
  mcp-publisher login github  # or your preferred auth method
  mcp-publisher publish
  1. Created and pushed/published server.json

  2. Publish and verify (note the transient error and that publish output does not match the docs:

➜  mcp-publisher publish     
Publishing to https://registry.modelcontextprotocol.io...
Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"failed to query servers: failed to deallocate cached statement(s): conn busy"}]}
➜  mcp-publisher publish
Publishing to https://registry.modelcontextprotocol.io...
✓ Successfully published
➜  curl https://registry.modelcontextprotocol.io/servers/io.github.ref-tools/ref-tools-mcp
{empty response with 0 response code}
  1. Publish again to see what happens
➜  mcp-publisher publish     
Publishing to https://registry.modelcontextprotocol.io...
Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"invalid version: cannot publish duplicate version"}]}

➜  curl https://registry.modelcontextprotocol.io/servers/io.github.ref-tools/ref-tools-mcp
{empty response with 0 response code}

Additional context Add any other context about the problem here.

MatthewDailey avatar Sep 09 '25 20:09 MatthewDailey

I think their servers are just down right now. Can't even browse the registry: https://registry.modelcontextprotocol.io/v0/servers

philfreo avatar Sep 09 '25 20:09 philfreo

Oh yup that makes sense, everyone is hyped to publish. Also thanks for sharing the browse url too :)

I'll leave open for now and will check back later today

MatthewDailey avatar Sep 09 '25 20:09 MatthewDailey

Making a GET to the /v0/servers endpoint returns the following error: failed to query servers: failed to deallocate cached statement(s): conn busy

VikashLoomba avatar Sep 09 '25 20:09 VikashLoomba

Hey @MatthewDailey! Thanks for publishing your server to the registry. Your server is successfully published and visible in the registry 🎉

The registry doesn't support direct lookup by path like /v0/servers/io.github.ref-tools/ref-tools-mcp. Instead, you have two options:

Option 1: Search by name

  • curl "https://registry.modelcontextprotocol.io/v0/servers?search=io.github.ref-tools/ref-tools-mcp"

Or just search by a partial name:

  • curl "https://registry.modelcontextprotocol.io/v0/servers?search=ref-tools-mcp"

Option 2: Get by UUID (if you know the server's UUID)

  • curl "https://registry.modelcontextprotocol.io/v0/servers/3d452687-9ce1-4b5e-98b9-2fbf1fb7abb7"

You can also explore the full API documentation at https://registry.modelcontextprotocol.io/docs


Separately we also had an issue with our db connection which we're tracking in #400

domdomegg avatar Sep 10 '25 13:09 domdomegg

(sorry my bad, I see the publishing guide docs are wrong and confusing here! tracking in https://github.com/modelcontextprotocol/registry/issues/410)

domdomegg avatar Sep 10 '25 14:09 domdomegg

Wonderful, thanks for clarifying!

MatthewDailey avatar Sep 10 '25 16:09 MatthewDailey