Skip to content

.env and Configuration

Full configuration reference

1. LLM and provider selection

VariablePurposeDefault / Typical value
DEFAULT_LLM_PROVIDERSelects the default LLM provider used by the main runtime.openai
OPENAI_API_KEYAPI key for OpenAI-compatible endpoints.no default
OPENAI_MODELDefault OpenAI-compatible model name.gpt-4-turbo-preview
OPENAI_BASE_URLBase URL for OpenAI-compatible APIs or gateways.https://api.openai.com/v1
ANTHROPIC_API_KEYAnthropic API key.no default
ANTHROPIC_MODELDefault Anthropic model name.claude-3-5-sonnet-20241022
ANTHROPIC_BASE_URLBase URL for Anthropic-compatible APIs.no default

2. Browser and Puppeteer

VariablePurposeDefault / Typical value
PUPPETEER_HEADLESSControls whether browsers launch in headless mode.code default false; .env.example shows true
PUPPETEER_TIMEOUTDefault Puppeteer timeout in milliseconds.30000
PUPPETEER_EXECUTABLE_PATHExplicit browser executable path.no default
CHROME_PATHAlternate browser executable path variable.no default
BROWSER_EXECUTABLE_PATHAnother alternate browser executable path variable.no default
CAPTCHA_SCREENSHOT_DIRFallback directory for CAPTCHA screenshots../screenshots
MCP_SCREENSHOT_DIRRoot directory for regular screenshots.typical example: ./screenshots/manual
CAPTCHA_PROVIDERDefault CAPTCHA solving provider.manual
CAPTCHA_API_KEYAPI key for automatic CAPTCHA solving providers.no default
CAPTCHA_SOLVER_BASE_URLBase URL for the external CAPTCHA solver service.no default
CAPTCHA_DEFAULT_TIMEOUT_MSDefault CAPTCHA wait timeout.180000

3. Server identity and logging

VariablePurposeDefault / Typical value
MCP_SERVER_NAMEPublic server name announced by the process.jshookmcp
MCP_SERVER_VERSIONPublic server version announced by the process.0.1.8 (example value)
LOG_LEVELLogging verbosity.info
RUNTIME_ERROR_WINDOW_MSRecovery window length for runtime error counting.60000
RUNTIME_ERROR_THRESHOLDRecoverable error threshold inside the runtime error window.5

4. Profiles, search, and tool selection

VariablePurposeDefault / Typical value
MCP_TOOL_PROFILESelects the tool profile: search, workflow, or full.default: search
MCP_TOOL_DOMAINSExplicit domain allowlist; overrides MCP_TOOL_PROFILE when set.no default
SEARCH_WORKFLOW_BOOST_TIERSTiers that receive workflow-domain ranking boosts.typical example: workflow,full
SEARCH_WORKFLOW_DOMAIN_BOOST_MULTIPLIERRanking multiplier for workflow-domain results in search_tools.typical example: 1.5
SEARCH_INTENT_TOOL_BOOST_RULES_JSONJSON override for explicit intent-to-tool ranking boosts.no default
DYNAMIC_BOOST_ENABLEDEnable seamless auto-boost during search_tools.default: true
MCP_DEFAULT_PLUGIN_BOOST_TIERDefault tier for plugin auto-registration during boost.full

5. Transport, HTTP, and security

VariablePurposeDefault / Typical value
MCP_TRANSPORTSelects transport mode: stdio or http.stdio
MCP_HOSTHTTP bind host.127.0.0.1
MCP_PORTHTTP bind port.3000
MCP_AUTH_TOKENEnables Bearer token auth.no default
MCP_ALLOW_INSECUREAllows insecure HTTP binding behavior on non-localhost.disabled by default
MCP_MAX_BODY_BYTESMaximum HTTP JSON request body size.10 * 1024 * 1024
MCP_RATE_LIMIT_WINDOW_MSHTTP rate limit window size.60000
MCP_RATE_LIMIT_MAXMaximum requests per rate limit window.60
MCP_HTTP_REQUEST_TIMEOUT_MSHTTP request timeout.30000
MCP_HTTP_HEADERS_TIMEOUT_MSHTTP headers timeout.10000
MCP_HTTP_KEEPALIVE_TIMEOUT_MSHTTP keep-alive timeout.60000
MCP_HTTP_FORCE_CLOSE_TIMEOUT_MSForce-close grace timeout.5000

6. Extension roots, signatures, and registry

VariablePurposeDefault / Typical value
MCP_PLUGIN_ROOTSComma-separated plugin roots.typical example: ./plugins,./dist/plugins
MCP_WORKFLOW_ROOTSComma-separated workflow roots.typical example: ./workflows
MCP_PLUGIN_ALLOWED_DIGESTSPre-import SHA-256 allowlist for plugin files.no default
MCP_PLUGIN_SIGNATURE_REQUIREDRequires plugin signatures.stricter by default in production
MCP_PLUGIN_SIGNATURE_SECRETHMAC secret used for plugin signature verification.no default
MCP_PLUGIN_STRICT_LOADEnables strict extension loading behavior.stricter by default in production
EXTENSION_REGISTRY_BASE_URLBase URL for browse_extension_registry and install_extension.https://raw.githubusercontent.com/vmoranv/jshookmcpextension/master/registry

7. Plugin-specific toggles and boost tiers

VariablePurposeDefault / Typical value
PLUGIN_BURP_OFFICIAL_MCP_SSE_ENABLEDEnables or disables the Burp official MCP SSE plugin.no default
PLUGIN_ZAP_REST_BRIDGE_ENABLEDEnables or disables the ZAP REST bridge plugin.no default
PLUGIN_PLATFORM_BRIDGE_ENABLEDEnables or disables the platform bridge plugin.no default
PLUGIN_NATIVE_BRIDGE_ENABLEDEnables or disables the native bridge plugin.no default
PLUGIN_BURP_OFFICIAL_MCP_SSE_BOOST_DOMAINOverride boost tier for the Burp plugin.typical value: workflow
PLUGIN_ZAP_REST_BRIDGE_BOOST_DOMAINOverride boost tier for the ZAP plugin.typical value: workflow
PLUGIN_PLATFORM_BRIDGE_BOOST_DOMAINOverride boost tier for the platform bridge plugin.typical value: full
PLUGIN_NATIVE_BRIDGE_BOOST_DOMAINOverride boost tier for the native bridge plugin.typical value: full

8. Bridges and platform endpoints

VariablePurposeDefault / Typical value
BURP_MCP_SSE_URLBurp official MCP SSE bridge URL.typical value: http://127.0.0.1:9876/sse
BURP_MCP_AUTH_TOKENOptional auth token for the Burp bridge.no default
ZAP_API_URLZAP REST API URL.typical value: http://127.0.0.1:8080
ZAP_API_KEYZAP API key.no default
GHIDRA_BRIDGE_URLGhidra bridge URL.http://127.0.0.1:18080
IDA_BRIDGE_URLIDA bridge URL.http://127.0.0.1:18081
DEBUG_PORT_CANDIDATESCandidate ports scanned when looking for CDP or Node debug listeners.9222,9229,9333,2039
DEFAULT_DEBUG_PORTDefault debug port used for remote-debugging launches.9222

9. Cache, token budget, and performance

VariablePurposeDefault / Typical value
ENABLE_CACHEEnables disk-backed caching..env.example shows true; code default is false
CACHE_DIRCache directory..cache
CACHE_TTLCache TTL in seconds.3600
CACHE_GLOBAL_MAX_SIZE_BYTESMaximum total cache size.524288000
CACHE_LOW_HIT_RATE_THRESHOLDLow-hit-rate threshold for cache heuristics.0.3
TOKEN_BUDGET_MAX_TOKENSMaximum token budget.200000
DETAILED_DATA_DEFAULT_TTL_MSDefault TTL for detailed data entries.1800000
DETAILED_DATA_MAX_TTL_MSMaximum TTL for detailed data entries.3600000
DETAILED_DATA_SMART_THRESHOLD_BYTESThreshold for auto-summarizing detailed data.51200
MAX_CONCURRENT_ANALYSISMax concurrent analysis jobs.3
MAX_CODE_SIZE_MBMax code payload size for analysis.10
jshook_IO_CONCURRENCYI/O concurrency limit.4
jshook_CPU_CONCURRENCYCPU concurrency limit.2
jshook_CDP_CONCURRENCYCDP concurrency limit.2

10. Worker pool and parallel scheduling

VariablePurposeDefault / Typical value
WORKER_POOL_MIN_WORKERSMinimum worker count.2
WORKER_POOL_MAX_WORKERSMaximum worker count.4
WORKER_POOL_IDLE_TIMEOUT_MSWorker idle timeout.30000
WORKER_POOL_JOB_TIMEOUT_MSWorker job timeout.15000
PARALLEL_DEFAULT_CONCURRENCYDefault parallel execution width.3
PARALLEL_DEFAULT_TIMEOUT_MSDefault parallel timeout.60000
PARALLEL_DEFAULT_MAX_RETRIESDefault parallel retry count.2
PARALLEL_RETRY_BACKOFF_BASE_MSBase retry backoff for parallel jobs.1000

