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 TypeMethodDescriptionObtains the details for a single MCP server denoted by its ID.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
Obtains the details for a single MCP server denoted by its ID. -
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'.
-