registry icon indicating copy to clipboard operation
registry copied to clipboard

Receive "title":"Bad Request","status":400,"detail":"Failed to publish server" for package not found

Open sfc-gh-jsummer opened this issue 5 months ago • 5 comments

Running mcp-publisher publish in GitHub action after successful github-oidc login returns Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"registry validation failed for package 0 (snowflake-labs-mcp): PyPI package 'snowflake-labs-mcp' not found (status: 404)"}]}

However, snowflake-labs-mcp exists in PyPI.

Expected behavior Server should be successfully published.

Logs Error: publish failed: server returned status 400: {"title":"Bad Request","status":400,"detail":"Failed to publish server","errors":[{"message":"registry validation failed for package 0 (snowflake-labs-mcp): PyPI package 'snowflake-labs-mcp' not found (status: 404)"}]}

Additional context README contains <!-- mcp-name: io.github.Snowflake-Labs/mcp -->.

server.json is attached. server.json

Github Action workflow file attached. publish-mcp.yml

sfc-gh-jsummer avatar Sep 25 '25 20:09 sfc-gh-jsummer

@sfc-gh-jsummer Will check the issue and get back on this. CC @tadasant @rdimitrov

pree-dew avatar Sep 26 '25 08:09 pree-dew

I was able to publish my package

mcp-publisher publish server.json
Publishing to https://registry.modelcontextprotocol.io...
✓ Successfully published
✓ Server Id xxx version 0.1.1

I checked your package also exists and I am able to find it via API. It looks like this version was recently released. When publish action was happening there might be these issues because of which it might have happened

  1. CDN propagation delays - Different PyPI mirrors/CDNs might not have the package yet
  2. Regional availability issues - The package might not be available from all geographic locations yet.

Can you try to publish it again?

pree-dew avatar Sep 26 '25 11:09 pree-dew

Ah perfect. It successfully published now:

Run mcp-publisher publish
Publishing to https://registry.modelcontextprotocol.io.../
✓ Successfully published
✓ Server Id cd9210af-efe4-4112-97c2-32e2a6f25813 version 1.3.3

Thanks for the help!

sfc-gh-jsummer avatar Sep 26 '25 18:09 sfc-gh-jsummer

I had the same error in my mcp registry cli package, I had to update the api to make it working back!

Image

Interestingly I see a number of different version of deployments for the same package from the API, so I will collect them and make as default the latest version, or support all versions available.

loretoparisi avatar Oct 01 '25 17:10 loretoparisi

Okay, I have added versions support in version 0.3.2! Far better now! Image

loretoparisi avatar Oct 01 '25 18:10 loretoparisi