File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,42 @@ A Docker image that provides access to HackerOne's GraphQL API through the Model
3535
3636## Generating an API Token
3737
38+ ### Option 1: Using the included script (recommended)
39+ 1 . Visit https://hackerone.com/settings/api_token/edit to generate an API key
40+ 2 . Run the token generation script: ` ./scripts/generate_token.sh `
41+ This will prompt for your username and API key, then automatically encode and copy the token to your clipboard.
42+ 3 . Use the resulting string as your TOKEN value
43+
44+ ### Option 2: Manual encoding
38451 . Visit https://hackerone.com/settings/api_token/edit to generate an API key
39462 . Encode as: ` echo -n "username:api_key" | base64 `
40473 . Use the resulting string as your TOKEN value
4148
49+ ## Example config in Flowise
50+
51+ 1 . Go to an Agent node
52+ 2 . Go to tools
53+ 3 . Select custom MCP
54+ 4 . Put the following in the MCP parameters:
55+
56+ ``` json
57+ {
58+ "command" : " /usr/local/bin/docker" ,
59+ "args" : [
60+ " run" ,
61+ " -i" ,
62+ " --rm" ,
63+ " -e" ,
64+ " ENDPOINT=https://hackerone.com/graphql" ,
65+ " -e" ,
66+ " TOKEN=<your_base64_encoded_token>" ,
67+ " -e" ,
68+ " ALLOW_MUTATIONS=none" ,
69+ " hackertwo/hackerone-graphql-mcp-server:1.0.5"
70+ ]
71+ }
72+ ```
73+
4274## Example config in editor (Zed)
4375
4476``` json
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+ set -e
3+
4+ cleanup () { stty echo 2> /dev/null || true ; }
5+ trap cleanup EXIT INT TERM
6+
7+ # Prompt for username
8+ printf " Username: "
9+ read -r USERNAME
10+
11+ # Prompt for API key (silent)
12+ printf " API key: "
13+ stty -echo
14+ read -r APIKEY
15+ cleanup
16+ printf " \n"
17+
18+ # Encode and copy
19+ ENCODED=$( printf " %s" " ${USERNAME} :${APIKEY} " | base64 | tr -d ' \n' )
20+ printf " %s" " $ENCODED " | pbcopy
21+
22+ printf " \nYour encoded token has been copied to the clipboard:\n\n"
23+ printf " %s\n" " $ENCODED "
You can’t perform that action at this time.
0 commit comments