11. External tools, sandboxing, and symbolic execution

VariablePurposeDefault / Typical value
EXTERNAL_TOOL_TIMEOUT_MSTotal external tool timeout.30000
EXTERNAL_TOOL_PROBE_TIMEOUT_MSExternal tool probe timeout.5000
EXTERNAL_TOOL_PROBE_CACHE_TTL_MSProbe cache TTL for external tools.60000
EXTERNAL_TOOL_FORCE_KILL_GRACE_MSGrace period before force-killing an external tool.2000
EXTERNAL_TOOL_MAX_STDOUT_BYTESMax stdout bytes captured from external tools.10485760
EXTERNAL_TOOL_MAX_STDERR_BYTESMax stderr bytes captured from external tools.1048576
SANDBOX_EXEC_TIMEOUT_MSSandbox execution timeout.5000
SANDBOX_MEMORY_LIMIT_MBSandbox memory limit.128
SANDBOX_STACK_SIZE_MBSandbox stack size.4
SANDBOX_TERMINATE_GRACE_MSSandbox termination grace timeout.2000
SYMBOLIC_EXEC_MAX_PATHSMaximum symbolic execution path count.100
SYMBOLIC_EXEC_MAX_DEPTHMaximum symbolic execution depth.50
SYMBOLIC_EXEC_TIMEOUT_MSSymbolic execution timeout.30000
PACKER_SANDBOX_TIMEOUT_MSPacker sandbox timeout.3000

12. LLM token budgets for analysis routines

VariablePurposeDefault / Typical value
ADV_DEOBF_LLM_MAX_TOKENSMax tokens for advanced deobfuscation prompts.3000
VM_DEOBF_LLM_MAX_TOKENSMax tokens for VM deobfuscation prompts.4000
DEOBF_LLM_MAX_TOKENSMax tokens for general deobfuscation prompts.2000
CRYPTO_DETECT_LLM_MAX_TOKENSMax tokens for crypto detection prompts.2000

13. Workflow batch and bundle cache tuning

VariablePurposeDefault / Typical value
WORKFLOW_BATCH_MAX_RETRIESDefault max retries for workflow batch operations.3
WORKFLOW_BATCH_MAX_TIMEOUT_MSDefault max timeout for workflow batch operations.300000
WORKFLOW_BUNDLE_CACHE_TTL_MSWorkflow bundle cache TTL.300000
WORKFLOW_BUNDLE_CACHE_MAX_BYTESWorkflow bundle cache size cap.104857600

14. Memory operations

VariablePurposeDefault / Typical value
MEMORY_READ_TIMEOUT_MSMemory read timeout.10000
MEMORY_MAX_READ_BYTESMax bytes for one memory read.16777216
MEMORY_WRITE_TIMEOUT_MSMemory write timeout.10000
MEMORY_MAX_WRITE_BYTESMax bytes for one memory write.16384
MEMORY_DUMP_TIMEOUT_MSMemory dump timeout.60000
MEMORY_SCAN_TIMEOUT_MSMemory scan timeout.120000
MEMORY_SCAN_MAX_BUFFER_BYTESMax buffer bytes used during memory scan.52428800
MEMORY_SCAN_MAX_RESULTSMax memory scan results.10000
MEMORY_SCAN_MAX_REGIONSMax scanned memory regions.50000
MEMORY_SCAN_REGION_MAX_BYTESMax bytes per scanned region.16777216
MEMORY_INJECT_TIMEOUT_MSInjection timeout.30000
MEMORY_MONITOR_INTERVAL_MSMemory monitor polling interval.1000
MEMORY_VMMAP_TIMEOUT_MSMemory map query timeout.15000
MEMORY_PROTECTION_QUERY_TIMEOUT_MSMemory protection query timeout.15000
MEMORY_PROTECTION_PWSH_TIMEOUT_MSPowerShell memory protection query timeout.30000
NATIVE_ADMIN_CHECK_TIMEOUT_MSNative admin privilege check timeout.5000
NATIVE_SCAN_MAX_RESULTSMax native scan results.10000
PROCESS_LAUNCH_WAIT_MSWait after launching a debug process.2000
WIN_DEBUG_PORT_POLL_ATTEMPTSWindows debug-port poll attempts.20
WIN_DEBUG_PORT_POLL_INTERVAL_MSWindows debug-port poll interval.500

Released under AGPL-3.0-only