public class McpServer extends Object
| Constructor and Description |
|---|
McpServer(Emulator<?> emulator,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCustomTool(String name,
String description,
String... paramNames) |
void |
broadcastNotification(String event,
com.alibaba.fastjson.JSONObject data) |
void |
executePendingOperation() |
int |
getPendingEventCount() |
int |
getPort() |
void |
injectCommand(String command) |
boolean |
isDebugIdle() |
List<com.alibaba.fastjson.JSONObject> |
pollEvents(long timeoutMs) |
void |
queueEvent(com.alibaba.fastjson.JSONObject event) |
com.alibaba.fastjson.JSONObject |
runOnDebuggerThread(Callable<com.alibaba.fastjson.JSONObject> operation)
Execute an operation on the debugger thread (required for backend operations like hardware breakpoints).
|
void |
setDebugIdle(boolean idle) |
void |
start() |
void |
stop() |
public McpServer(Emulator<?> emulator, int port)
public int getPort()
public void start()
throws IOException
IOExceptionpublic void stop()
public void injectCommand(String command)
public com.alibaba.fastjson.JSONObject runOnDebuggerThread(Callable<com.alibaba.fastjson.JSONObject> operation)
public void executePendingOperation()
public void queueEvent(com.alibaba.fastjson.JSONObject event)
public int getPendingEventCount()
public List<com.alibaba.fastjson.JSONObject> pollEvents(long timeoutMs)
public void broadcastNotification(String event, com.alibaba.fastjson.JSONObject data)
public void setDebugIdle(boolean idle)
public boolean isDebugIdle()
Copyright © 2026. All rights reserved.