Class DefaultMcpRegistryClient
java.lang.Object
dev.langchain4j.mcp.registryclient.DefaultMcpRegistryClient
- All Implemented Interfaces:
McpRegistryClient
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()getServerDetails(String serverName) Obtains 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
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
-
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
-