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

    Modifier and Type
    Method
    Description
    connect(boolean requiresSession, boolean stdioOk)
     
  • Method Details

    • connect

      McpClient connect(boolean requiresSession, boolean stdioOk)
      Parameters:
      requiresSession - whether the command needs persistent live state
      stdioOk - whether the caller opted in to a throwaway one-shot server
      Returns:
      a connected client the caller must close