Commit graph

79 commits

Author SHA1 Message Date
Kirill Zhumarin
c5359fc744 Rewrite README
Some checks failed
Build / build (push) Failing after 3m8s
2026-11-24 15:24:41 +03:00
Kirill Zhumarin
eabebdcd2e Fix error dialog when looking up script bundles
getExistingGhidraBundle reports an error when the bundle is missing; use
getGhidraBundle. Leave the directory list alone while a Script Manager is
running, and serialize adding directories.
2026-11-24 10:56:03 +03:00
Kirill Zhumarin
c8d00a3d7b Load Script Manager directories when no CodeBrowser is open
The Script Manager restores user script directories from the CodeBrowser
tool configuration only while a CodeBrowser is open. list_scripts and
run_script now add the configured directories that the bundle host does
not know yet, so they also work from the project window and headless.
2026-11-24 10:48:30 +03:00
Kirill Zhumarin
c554d9e922 import_file: add block_name, file_offset and length for Raw Binary
Ghidra parses these loader options as hex, so the values are converted.
2026-11-24 10:36:49 +03:00
Kirill Zhumarin
8241933a7c Publish a GitHub Release with the extension zip for tags
Some checks failed
Build / build (push) Failing after 3m4s
Tag pushes now create (or update) a release with the packaged extension,
named GhidraMCP-<tag>-ghidra<version>.zip. Actions bumped to checkout v7,
setup-java v6 and upload-artifact v7 (Node 20 deprecation).
2026-11-24 01:52:03 +03:00
Kirill Zhumarin
10142233e1 Build CI against Ghidra 12 via build.sh
- The workflow downloads a Ghidra 12 release (12.1.3 by default, any
  version via manual dispatch), runs ./build.sh (libraries, unit tests,
  package) and uploads the extension zip. It previously targeted Ghidra
  11.3.2 with an incomplete library set and copied the removed bridge.
- extension.properties gets the Ghidra version the package is built
  against instead of a hard-coded 12.1.2.
2026-11-24 01:34:08 +03:00
Kirill Zhumarin
a328bb2ec7 Add add_to_program and fix loader lookup in import_file
- add_to_program mirrors File > Add To Program: loads a file into an
  existing program as new memory blocks through Ghidra's own loader
  (Raw Binary by default: address, block name, file offset/length,
  overlay). Overlapping ranges are refused with the clashing blocks named.
- import_file now resolves loaders by display name ("Raw Binary") as
  well as class name; Ghidra's lookup only accepted the class name, so
  the documented example failed. Unknown loaders list the available ones.
- e2e coverage for both.
2026-11-24 01:32:02 +03:00
Kirill Zhumarin
6fee8a688a Serve MCP natively and add project, analysis and editing tools
The plugin now is the MCP server (Streamable HTTP at /mcp); the Python
bridge and the plain-text HTTP API it used are removed.

- One shared server per Ghidra process: started from the project window
  (GhidraMCPServerPlugin), any CodeBrowser, or headless via
  StartGhidraMcpServer.java. Programs resolve across all windows and
  programs opened in the background.
- Project and program lifecycle: list/import/open/close/save programs,
  manage project files, open/close/create projects.
- Auto-analysis control, function details and variables, symbols,
  comments, data, struct/enum editing, call graphs, decompiler data-flow
  slices, scalar and memory search, memory writes, scripts, MCP prompts
  and resources.
- Decompiler process reused per program with a cache keyed to the
  program modification number (previously one leaked process per call).
- Original tools split into domain classes; duplicate tools removed.
- Fix false "Failed" results for nested transactions, a GUI deadlock and
  a modal-dialog hang when closing projects with several CodeBrowsers.
- JUnit 4 (tests run in build.sh again), install.sh, and an end-to-end
  suite (tests/e2e) that exercises every tool against a live Ghidra.
