Skip to main content
Glama
Spritualkb

nuclei-server MCP Server

by Spritualkb

cancel_scan

Stop an active security scan by providing its scan ID. Use this tool to halt ongoing vulnerability assessments in the nuclei-server environment.

Instructions

Cancel a running scan

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scanIdYesScan ID to cancel

Implementation Reference

  • Handler for the 'cancel_scan' tool: validates the scan ID, checks if running, kills the process, resets progress, sets status to 'canceled', and returns confirmation.
    if (request.params.name === "cancel_scan") { const { scanId } = request.params.arguments as { scanId: string }; const scan = scans[scanId]; if (!scan) { return { content: [{ type: "text", text: `Scan ${scanId} not found` }], isError: true }; } if (scan.status !== "running" || !scan.process) { return { content: [{ type: "text", text: `Scan ${scanId} is not running` }], isError: true }; } scan.process.kill(); scans[scanId].progress = 0; scan.status = "canceled"; return { content: [{ type: "text", text: `Scan ${scanId} has been canceled` }] }; }
  • src/index.ts:96-107 (registration)
    Registration of the 'cancel_scan' tool in ListToolsRequestSchema response, including name, description, and input schema.
    { name: "cancel_scan", description: "Cancel a running scan", inputSchema: { type: "object", properties: { scanId: { type: "string", description: "Scan ID to cancel" }, }, required: ["scanId"], }, }, ],
  • Input schema definition for 'cancel_scan' tool, requiring a 'scanId' string.
    inputSchema: { type: "object", properties: { scanId: { type: "string", description: "Scan ID to cancel" }, }, required: ["scanId"], },
Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Spritualkb/nuclei-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server