Server Info

Server Info is the metadata returned by an MCP server to the client during the initialize response. It confirms the server's identity and version.

Key Properties

Response Example

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "protocolVersion": "2024-11-05",
    "capabilities": {...},
    "serverInfo": {
      "name": "hasmcp-github-server",
      "version": "0.4.2"
    }
  }
}

Integration Importance

The server's name is often displayed to end-users in "Server Management" UIs, while the version helps developers debug protocol mismatches or feature availability issues across the SDKs.

Questions & Answers

What information is included in the "Server Info" metadata?

Server Info provides the identifying metadata for a server, primarily its Name (e.g., "PostgreSQL Connector") and its semantic Version. This metadata is crucial for categorization and debugging.

When does a server share its metadata with an MCP client?

This information is shared during the initial initialize response of the protocol handshake. It confirms the server’s identity and capabilities before any tools or resources are accessed.

How does the version information in Server Info help developers?

The version string helps developers track feature availability and troubleshoot protocol mismatches. It ensures that both the client and server are aware of which software versions are interacting, making it easier to identify the source of bugs.

Back to Glossary