Class DefaultMcpRegistryClient
java.lang.Object
dev.langchain4j.mcp.registryclient.DefaultMcpRegistryClient
- All Implemented Interfaces:
McpRegistryClient
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
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:McpRegistryClient
Obtains a list of MCP servers from the registry.- Specified by:
listServers
in interfaceMcpRegistryClient
-
getServerDetails
Description copied from interface:McpRegistryClient
Obtains the details for a single MCP server denoted by its ID.- Specified by:
getServerDetails
in interfaceMcpRegistryClient
-
healthCheck
Description copied from interface:McpRegistryClient
Runs a health check against the MCP registry. If the registry is healthy, the returned object's "status" field will be "ok".- Specified by:
healthCheck
in interfaceMcpRegistryClient
-
ping
Description copied from interface:McpRegistryClient
Sends a ping message to the MCP registry. If the ping is successful, the 'pong' field in the response object will contain 'true'.- Specified by:
ping
in interfaceMcpRegistryClient
-
builder
-