Interface McpRegistryClient
- All Known Implementing Classes:
DefaultMcpRegistryClient
public interface McpRegistryClient
The interface for talking to a MCP (sub)registry.
See official reference documentation for more details about the API.
This interface closely mirrors the official API.
-
Method Summary
Modifier and TypeMethodDescriptiongetAllVersionsOfServer(String serverName) Get all available versions for a specific MCP serverDeprecated, for removal: This API element is subject to removal in a future version.This method is not supported on the official MCP registry anymore.getSpecificServerVersion(String serverName, String version) Get detailed information about a specific version of an MCP server.Runs a health check against the MCP registry.listServers(McpServerListRequest request) Obtains a list of MCP servers from the registry.ping()Sends a ping message to the MCP registry.
-
Method Details
-
listServers
Obtains a list of MCP servers from the registry. -
getServerDetails
Deprecated, for removal: This API element is subject to removal in a future version.This method is not supported on the official MCP registry anymore.Obtains the details for a single MCP server denoted by its ID. -
getSpecificServerVersion
Get detailed information about a specific version of an MCP server. Use the special version 'latest' to get the latest version. -
getAllVersionsOfServer
Get all available versions for a specific MCP server -
healthCheck
McpRegistryHealth healthCheck()Runs a health check against the MCP registry. If the registry is healthy, the returned object's "status" field will be "ok". -
ping
McpRegistryPong ping()Sends a ping message to the MCP registry. If the ping is successful, the 'pong' field in the response object will contain 'true'.
-