Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.11
6 changes: 5 additions & 1 deletion bridge_mcp_hydra.py
Original file line number Diff line number Diff line change
Expand Up @@ -2106,7 +2106,7 @@ def functions_set_comment(address: str, comment: str = "", port: int = None) ->

# ================= Startup =================

if __name__ == "__main__":
def main():
register_instance(DEFAULT_GHIDRA_PORT,
f"http://{ghidra_host}:{DEFAULT_GHIDRA_PORT}")

Expand All @@ -2123,3 +2123,7 @@ def functions_set_comment(address: str, comment: str = "", port: int = None) ->

signal.signal(signal.SIGINT, handle_sigint)
mcp.run(transport="stdio")


if __name__ == "__main__":
main()
21 changes: 21 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]