Package burp.mcp.server
Class McpServerManager
java.lang.Object
burp.mcp.server.McpServerManager
Owns the MCP listeners' lifecycle so they can be started, stopped, and
restarted from the UI without reloading the extension.
TCP and the Unix socket are bound independently: a busy TCP port
(another Burp instance still holding 4444) records a clear error and lets
the socket serve this project instead of aborting the whole startup. A
restart builds a fresh McPServer — the worker pool is shut down on
stop — and re-reads saved preferences, so port, bind address, TLS, socket,
and pool changes apply live.
-
Constructor Summary
ConstructorsConstructorDescriptionMcpServerManager(burp.api.montoya.MontoyaApi api, McpToolRegistry registry, PermissionManager permissions, MetricsCollector metrics) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStateListener(Runnable listener) booleanbooleanUnix socket serving this project.booleanTCP serving, i.e. the port was bound successfully.voidrestart()voidsetLogListener(Consumer<String> listener) Forwarded to every server this manager creates.voidstart()voidstop()
-
Constructor Details
-
McpServerManager
public McpServerManager(burp.api.montoya.MontoyaApi api, McpToolRegistry registry, PermissionManager permissions, MetricsCollector metrics)
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
restart
public void restart() -
getServer
-
getMetrics
-
getApprovalManager
-
getAccessGate
-
isTcpRunning
public boolean isTcpRunning()TCP serving, i.e. the port was bound successfully. -
isSocketRunning
public boolean isSocketRunning()Unix socket serving this project. -
isRunning
public boolean isRunning() -
getTcpError
-
getSocketError
-
getSocketPath
-
getEndpoint
-
setLogListener
Forwarded to every server this manager creates. -
addStateListener
-