Skip to content

Refactor MCP entrypoint, add gateway, and enhance agent system#4

Merged
mitsuakki merged 7 commits into
mainfrom
dev
Jul 9, 2026
Merged

Refactor MCP entrypoint, add gateway, and enhance agent system#4
mitsuakki merged 7 commits into
mainfrom
dev

Conversation

@mitsuakki

Copy link
Copy Markdown
Owner

No description provided.

mitsuakki added 5 commits July 9, 2026 13:06
- Replace java -jar with proper -classpath including Ghidra Framework/Features/Processors JARs
- Use --bind instead of --host (server CLI flag mismatch)
- Export GHIDRA_MCP_AUTH_TOKEN env var (server reads from env, no --token flag)
- Redirect log to /tmp instead of /var/log (container runs as non-root)
- Add 30s health-check readiness loop with auth header
- Make bind address configurable via GHIDRA_MCP_HOST
- Single stdio entry point for all toolbox MCP servers
- Namespaced tool names (r2__*, ghidra__*, shell__*, angr__*)
- Graceful degradation — failed children don't block gateway
- Fix mcp.Server import (mcp.server module, not top-level)
- Add angr child (python3 -m angr.mcp)
- binary-triage (haiku): fast radare2 + shell first-look
- ghidra-importer (sonnet): import + auto-analyze + load-ghidra.sh fallback
- ghidra-analyst (sonnet): static RE — decompile, xrefs, rename, annotate
- ghidra-debugger (sonnet): dynamic analysis — breakpoints, tracing, memory watch
- re-orchestrator (opus): full pipeline triage → import → static → dynamic → report
- CLAUDE.md: agent reference + quickstart for repo newcomers
…architecture

- Add Ghidra tool availability section (static vs instance-scoped, lifecycle diagram)
- Add agent system documentation with usage examples
- Add angr to server catalog and architecture diagram
- Update project structure tree with .claude/agents/
- Document load-ghidra.sh as primary CLI import path
- Preserve all existing CLI tools reference and MCP config docs
- Replace 3 individual MCP server entries with single toolbox gateway
- Remove .claude/ from .gitignore so agents/ and settings.json ship with repo
- Add .claude/settings.json enabling project MCP servers by default

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1798eefd24

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread configs/base.json
Comment thread scripts/mcp/gateway.py Outdated
mitsuakki added 2 commits July 9, 2026 13:22
- Dockerfile: drop COPY configs/ (configs/base.json was deleted, empty dir
  fails on fresh checkout)
- Gateway: mark ghidra child as dynamic=True, refresh tool list after
  import_file/connect_instance so instance-scoped tools (decompile_function,
  list_functions, debugger_*, etc.) appear without restarting the MCP process
- Add asyncio.Lock around _tools dict for concurrent list_tools/call_tool safety
@mitsuakki
mitsuakki merged commit d1c1e38 into main Jul 9, 2026
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