Package ai.protify.core.internal.mcp
Class StdioMCPTransport
- java.lang.Object
-
- ai.protify.core.internal.mcp.StdioMCPTransport
-
- All Implemented Interfaces:
MCPTransport
public class StdioMCPTransport extends java.lang.Object implements MCPTransport
-
-
Constructor Summary
Constructors Constructor Description StdioMCPTransport(java.lang.String[] command)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisOpen()voidopen()voidsendNotification(java.lang.String jsonRpc)java.lang.StringsendRequest(java.lang.String jsonRpc)
-
-
-
Method Detail
-
open
public void open()
- Specified by:
openin interfaceMCPTransport
-
sendRequest
public java.lang.String sendRequest(java.lang.String jsonRpc)
- Specified by:
sendRequestin interfaceMCPTransport
-
sendNotification
public void sendNotification(java.lang.String jsonRpc)
- Specified by:
sendNotificationin interfaceMCPTransport
-
isOpen
public boolean isOpen()
- Specified by:
isOpenin interfaceMCPTransport
-
close
public void close()
- Specified by:
closein interfaceMCPTransport
-
-