@@ -707,8 +707,7 @@ public PaginationException(String message) {
707707 }
708708 }
709709
710- // -------------------------- various request handlers
711- // -------------------------- //
710+ // -------------------------- various request handlers -------------------------- //
712711
713712 // method to handle /health request which is used to ensure plugin and mcp
714713 // server are properly started //
@@ -884,6 +883,7 @@ private void handleClassSource(Context ctx) {
884883 for (JavaClass cls : wrapper .getIncludedClassesWithInners ()) {
885884 if (cls .getFullName ().equals (className )) {
886885 ctx .result (cls .getCode ());
886+ logger .info (cls .getCode ().toString ());
887887 return ;
888888 }
889889 }
@@ -914,6 +914,7 @@ private void handleSearchMethod(Context ctx) {
914914 }
915915 }
916916 ctx .result (String .join ("\n " , results ));
917+ logger .debug (ctx .body ());
917918 } catch (Exception e ) {
918919 logger .error ("JADX AI MCP Error: " + e .getMessage (), e );
919920 ctx .status (500 ).json (Map .of ("error" , "Internal error during method search: " + e .getMessage ()));
@@ -922,7 +923,7 @@ private void handleSearchMethod(Context ctx) {
922923
923924 // method to handle /methods-of-class call
924925 private void handleMethodsOfClass (Context ctx ) {
925- String className = ctx .queryParam ("class " );
926+ String className = ctx .queryParam ("class_name " );
926927
927928 if (className == null || className .isEmpty ()) {
928929 logger .error ("JADX AI MCP Error: Missing 'class' parameter." );
@@ -956,10 +957,10 @@ private void handleMethodsOfClass(Context ctx) {
956957
957958 // method to handle /fields-of-class call
958959 private void handleFieldsOfClass (Context ctx ) {
959- String className = ctx .queryParam ("class " );
960+ String className = ctx .queryParam ("class_name " );
960961
961962 if (className == null || className .isEmpty ()) {
962- logger .error ("JADX AI MCP Error: Missing 'class ' parameter." );
963+ logger .error ("JADX AI MCP Error: Missing 'class_name ' parameter." );
963964 ctx .status (400 ).json (Map .of ("error" , "Missing required parameter 'class'" ));
964965 return ;
965966 }
@@ -1470,8 +1471,7 @@ private void handleGetResourceFile(Context ctx) {
14701471 }
14711472 }
14721473
1473- // -------------------------- helper methods to assist the request handler
1474- // methods -------------------------- //
1474+ // -------------------------- helper methods to assist the request handler methods -------------------------- //
14751475 private String getSelectedTabTitle () {
14761476 JTabbedPane tabs = mainWindow .getTabbedPane ();
14771477 int index = tabs .getSelectedIndex ();
0 commit comments