Skip to content

feat: add struct data type management API#11

Merged
teal-bauer merged 1 commit intomainfrom
feat/struct-management
Nov 14, 2025
Merged

feat: add struct data type management API#11
teal-bauer merged 1 commit intomainfrom
feat/struct-management

Conversation

@teal-bauer
Copy link
Collaborator

Summary

Adds struct data type management capabilities to GhydraMCP for programmatic creation and manipulation of complex data structures.

Changes

  • New REST API endpoints for struct CRUD operations
  • 6 new MCP tools (structs_list, structs_get, structs_create, structs_add_field, structs_update_field, structs_delete)
  • API documentation for all struct endpoints

API Endpoints

  • GET /structs - List all structs with pagination and filtering
  • GET /structs?name={name} - Get detailed struct info with fields
  • POST /structs/create - Create new struct
  • POST /structs/addfield - Add field to struct
  • POST /structs/updatefield - Update field name, type, or comment
  • POST /structs/delete - Delete struct

Use Cases

  • Define data structures found during reverse engineering
  • Document complex memory layouts
  • Apply struct types to function parameters and variables
  • Manage structs programmatically via MCP

Add endpoints and MCP tools to create, read, update, and delete struct
data types in Ghidra's data type manager. Enables programmatic definition
of complex data structures for reverse engineering workflows.

Includes pagination, category filtering, and field-level operations
(add, update by name or offset).
@teal-bauer teal-bauer merged commit 8268e55 into main Nov 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant