commit
98a3ec4c34
1
.python-version
Normal file
1
.python-version
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.11
|
||||||
@ -2335,7 +2335,7 @@ def functions_set_comment(address: str, comment: str = "", port: int = None) ->
|
|||||||
|
|
||||||
# ================= Startup =================
|
# ================= Startup =================
|
||||||
|
|
||||||
if __name__ == "__main__":
|
def main():
|
||||||
register_instance(DEFAULT_GHIDRA_PORT,
|
register_instance(DEFAULT_GHIDRA_PORT,
|
||||||
f"http://{ghidra_host}:{DEFAULT_GHIDRA_PORT}")
|
f"http://{ghidra_host}:{DEFAULT_GHIDRA_PORT}")
|
||||||
|
|
||||||
@ -2352,3 +2352,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
signal.signal(signal.SIGINT, handle_sigint)
|
signal.signal(signal.SIGINT, handle_sigint)
|
||||||
mcp.run(transport="stdio")
|
mcp.run(transport="stdio")
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
||||||
21
pyproject.toml
Normal file
21
pyproject.toml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
[project]
|
||||||
|
name = "ghydramcp"
|
||||||
|
version = "2.0.0"
|
||||||
|
description = "AI-assisted reverse engineering bridge: a multi-instance Ghidra plugin exposed via a HATEOAS REST API plus an MCP Python bridge for decompilation, analysis & binary manipulation"
|
||||||
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.11"
|
||||||
|
dependencies = [
|
||||||
|
"mcp==1.6.0",
|
||||||
|
"requests==2.32.3",
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.scripts]
|
||||||
|
ghydramcp = "bridge_mcp_hydra:main"
|
||||||
|
|
||||||
|
[build-system]
|
||||||
|
requires = ["hatchling"]
|
||||||
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
|
[tool.hatch.build.targets.wheel]
|
||||||
|
packages = ["."]
|
||||||
|
only-include = ["bridge_mcp_hydra.py"]
|
||||||
Loading…
x
Reference in New Issue
Block a user