@@ -280,7 +280,7 @@ void McpServer::HandleToolsList(const json& request)
280280
281281 // Breakpoint tools
282282 tools.push_back ({
283- {" name" , " debug_set_breakpoint " },
283+ {" name" , " set_breakpoint " },
284284 {" description" , " Set a breakpoint at specified address in PC Engine memory (ROM/RAM, VRAM, Palette, or hardware registers)" },
285285 {" inputSchema" , {
286286 {" type" , " object" },
@@ -305,7 +305,7 @@ void McpServer::HandleToolsList(const json& request)
305305 });
306306
307307 tools.push_back ({
308- {" name" , " debug_set_breakpoint_range " },
308+ {" name" , " set_breakpoint_range " },
309309 {" description" , " Set a breakpoint for an address range" },
310310 {" inputSchema" , {
311311 {" type" , " object" },
@@ -334,7 +334,7 @@ void McpServer::HandleToolsList(const json& request)
334334 });
335335
336336 tools.push_back ({
337- {" name" , " debug_clear_breakpoint " },
337+ {" name" , " remove_breakpoint " },
338338 {" description" , " Clear a breakpoint. Single address breakpoints: provide 'address' only. Range breakpoints: provide both 'address' and 'end_address' matching the exact range" },
339339 {" inputSchema" , {
340340 {" type" , " object" },
@@ -363,7 +363,7 @@ void McpServer::HandleToolsList(const json& request)
363363 });
364364
365365 tools.push_back ({
366- {" name" , " debug_list_breakpoints " },
366+ {" name" , " list_breakpoints " },
367367 {" description" , " List all breakpoints" },
368368 {" inputSchema" , {
369369 {" type" , " object" },
@@ -373,7 +373,7 @@ void McpServer::HandleToolsList(const json& request)
373373
374374 // Memory tools
375375 tools.push_back ({
376- {" name" , " debug_list_memory_areas " },
376+ {" name" , " list_memory_areas " },
377377 {" description" , " List all available memory areas (RAM, ROM, VRAM, etc.)" },
378378 {" inputSchema" , {
379379 {" type" , " object" },
@@ -382,7 +382,7 @@ void McpServer::HandleToolsList(const json& request)
382382 });
383383
384384 tools.push_back ({
385- {" name" , " debug_read_memory " },
385+ {" name" , " read_memory " },
386386 {" description" , " Read memory from a specific memory area" },
387387 {" inputSchema" , {
388388 {" type" , " object" },
@@ -405,7 +405,7 @@ void McpServer::HandleToolsList(const json& request)
405405 });
406406
407407 tools.push_back ({
408- {" name" , " debug_write_memory " },
408+ {" name" , " write_memory " },
409409 {" description" , " Write memory to a specific memory area" },
410410 {" inputSchema" , {
411411 {" type" , " object" },
@@ -429,7 +429,7 @@ void McpServer::HandleToolsList(const json& request)
429429
430430 // Register tools
431431 tools.push_back ({
432- {" name" , " debug_write_cpu_register " },
432+ {" name" , " write_huc6280_register " },
433433 {" description" , " Write to a HuC6280 CPU register" },
434434 {" inputSchema" , {
435435 {" type" , " object" },
@@ -857,7 +857,7 @@ void McpServer::HandleToolsList(const json& request)
857857 });
858858
859859 tools.push_back ({
860- {" name" , " list_call_stack " },
860+ {" name" , " get_call_stack " },
861861 {" description" , " List the current call stack (function calls hierarchy)" },
862862 {" inputSchema" , {
863863 {" type" , " object" },
@@ -1057,7 +1057,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
10571057 return m_debugAdapter.GetDebugStatus ();
10581058 }
10591059 // Breakpoints
1060- else if (normalizedTool == " debug_set_breakpoint " )
1060+ else if (normalizedTool == " set_breakpoint " )
10611061 {
10621062 std::string addrStr = arguments[" address" ];
10631063 u16 address;
@@ -1075,7 +1075,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
10751075 m_debugAdapter.SetBreakpoint (address, breakpoint_type, read, write, execute);
10761076 return {{" success" , true }, {" address" , addrStr}, {" memory_area" , memory_area}};
10771077 }
1078- else if (normalizedTool == " debug_set_breakpoint_range " )
1078+ else if (normalizedTool == " set_breakpoint_range " )
10791079 {
10801080 std::string startAddrStr = arguments[" start_address" ];
10811081 std::string endAddrStr = arguments[" end_address" ];
@@ -1100,7 +1100,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
11001100 read, write, execute);
11011101 return {{" success" , true }, {" start_address" , startAddrStr}, {" end_address" , endAddrStr}, {" memory_area" , memory_area}};
11021102 }
1103- else if (normalizedTool == " debug_clear_breakpoint " )
1103+ else if (normalizedTool == " remove_breakpoint " )
11041104 {
11051105 std::string addrStr = arguments[" address" ];
11061106 u16 address;
@@ -1122,7 +1122,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
11221122 m_debugAdapter.ClearBreakpointByAddress (address, breakpoint_type, end_address);
11231123 return {{" success" , true }, {" address" , addrStr}, {" memory_area" , memory_area}};
11241124 }
1125- else if (normalizedTool == " debug_list_breakpoints " )
1125+ else if (normalizedTool == " list_breakpoints " )
11261126 {
11271127 std::vector<BreakpointInfo> breakpoints = m_debugAdapter.ListBreakpoints ();
11281128 json bpArray = json::array ();
@@ -1151,7 +1151,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
11511151 return {{" breakpoints" , bpArray}};
11521152 }
11531153 // Memory
1154- else if (normalizedTool == " debug_list_memory_areas " )
1154+ else if (normalizedTool == " list_memory_areas " )
11551155 {
11561156 std::vector<MemoryAreaInfo> areas = m_debugAdapter.ListMemoryAreas ();
11571157 json areaArray = json::array ();
@@ -1165,7 +1165,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
11651165 }
11661166 return {{" areas" , areaArray}};
11671167 }
1168- else if (normalizedTool == " debug_read_memory " )
1168+ else if (normalizedTool == " read_memory " )
11691169 {
11701170 int area = arguments[" area" ];
11711171 std::string offsetStr = arguments[" offset" ];
@@ -1186,7 +1186,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
11861186
11871187 return {{" area" , area}, {" offset" , offsetStr}, {" data" , hex_ss.str ()}};
11881188 }
1189- else if (normalizedTool == " debug_write_memory " )
1189+ else if (normalizedTool == " write_memory " )
11901190 {
11911191 int area = arguments[" area" ];
11921192 std::string offsetStr = arguments[" offset" ];
@@ -1212,7 +1212,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
12121212 return {{" success" , true }, {" area" , area}, {" offset" , offsetStr}, {" bytes_written" , data.size ()}};
12131213 }
12141214 // Registers
1215- else if (normalizedTool == " debug_write_cpu_register " )
1215+ else if (normalizedTool == " write_huc6280_register " )
12161216 {
12171217 std::string name = arguments[" name" ];
12181218 std::string valueStr = arguments[" value" ];
@@ -1441,7 +1441,7 @@ json McpServer::ExecuteCommand(const std::string& toolName, const json& argument
14411441 {
14421442 return m_debugAdapter.ListSymbols ();
14431443 }
1444- else if (normalizedTool == " list_call_stack " )
1444+ else if (normalizedTool == " get_call_stack " )
14451445 {
14461446 return m_debugAdapter.ListCallStack ();
14471447 }
0 commit comments