Class MessagingManager

java.lang.Object
com.mulesoft.connectors.mcp.internal.MessagingManager

public class MessagingManager extends Object
This class is part of the workaround for issue {@link https://github.com/modelcontextprotocol/java-sdk/issues/273}

This class keeps track of inbound and outbound requests at the transport level, so that those details can be retrieved later.

Yes, this is a quite fragile implementation highly dependent on the MCP SDK threading model and internal implementation. It also requires quite careful use, making sure that everything that's tracked is eventually pop().

TODO: Future maintainers of this connector should be on the watch-out for resolution, contributing a fix or (in worst case scenario) forking the MCP SDK

Since:
0.1.0