Interface ToolSource.Mcp

All Superinterfaces:
ToolSource
Enclosing interface:
ToolSource

@Experimental public static sealed interface ToolSource.Mcp extends ToolSource
One or more MCP servers.
Since:
1.25.0
  • Method Details

    • serverKeys

      Set<String> serverKeys()
      Returns:
      the immutable set of MCP server keys involved, in insertion order. Empty when the keys of the servers are not known (their clients have no key).
    • involves

      boolean involves(@Nullable String serverKey)
      Parameters:
      serverKey - an MCP server key. null is involved in no tool.
      Returns:
      whether the given server is involved in this tool.