2026-11-24 01:18:33 +03:00
Kirill Zhumarin
74fed421ca Discover bundled Ghidra dependency versions 2026-08-30 14:59:47 +03:00
Kirill Zhumarin
f5d40c77e9 Add instruction pattern search tools 2026-08-30 14:56:42 +03:00
Kirill Zhumarin
ce9e4d75c3 Persist disassembly before creating functions 2026-08-01 21:52:31 +03:00
Kirill Zhumarin
de7caade1a Allow disassembly of undefined data 2026-08-01 17:50:33 +03:00
Kirill Zhumarin
19a25d839d Add native function, disassembly, and type APIs 2026-07-24 03:03:19 +03:00
Kirill Zhumarin
761dfbbf31 Fix data inspection response types 2026-07-23 01:36:23 +03:00
Kirill Zhumarin
91661dedc8 Update readme 2026-07-22 23:24:37 +03:00
Kirill Zhumarin
28390ff43d Add data and batch editing tools 2026-07-22 23:22:00 +03:00
Kirill Zhumarin
39019bdce2 Support selecting among open programs 2026-07-22 23:20:39 +03:00
Kirill Zhumarin
0f6f75beee Update build for Ghidra 12.1.2 2026-07-22 23:19:07 +03:00
LaurieWired
27f316f801
Merge pull request #64 from DaCodeChick/main
Fixed for Ghidra 11.3.2
2025-06-22 21:09:41 -07:00
DaCodeChick
7e8e50fa56 Update build.yml 2025-06-20 15:48:12 -07:00
DaCodeChick
865bf48307 Fixed for Ghidra 11.3.2 2025-06-20 14:47:40 -07:00
LaurieWired
3b876ddbf7
Update build.yml 2025-04-21 21:13:52 -07:00
LaurieWired
02631d7b34
Update build.yml 2025-04-21 21:10:22 -07:00
LaurieWired
3bdba19e6f
Merge pull request #20 from tuxuser/task/ci
ci: Create build workflow
2025-04-21 20:58:41 -07:00
LaurieWired
6b4f6590ac
Merge pull request #34 from pinksawtooth/main
Add cross-reference (xref) functionality and Add functionality to list all defined strings in binaries
2025-04-20 19:33:50 -07:00
LaurieWired
01083d61ba
Merge pull request #31 from jeFF0Falltrades/main
Utilize urljoin to gracefully handle variations of server name strings
2025-04-20 18:46:41 -07:00
LaurieWired
abaece6af0
Merge branch 'main' into main 2025-04-20 18:46:23 -07:00
LaurieWired
d852822001
Update README.md 2025-04-20 18:32:20 -07:00
LaurieWired
0b04154695
Merge pull request #17 from ian-mad/libreadme
Improved build instructions
2025-04-20 18:25:53 -07:00
LaurieWired
83e46806af Fix ghidra server configuration on mcp side 2025-04-20 18:01:13 -07:00
pinksawtooth
4c7d275f58 Delete comments 2025-04-16 15:52:11 +09:00
pinksawtooth
d770d44e8a Add functionality to list all defined strings in binaries 2025-04-16 12:32:36 +09:00
pinksawtooth
b3d435ab11 add Add cross-reference (xref) functionality 2025-04-16 09:43:37 +09:00
LaurieWired
61c52c0a77
Update README.md 2025-04-13 16:00:11 -07:00
LaurieWired
2b01997db8
Update README.md 2025-04-13 15:51:45 -07:00
LaurieWired
353fb446e3
Update README.md 2025-04-13 15:37:47 -07:00
LaurieWired
449ce6ba7a Add support for cline 2025-04-13 15:31:46 -07:00
LaurieWired
d9b102faec
Merge pull request #18 from OccamsXor/main
Add 10 new functionalities to the plugin
2025-04-13 12:49:55 -07:00
LaurieWired
cf1813ee9c
Merge branch 'main' into main 2025-04-13 12:49:01 -07:00
jeFF0Falltrades
94ab9bcfdd Utilize urljoin to gracefully handle variations of server name strings 2025-04-13 01:45:37 -04:00
LaurieWired
c0d304cc23
Update README.md 2025-04-03 08:22:29 -07:00
LaurieWired
0120a9f6f6
Update README.md 2025-04-03 08:21:12 -07:00
LaurieWired
d5c3b08bcb
Merge pull request #14 from teal-bauer/patch-1
Update bridge to take Ghidra endpoint as an argument, add PEP 723 metadata
2025-04-03 07:59:01 -07:00
LaurieWired
c91debd522
Merge branch 'main' into patch-1 2025-04-03 07:58:20 -07:00
LaurieWired
4fb1dc9a44 Make ghidra server port a plugin option 2025-04-02 08:33:59 -07:00
LaurieWired
dd50a17493
Merge pull request #16 from ian-mad/rename
Added local variable and parameter renaming
2025-04-02 07:33:35 -07:00
tuxuser
e106cc4d78 ci: Create build workflow 2025-04-01 01:07:44 +02:00
LaurieWired
58dbc92594
Merge pull request #12 from frabert/patch-1
Allow script to be run directly using `uv run`
2025-03-30 21:01:37 -07:00
OccamsXor
4ce96a47b8 Add 10 new functionalities to the plugin 2025-03-31 02:58:48 +01:00
ian-mad
9574223421 Improved build instructions 2025-03-30 23:54:46 +02:00