Package com.tnsai.mcp.registry
Interface McpRegistrySource
- All Known Implementing Classes:
CamelMcpHubClient,McpServersOrgClient,OfficialRegistryClient,SmitheryClient
public interface McpRegistrySource
Interface for MCP server registry sources.
Implementations connect to external registries (official MCP registry, Smithery, mcpservers.org, etc.) to discover available MCP servers.
Each source provides search, lookup, and listing capabilities for MCP server entries published in that registry.
-
Method Summary
Modifier and TypeMethodDescriptionLooks up a specific server by name.Returns the name of this registry source.listAll()Lists all available servers from this registry.Searches the registry for servers matching the given query.
-
Method Details
-
getSourceName
String getSourceName()Returns the name of this registry source.- Returns:
- source name (e.g. "official", "smithery", "mcpservers.org", "camel")
-
search
Searches the registry for servers matching the given query.- Parameters:
query- search query string- Returns:
- list of matching server entries
- Throws:
IOException- if the registry cannot be reached
-
getServer
Looks up a specific server by name.- Parameters:
name- the server name- Returns:
- the server entry if found
- Throws:
IOException- if the registry cannot be reached
-
listAll
Lists all available servers from this registry.- Returns:
- list of all server entries
- Throws:
IOException- if the registry cannot be reached
-