Class ServerConfig
java.lang.Object
com.mulesoft.connectors.mcp.internal.server.config.ServerConfig
- All Implemented Interfaces:
org.mule.runtime.api.lifecycle.Disposable,org.mule.runtime.api.lifecycle.Initialisable
@Configuration(name="server")
@ConnectionProviders({StreamableHttpServerConnectionProvider.class,SSEServerConnectionProvider.class})
@Sources({ToolListener.class,ResourceListener.class,OnNewSessionListener.class})
public class ServerConfig
extends Object
implements org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Disposable
Configuration element to act as an MCP server
-
Field Summary
Fields inherited from interface org.mule.runtime.api.lifecycle.Disposable
PHASE_NAMEFields inherited from interface org.mule.runtime.api.lifecycle.Initialisable
PHASE_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()voidvoidsetTransport(BaseServerTransportProvider transport)
-
Constructor Details
-
ServerConfig
public ServerConfig()
-
-
Method Details
-
initialise
public void initialise() throws org.mule.runtime.api.lifecycle.InitialisationException- Specified by:
initialisein interfaceorg.mule.runtime.api.lifecycle.Initialisable- Throws:
org.mule.runtime.api.lifecycle.InitialisationException
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.mule.runtime.api.lifecycle.Disposable
-
getRefName
-
getTransport
-
setTransport
-
getServerName
-
getServerVersion
-