Skip to content

Commit e7b194f

Browse files
committed
fix: fixed issue #9 by fixing the return type annotation missmatch between python and java, v2.2.12
1 parent ba5cb8e commit e7b194f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jadx_mcp_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ async def get_strings() -> dict:
247247
return await get_from_jadx("strings")
248248

249249
@mcp.tool(name="get_all_resource_file_names", description="Retrieve all resource files names that exists in application.")
250-
async def get_all_resource_file_names() -> list[str]:
250+
async def get_all_resource_file_names() -> dict:
251251
"""Retrieve all resource files names that exists in application
252252
253253
Args:
@@ -259,7 +259,7 @@ async def get_all_resource_file_names() -> list[str]:
259259
return await get_from_jadx("list-all-resource-files-names")
260260

261261
@mcp.tool(name="get_resource_file", description="Retrieve resource file content.")
262-
async def get_resource_file(resource_name: str) -> list[str]:
262+
async def get_resource_file(resource_name: str) -> dict:
263263
"""Retrieve resource file content
264264
265265
Args:
@@ -329,7 +329,7 @@ async def get_main_application_classes_code(offset: int = 0, count: int = 0) ->
329329
return class_sources[offset:offset + count] if count > 0 else class_sources[offset:]
330330

331331
@mcp.tool(name="get_main_activity_class", description="Fetch the main activity class as defined in the AndroidManifest.xml.")
332-
async def get_main_activity_class(offset: int = 0, count: int = 0) -> List[dict]:
332+
async def get_main_activity_class() -> dict:
333333
"""Fetch the main activity class as defined in the AndroidManifest.xml.
334334
335335
Args:

0 commit comments

Comments
 (0)