File tree 4 files changed +64
-7
lines changed
4 files changed +64
-7
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,49 @@ wheels/
11
11
12
12
logs /
13
13
logs
14
+
15
+
16
+ target /
17
+ ! .mvn /wrapper /maven-wrapper.jar
18
+ ! ** /src /main /** /target /
19
+ ! ** /src /test /** /target /
20
+
21
+ # ## IntelliJ IDEA ###
22
+ .idea /modules.xml
23
+ .idea /jarRepositories.xml
24
+ .idea /compiler.xml
25
+ .idea /libraries /
26
+ * .iws
27
+ * .iml
28
+ * .ipr
29
+
30
+ # ## Eclipse ###
31
+ .apt_generated
32
+ .classpath
33
+ .factorypath
34
+ .project
35
+ .settings
36
+ .springBeans
37
+ .sts4-cache
38
+
39
+ # ## NetBeans ###
40
+ /nbproject /private /
41
+ /nbbuild /
42
+ /dist /
43
+ /nbdist /
44
+ /.nb-gradle /
45
+ build /
46
+ ! ** /src /main /** /build /
47
+ ! ** /src /test /** /build /
48
+
49
+ # ## VS Code ###
50
+ .vscode /
51
+
52
+ # ## Mac OS ###
53
+ .DS_Store
54
+
55
+ # ## RELEASE ###
56
+ target /
57
+
58
+ # ## dependecy ###
59
+ lib /
Original file line number Diff line number Diff line change 26
26
" run" ,
27
27
" browser_bruter_mcp_server.py"
28
28
]
29
+ },
30
+ "ghidra" : {
31
+ "command" : " python" ,
32
+ "args" : [
33
+ " /home/zinjacoder/softwares/tools/RE-Malware/GhidraMCP/bridge_mcp_ghidra.py" ,
34
+ " --ghidra-server" ,
35
+ " http://127.0.0.1:8080/"
36
+ ]
29
37
}
30
38
}
31
39
}
Original file line number Diff line number Diff line change 4
4
"""
5
5
6
6
import logging
7
- import platform
8
7
9
8
from rich .console import Console
10
9
from rich .panel import Panel
11
10
from rich .prompt import Prompt
11
+ from prompt_toolkit import PromptSession
12
+
13
+
12
14
from rich .table import Table
13
15
14
16
from src .mcp_tools_client import MCPToolsClient
15
17
16
- if platform . system () != "Windows" :
17
- import readline
18
+
19
+ session = PromptSession ()
18
20
19
21
# This class is used for handling the interative cli session
20
22
class InteractiveCLI :
@@ -40,7 +42,7 @@ async def interactive_cli(self):
40
42
41
43
while True :
42
44
try :
43
- command = Prompt .ask ("\n [bold blue]︻デ═一××> [/bold blue] " )
45
+ command = await session . prompt_async ( " \n >>> " ) # Prompt.ask("\n[bold blue]>>> [/bold blue] ")#prompt("\n>>> ")
44
46
self .log .debug (f"Command Received: { command } " )
45
47
46
48
if command .lower () in ('/exit' , '/quit' ):
@@ -114,4 +116,4 @@ async def interactive_cli(self):
114
116
self .console .print ("[blue]Closing Connections...[/blue]" )
115
117
self .log .debug ("Closing client connections" )
116
118
await self .client .close ()
117
- self .console .print ("[green]Closed[/green]" )
119
+ self .console .print ("[green]Closed[/green]" )
Original file line number Diff line number Diff line change 7
7
# "langgraph",
8
8
# "langchain_ollama",
9
9
# "rich",
10
- # "typer"
10
+ # "typer",
11
+ # "prompt_toolkit"
11
12
# ]
12
13
# ///
13
14
@@ -90,4 +91,4 @@ async def _run():
90
91
91
92
if __name__ == "__main__" :
92
93
app ()
93
-
94
+
You can’t perform that action at this time.
0 commit comments