MCP Shipyard
← Rules catalog

MCP server reports no name: set serverInfo in initialize or server/discover

An empty serverInfo.name shows up as a blank or generic connector. Set a name and title in initialize and in the 2026-07-28 discover result.

majorserver.name-missingGeneral

Set serverInfo.name, and a human-readable title, in the initialize result and, for 2026-07-28, in _meta["io.modelcontextprotocol/serverInfo"] of the server/discover result. The rule server.name-missing is a major finding tagged general.

What you see

  • A scan reports server.name-missing: "serverInfo.name is empty".
  • The rule only fires on a reachable server. When initialize itself needs sign-in (OAuth or API key only), the scan never saw serverInfo, so an empty name says nothing and the rule stays quiet.

Why it happens

  1. The SDK was constructed without a name, or with an empty string from an unset environment variable.
  2. A proxy returns its own initialize response and drops the upstream identity.
  3. A server moved to 2026-07-28 and the identity was only set in the old initialize path. The discover page says _meta['io.modelcontextprotocol/serverInfo'] carries the name and version and that servers SHOULD include it.

The discover page also notes serverInfo is self-reported, intended for display, logging and debugging, and that clients should not use it for security decisions. Where clients display it is not verified here.

If your server sits behind a gateway, test the gateway URL and the origin URL separately. A gateway that caches the discover or initialize response can keep serving an old empty name after you fix the origin, so purge the cache after the change.

Check it yourself

Modern servers:

curl -s -X POST https://mcp.acme.example/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -H "Authorization: Bearer $TOKEN" \
  -d '{"jsonrpc":"2.0","id":"d1","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientInfo":{"name":"check","version":"1"},"io.modelcontextprotocol/clientCapabilities":{}}}}' \
 | jq '.result._meta["io.modelcontextprotocol/serverInfo"]'

Older revisions: read .result.serverInfo from the initialize response instead.

Fix

const server = new McpServer({ name: "acme-orders", title: "Acme Orders", version: "1.4.0" });

Use a distinctive brand name, not server or mcp; ChatGPT rejects generic names (server.name-generic) and names ending in "MCP" (server.name-suffix). Add a real version too (server.version-missing).

Verify

The command prints a non-empty name, then re-scan.

Which clients care

Tagged general.

Source

MCP discovery: https://modelcontextprotocol.io/specification/2026-07-28/server/discover

Run a free scan at https://mcpshipyard.com/scan to check every rule at once.

Check every rule at once

A free scan runs this check and the other 152 against your live URL.

Scan a server