Skip to content

Commit 60bb270

Browse files
author
ci-bot
committed
fix validate param
1 parent 441fdc0 commit 60bb270

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

libs/remix-ai-core/src/remix-mcp-server/handlers/DebuggingHandler.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class StartDebugSessionHandler extends BaseToolHandler {
5151
}
5252

5353
validate(args: DebugSessionArgs): boolean | string {
54-
const required = this.validateRequired(args, ['contractAddress']);
54+
const required = this.validateRequired(args, ['transactionHash']);
5555
if (required !== true) return required;
5656

5757
const types = this.validateTypes(args, {
@@ -68,16 +68,15 @@ export class StartDebugSessionHandler extends BaseToolHandler {
6868

6969
async execute(args: DebugSessionArgs, plugin: Plugin): Promise<IMCPToolResult> {
7070
try {
71-
// TODO: Integrate with Remix debugger plugin
72-
plugin.call('debugger', 'debug', args.transactionHash);
71+
await plugin.call('debugger', 'debug', args.transactionHash)
7372
// Mock debug session creation
7473
const result: DebugSessionResult = {
7574
success: true,
7675
transactionHash: args.transactionHash,
7776
status: 'started',
7877
createdAt: new Date().toISOString()
7978
};
80-
79+
plugin.call('menuicons', 'select', 'debugger')
8180
return this.createSuccessResult(result);
8281

8382
} catch (error) {

0 commit comments

Comments
 (0)