MCPcopy Create free account

hub / github.com/Archethect/sc-auditor / functions

Functions162 in github.com/Archethect/sc-auditor

↓ 1 callersFunctionbuild
()
scripts/build-agents.mjs:98
↓ 1 callersFunctionbuildDescription
* Builds the finding description, appending function names if present.
src/mcp/tools/slither-parser.ts:131
↓ 1 callersFunctionbuildEchidnaArgs
* Builds the argument list for the Echidna process.
src/mcp/tools/run-echidna.ts:63
↓ 1 callersFunctionbuildHalmosArgs
* Builds the argument list for the Halmos process.
src/mcp/tools/run-halmos.ts:62
↓ 1 callersFunctionbuildMedusaArgs
* Builds the argument list for the Medusa process.
src/mcp/tools/run-medusa.ts:63
↓ 1 callersFunctionbuildRequestBody
* Builds the request body for the Solodit API.
src/mcp/tools/search-findings.ts:106
↓ 1 callersFunctioncheckBinaryAvailable
* Checks whether the `halmos` binary is available on PATH.
src/mcp/tools/run-halmos.ts:51
↓ 1 callersFunctioncheckBinaryAvailable
* Checks whether the `echidna` binary is available on PATH.
src/mcp/tools/run-echidna.ts:52
↓ 1 callersFunctioncheckBinaryAvailable
* Checks whether the `medusa` binary is available on PATH.
src/mcp/tools/run-medusa.ts:52
↓ 1 callersFunctioncountLines
* Counts lines: \\n occurrences + 1, or 0 for empty content. * A trailing newline adds an extra line compared to `wc -l` (intentional per AC4).
src/core/discovery.ts:39
↓ 1 callersFunctionensureWorkDir
* Ensures the work directory structure exists. * * Creates `<rootDir>/.sc-auditor-work/pocs/` if it does not already exist.
src/mcp/tools/generate-foundry-poc.ts:217
↓ 1 callersFunctionexecuteRequest
* Executes the Solodit API request with retry logic for 5xx errors.
src/mcp/tools/search-findings.ts:181
↓ 1 callersFunctionextractFilePaths
* Extracts unique file paths from Aderyn instances.
src/mcp/tools/aderyn-parser.ts:91
↓ 1 callersFunctionextractFilePaths
* Extracts unique file paths from Slither elements.
src/mcp/tools/slither-parser.ts:61
↓ 1 callersFunctionextractFrontmatter
(content: string)
tests/integration/smoke.test.ts:85
↓ 1 callersFunctionextractFrontmatter
Extract YAML frontmatter string from SKILL.md (between first two --- delimiters).
skills/security-auditor/__tests__/skill.test.ts:18
↓ 1 callersFunctionextractFunctionNames
* Extracts function names from Slither elements.
src/mcp/tools/slither-parser.ts:86
↓ 1 callersFunctionextractLineRange
* Extracts line range from Aderyn instances.
src/mcp/tools/aderyn-parser.ts:104
↓ 1 callersFunctionextractLineRange
* Extracts line range from the first element's source_mapping.lines.
src/mcp/tools/slither-parser.ts:74
↓ 1 callersFunctionflattenTags
* Flattens tags from issues_issuetagscore[].tags_tag.title.
src/mcp/tools/search-findings.ts:82
↓ 1 callersFunctionfromApiImpact
* Maps API impact (uppercase) to SoloditSeverity (capitalized).
src/mcp/tools/search-findings.ts:70
↓ 1 callersFunctiongenerateExploitSketchBody
* Generates structured exploit body from an exploit sketch. * * Produces labeled SETUP/ATTACK/ASSERTIONS sections populated from sketch fields.
src/mcp/tools/generate-foundry-poc.ts:103
↓ 1 callersFunctiongenerateTestFileContent
( hotspot: z.infer<typeof GenerateFoundryPocSchema>["hotspot"], )
src/mcp/tools/generate-foundry-poc.ts:135
↓ 1 callersFunctionhandleHttpError
* Handles HTTP error responses and returns appropriate error messages. * Returns null if the error should trigger a retry.
src/mcp/tools/search-findings.ts:155
↓ 1 callersFunctionisCacheFresh
* Checks if cached data is still fresh (within TTL).
src/mcp/services/checklist.ts:195
↓ 1 callersFunctionisCompilationError
* Checks if stderr indicates a compilation error.
src/mcp/tools/aderyn-executor.ts:38
↓ 1 callersFunctionisCompilationError
* Checks if stderr indicates a compilation error.
src/mcp/tools/slither-executor.ts:38
↓ 1 callersFunctionisValidLeafItem
* Type guard for valid leaf items with all required fields.
src/mcp/services/checklist.ts:61
↓ 1 callersFunctionloadDotEnv
* Loads a .env file from the config directory if it exists. * Sets environment variables that are NOT already set (env takes precedence). * Supports
src/config/loader.ts:195
↓ 1 callersFunctionloadWorkflow
()
tests/ci-workflow.test.ts:14
↓ 1 callersFunctionmakeTempDir
()
src/core/__tests__/discovery.test.ts:17
↓ 1 callersFunctionparseEchidnaOutput
* Parses Echidna text output into structured results.
src/mcp/tools/run-echidna.ts:83
↓ 1 callersFunctionparseHalmosOutput
* Parses Halmos text output into structured results.
src/mcp/tools/run-halmos.ts:81
↓ 1 callersFunctionparseMedusaOutput
* Parses Medusa text output into structured results.
src/mcp/tools/run-medusa.ts:82
↓ 1 callersFunctionparseResetDate
* Parses rate limit reset timestamp into ISO date string.
src/mcp/tools/search-findings.ts:140
↓ 1 callersFunctionreadAderynOutput
* Reads and parses the Aderyn output file. * * Note: Unlike Slither, Aderyn does not include a 'success' field in its JSON output. * Aderyn's outpu
src/mcp/tools/aderyn-executor.ts:95
↓ 1 callersFunctionreadConfigFile
* Reads and parses the config file from disk. * Returns empty object if file doesn't exist (config.json is optional), * unless SC_AUDITOR_CONFIG was
src/config/loader.ts:240
↓ 1 callersFunctionreadSlitherOutput
* Reads and parses the Slither output file. * @returns Parsed output or error result.
src/mcp/tools/slither-executor.ts:87
↓ 1 callersFunctionresolveConfigPath
* Resolves the config file path. * SC_AUDITOR_CONFIG env var takes precedence over the default path. * Returns whether the path was explicitly set v
src/config/loader.ts:181
↓ 1 callersFunctionrunAderynProcess
* Runs the Aderyn subprocess.
src/mcp/tools/aderyn-executor.ts:51
↓ 1 callersFunctionrunEchidnaProcess
* Runs the Echidna subprocess.
src/mcp/tools/run-echidna.ts:120
↓ 1 callersFunctionrunHalmosProcess
* Runs the Halmos subprocess.
src/mcp/tools/run-halmos.ts:122
↓ 1 callersFunctionrunMedusaProcess
* Runs the Medusa subprocess.
src/mcp/tools/run-medusa.ts:121
↓ 1 callersFunctionrunSlitherProcess
* Runs the Slither subprocess. * Note: Slither exits with non-zero when it finds issues, which is expected. * We only treat it as failure if the out
src/mcp/tools/slither-executor.ts:53
↓ 1 callersFunctionsanitizeFilename
* Sanitizes a hotspot ID for use as a filename.
src/mcp/tools/generate-foundry-poc.ts:192
↓ 1 callersFunctiontoApiImpact
* Maps tool severity (capitalized) to API impact (uppercase).
src/mcp/tools/search-findings.ts:63
↓ 1 callersFunctionvalidateAndNormalize
* Validates and normalizes raw config input into a fully resolved Config object.
src/config/loader.ts:429
↓ 1 callersFunctionvalidateDir
Recursively scan directory for leftover mcp__sc-auditor__ references.
scripts/build-agents.mjs:196
↓ 1 callersFunctionvalidateLLMReasoning
* Validates and normalizes the llm_reasoning config section.
src/config/loader.ts:298
↓ 1 callersFunctionvalidateNumberRange
* Validates that an optional field, if present, is a number within [min, max].
src/config/loader.ts:159
↓ 1 callersFunctionvalidateProofTools
* Validates and normalizes the proof_tools config section.
src/config/loader.ts:364
↓ 1 callersFunctionvalidateRelativePath
* Validates that report_output_dir, if present, is a non-empty relative path * without '..' traversal, absolute paths, or UNC paths.
src/config/loader.ts:97
↓ 1 callersFunctionvalidateRootDir
* Validates that rootDir exists and is a directory.
src/mcp/tools/generate-foundry-poc.ts:199
↓ 1 callersFunctionvalidateStaticAnalysis
* Validates and normalizes the static_analysis config section.
src/config/loader.ts:264
↓ 1 callersFunctionvalidateVerify
* Validates and normalizes the verify config section. * In benchmark mode, demote_unproven_medium_high defaults to true.
src/config/loader.ts:403
↓ 1 callersFunctionvalidateWorkflow
* Validates and normalizes the workflow config section.
src/config/loader.ts:324
↓ 1 callersFunctionwalkDir
* Recursively walks a directory, collecting .sol file paths. * Does not follow symlinks. Skips excluded and unreadable directories.
src/core/discovery.ts:54
↓ 1 callersFunctionwalkTree
* Recursively walks the nested category tree and flattens it. * Attaches the parent category name to each leaf item. * Warns about malformed nodes t
src/mcp/services/checklist.ts:79
↓ 1 callersFunctionwriteCache
* Writes data to cache atomically using temp file + rename. * This prevents concurrent readers from seeing partial files. * Uses a unique temp filen
src/mcp/services/checklist.ts:227
FunctiondetectorToFinding
* Converts a single Slither detector result into a Finding.
src/mcp/tools/slither-parser.ts:99
FunctionparseIssue
* Parses a single API issue into SoloditSearchResult.
src/mcp/tools/search-findings.ts:92
Functionshutdown
()
src/mcp/server.ts:41
← previous101–162 of 162, ranked by callers