Interface McpConnector
- All Known Implementing Classes:
ConnectionFactory
public interface McpConnector
Supplies a connected
McpClient for a command, applying the HTTP-vs-stdio routing rule.
The production implementation is ConnectionFactory; tests supply a fake.-
Method Summary
-
Method Details
-
connect
- Parameters:
requiresSession- whether the command needs persistent live statestdioOk- whether the caller opted in to a throwaway one-shot server- Returns:
- a connected client the caller must close
-