File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
libs/remix-ai-core/src/remix-mcp-server/handlers Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ export class StartDebugSessionHandler extends BaseToolHandler {
51
51
}
52
52
53
53
validate ( args : DebugSessionArgs ) : boolean | string {
54
- const required = this . validateRequired ( args , [ 'contractAddress ' ] ) ;
54
+ const required = this . validateRequired ( args , [ 'transactionHash ' ] ) ;
55
55
if ( required !== true ) return required ;
56
56
57
57
const types = this . validateTypes ( args , {
@@ -68,16 +68,15 @@ export class StartDebugSessionHandler extends BaseToolHandler {
68
68
69
69
async execute ( args : DebugSessionArgs , plugin : Plugin ) : Promise < IMCPToolResult > {
70
70
try {
71
- // TODO: Integrate with Remix debugger plugin
72
- plugin . call ( 'debugger' , 'debug' , args . transactionHash ) ;
71
+ await plugin . call ( 'debugger' , 'debug' , args . transactionHash )
73
72
// Mock debug session creation
74
73
const result : DebugSessionResult = {
75
74
success : true ,
76
75
transactionHash : args . transactionHash ,
77
76
status : 'started' ,
78
77
createdAt : new Date ( ) . toISOString ( )
79
78
} ;
80
-
79
+ plugin . call ( 'menuicons' , 'select' , 'debugger' )
81
80
return this . createSuccessResult ( result ) ;
82
81
83
82
} catch ( error ) {
You can’t perform that action at this time.
0 commit comments