Class DefaultMcpRegistryClient
java.lang.Object
dev.langchain4j.mcp.registryclient.DefaultMcpRegistryClient
- All Implemented Interfaces:
McpRegistryClient
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getAllVersionsOfServer(String serverName) Get all available versions for a specific MCP servergetServerDetails(String serverName) Obtains the details for a single MCP server denoted by its ID.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
Description copied from interface:McpRegistryClientObtains a list of MCP servers from the registry.- Specified by:
listServersin interfaceMcpRegistryClient
-
getServerDetails
Description copied from interface:McpRegistryClientObtains the details for a single MCP server denoted by its ID.- Specified by:
getServerDetailsin interfaceMcpRegistryClient
-
getSpecificServerVersion
Description copied from interface:McpRegistryClientGet detailed information about a specific version of an MCP server. Use the special version 'latest' to get the latest version.- Specified by:
getSpecificServerVersionin interfaceMcpRegistryClient
-
getAllVersionsOfServer
Description copied from interface:McpRegistryClientGet all available versions for a specific MCP server- Specified by:
getAllVersionsOfServerin interfaceMcpRegistryClient
-
healthCheck
Description copied from interface:McpRegistryClientRuns a health check against the MCP registry. If the registry is healthy, the returned object's "status" field will be "ok".- Specified by:
healthCheckin interfaceMcpRegistryClient
-
ping
Description copied from interface:McpRegistryClientSends a ping message to the MCP registry. If the ping is successful, the 'pong' field in the response object will contain 'true'.- Specified by:
pingin interfaceMcpRegistryClient
-
builder
-