Files
NeuroSploit/mcp/bin/neurosploit-mcp
CyberSecurityUP 19ead71279 feat(mcp): global MCP server package with 48 security tools
Add standalone MCP installer package (mcp/) that builds, links and
registers the NeuroSploit MCP server globally for Claude Code, Cursor,
Windsurf and VS Code.

New MCP tools (9): neo4j, sandbox, capability, provenance, reactive,
knowledge, graph_chains, mcp_profiles, config — total 48 tools.

Install: bash mcp/install.sh
2026-11-18 10:09:00 -03:00

30 lines
922 B
Bash
Executable File

#!/usr/bin/env bash
# neurosploit-mcp — wrapper that locates the neurosploit binary and runs it in
# MCP server mode (stdio JSON-RPC). Installed globally so any MCP client can
# reference it by name.
set -euo pipefail
# 1. Explicit override
if [[ -n "${NEUROSPLOIT_BIN:-}" ]] && [[ -x "$NEUROSPLOIT_BIN" ]]; then
exec "$NEUROSPLOIT_BIN" mcp "$@"
fi
# 2. In PATH
if command -v neurosploit &>/dev/null; then
exec neurosploit mcp "$@"
fi
# 3. Known install locations
for candidate in \
/usr/local/bin/neurosploit \
/opt/neurosploit-rs/neurosploit-rs/target/release/neurosploit \
"$HOME/.neurosploit/bin/neurosploit" \
"$HOME/.cargo/bin/neurosploit"; do
if [[ -x "$candidate" ]]; then
exec "$candidate" mcp "$@"
fi
done
echo '{"jsonrpc":"2.0","id":null,"error":{"code":-32603,"message":"neurosploit binary not found. Set NEUROSPLOIT_BIN or run: cargo install --path neurosploit-rs/app"}}' >&2
exit 1