Files
5b7e76eb8e feat(mcp): add get_report tool for live disclosed-report bodies (#187)
* docs: design + plan for live disclosed-report body fetch (get_report)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* feat(mcp): add public get_report tool for live disclosed-report bodies

New keyless read-only get_report(id|url): GETs reports/<id>.json and returns a
whitelisted body + metadata subset, never the raw 51-key object. Thin/empty body
yields a fallback note. _report_json helper mirrors _graphql error handling.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs(hunt): wire get_report precedent-fetch into active-testing step

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* fix(mcp): get_report bad input uses ToolError channel + ascii-digit guard

Match the in-repo convention (every other tool raises ToolError for bad
arguments, surfaced as a recoverable isError result); reserve InvalidParams
for protocol-level errors. isascii() guard rejects unicode superscripts /
other-script digits that str.isdigit() accepts but int() mis-handles. Adds
url-variant parse tests; fixes stale spec prose to get_report(url=...).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* docs(plan): drop literal client shingles from leak-check example

The plan's leak-check step hardcoded the banned client identifiers in a
grep pattern, which the hash-based leak-guard (scan_identifiers) matched as
real identifiers. Point the step at the guard script itself instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-20 13:16:56 +05:30
..

HackerOne MCP server

A stdio MCP server that gives the agent HackerOne data while hunting and writing reports. It uses only the Python standard library and reuses the HackerOne GraphQL client shape from skills/offensive-osint/scripts/h1_reference.py.

Tools

Tool Needs a key What it returns
search_disclosed_reports No Disclosed Hacktivity reports for a query and/or program: title, URL, severity, CWE, bounty, votes. Use it to check for duplicates before reporting.
get_program No A public program's base bounty, average bounty range, resolved report count, launch date and state.
get_program_scope No A public program's structured scope (in-scope and out-of-scope assets, bounty eligibility, max severity, instructions) and policy text.
list_my_programs Yes Programs your account can see, private invitations included.
get_my_program Yes One program's policy and full scope as your account sees it.
list_my_reports Yes Your own reports and their state, optionally for one program.

The logged-in tools appear only when HACKERONE_API_USERNAME and HACKERONE_API_TOKEN are set. They use the read-only Hacker API; nothing in this server submits or changes anything on HackerOne. Create the token under HackerOne Settings → API Token.

Connect it

Installed as the Claude Code plugin, the server comes with it: it starts only while the plugin is enabled, runs from the plugin's installed copy, and takes the optional username and token as plugin options (the token is kept in secure storage):

echo '{"hackerone_api_username":"<your username>","hackerone_api_token":"<your token>"}' | claude plugin configure claude-bughunter@elementalsouls --values-stdin

Without the plugin, register it by hand. Claude Code:

claude mcp add --scope user hackerone -- python3 /path/to/Claude-BugHunter/mcp/hackerone/server.py

With the logged-in tools:

claude mcp add --scope user hackerone \
  -e HACKERONE_API_USERNAME=<your username> -e HACKERONE_API_TOKEN=<your token> \
  -- python3 /path/to/Claude-BugHunter/mcp/hackerone/server.py

On Windows give the full path to python.exe: python3 there is often the Microsoft Store stub, which does not run Python.

Other clients take the same command and arguments as a stdio server entry.

Search syntax

query goes to HackerOne's own search, so AND / OR work (oauth AND redirect_uri). program adds team_handle:<handle>, which HackerOne filters server-side. sort is relevance (default), votes or bounty. Results are capped at 50 per call.