Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Archethect/sc-auditor
/ functions
Functions
162 in github.com/Archethect/sc-auditor
⨍
Functions
162
◇
Types & classes
47
↓ 1 callers
Function
build
()
scripts/build-agents.mjs:98
↓ 1 callers
Function
buildDescription
* Builds the finding description, appending function names if present.
src/mcp/tools/slither-parser.ts:131
↓ 1 callers
Function
buildEchidnaArgs
* Builds the argument list for the Echidna process.
src/mcp/tools/run-echidna.ts:63
↓ 1 callers
Function
buildHalmosArgs
* Builds the argument list for the Halmos process.
src/mcp/tools/run-halmos.ts:62
↓ 1 callers
Function
buildMedusaArgs
* Builds the argument list for the Medusa process.
src/mcp/tools/run-medusa.ts:63
↓ 1 callers
Function
buildRequestBody
* Builds the request body for the Solodit API.
src/mcp/tools/search-findings.ts:106
↓ 1 callers
Function
checkBinaryAvailable
* Checks whether the `halmos` binary is available on PATH.
src/mcp/tools/run-halmos.ts:51
↓ 1 callers
Function
checkBinaryAvailable
* Checks whether the `echidna` binary is available on PATH.
src/mcp/tools/run-echidna.ts:52
↓ 1 callers
Function
checkBinaryAvailable
* Checks whether the `medusa` binary is available on PATH.
src/mcp/tools/run-medusa.ts:52
↓ 1 callers
Function
countLines
* 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 callers
Function
ensureWorkDir
* 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 callers
Function
executeRequest
* Executes the Solodit API request with retry logic for 5xx errors.
src/mcp/tools/search-findings.ts:181
↓ 1 callers
Function
extractFilePaths
* Extracts unique file paths from Aderyn instances.
src/mcp/tools/aderyn-parser.ts:91
↓ 1 callers
Function
extractFilePaths
* Extracts unique file paths from Slither elements.
src/mcp/tools/slither-parser.ts:61
↓ 1 callers
Function
extractFrontmatter
(content: string)
tests/integration/smoke.test.ts:85
↓ 1 callers
Function
extractFrontmatter
Extract YAML frontmatter string from SKILL.md (between first two --- delimiters).
skills/security-auditor/__tests__/skill.test.ts:18
↓ 1 callers
Function
extractFunctionNames
* Extracts function names from Slither elements.
src/mcp/tools/slither-parser.ts:86
↓ 1 callers
Function
extractLineRange
* Extracts line range from Aderyn instances.
src/mcp/tools/aderyn-parser.ts:104
↓ 1 callers
Function
extractLineRange
* Extracts line range from the first element's source_mapping.lines.
src/mcp/tools/slither-parser.ts:74
↓ 1 callers
Function
flattenTags
* Flattens tags from issues_issuetagscore[].tags_tag.title.
src/mcp/tools/search-findings.ts:82
↓ 1 callers
Function
fromApiImpact
* Maps API impact (uppercase) to SoloditSeverity (capitalized).
src/mcp/tools/search-findings.ts:70
↓ 1 callers
Function
generateExploitSketchBody
* 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 callers
Function
generateTestFileContent
( hotspot: z.infer<typeof GenerateFoundryPocSchema>["hotspot"], )
src/mcp/tools/generate-foundry-poc.ts:135
↓ 1 callers
Function
handleHttpError
* 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 callers
Function
isCacheFresh
* Checks if cached data is still fresh (within TTL).
src/mcp/services/checklist.ts:195
↓ 1 callers
Function
isCompilationError
* Checks if stderr indicates a compilation error.
src/mcp/tools/aderyn-executor.ts:38
↓ 1 callers
Function
isCompilationError
* Checks if stderr indicates a compilation error.
src/mcp/tools/slither-executor.ts:38
↓ 1 callers
Function
isValidLeafItem
* Type guard for valid leaf items with all required fields.
src/mcp/services/checklist.ts:61
↓ 1 callers
Function
loadDotEnv
* 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 callers
Function
loadWorkflow
()
tests/ci-workflow.test.ts:14
↓ 1 callers
Function
makeTempDir
()
src/core/__tests__/discovery.test.ts:17
↓ 1 callers
Function
parseEchidnaOutput
* Parses Echidna text output into structured results.
src/mcp/tools/run-echidna.ts:83
↓ 1 callers
Function
parseHalmosOutput
* Parses Halmos text output into structured results.
src/mcp/tools/run-halmos.ts:81
↓ 1 callers
Function
parseMedusaOutput
* Parses Medusa text output into structured results.
src/mcp/tools/run-medusa.ts:82
↓ 1 callers
Function
parseResetDate
* Parses rate limit reset timestamp into ISO date string.
src/mcp/tools/search-findings.ts:140
↓ 1 callers
Function
readAderynOutput
* 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 callers
Function
readConfigFile
* 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 callers
Function
readSlitherOutput
* Reads and parses the Slither output file. * @returns Parsed output or error result.
src/mcp/tools/slither-executor.ts:87
↓ 1 callers
Function
resolveConfigPath
* 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 callers
Function
runAderynProcess
* Runs the Aderyn subprocess.
src/mcp/tools/aderyn-executor.ts:51
↓ 1 callers
Function
runEchidnaProcess
* Runs the Echidna subprocess.
src/mcp/tools/run-echidna.ts:120
↓ 1 callers
Function
runHalmosProcess
* Runs the Halmos subprocess.
src/mcp/tools/run-halmos.ts:122
↓ 1 callers
Function
runMedusaProcess
* Runs the Medusa subprocess.
src/mcp/tools/run-medusa.ts:121
↓ 1 callers
Function
runSlitherProcess
* 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 callers
Function
sanitizeFilename
* Sanitizes a hotspot ID for use as a filename.
src/mcp/tools/generate-foundry-poc.ts:192
↓ 1 callers
Function
toApiImpact
* Maps tool severity (capitalized) to API impact (uppercase).
src/mcp/tools/search-findings.ts:63
↓ 1 callers
Function
validateAndNormalize
* Validates and normalizes raw config input into a fully resolved Config object.
src/config/loader.ts:429
↓ 1 callers
Function
validateDir
Recursively scan directory for leftover mcp__sc-auditor__ references.
scripts/build-agents.mjs:196
↓ 1 callers
Function
validateLLMReasoning
* Validates and normalizes the llm_reasoning config section.
src/config/loader.ts:298
↓ 1 callers
Function
validateNumberRange
* Validates that an optional field, if present, is a number within [min, max].
src/config/loader.ts:159
↓ 1 callers
Function
validateProofTools
* Validates and normalizes the proof_tools config section.
src/config/loader.ts:364
↓ 1 callers
Function
validateRelativePath
* 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 callers
Function
validateRootDir
* Validates that rootDir exists and is a directory.
src/mcp/tools/generate-foundry-poc.ts:199
↓ 1 callers
Function
validateStaticAnalysis
* Validates and normalizes the static_analysis config section.
src/config/loader.ts:264
↓ 1 callers
Function
validateVerify
* Validates and normalizes the verify config section. * In benchmark mode, demote_unproven_medium_high defaults to true.
src/config/loader.ts:403
↓ 1 callers
Function
validateWorkflow
* Validates and normalizes the workflow config section.
src/config/loader.ts:324
↓ 1 callers
Function
walkDir
* Recursively walks a directory, collecting .sol file paths. * Does not follow symlinks. Skips excluded and unreadable directories.
src/core/discovery.ts:54
↓ 1 callers
Function
walkTree
* 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 callers
Function
writeCache
* 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
Function
detectorToFinding
* Converts a single Slither detector result into a Finding.
src/mcp/tools/slither-parser.ts:99
Function
parseIssue
* Parses a single API issue into SoloditSearchResult.
src/mcp/tools/search-findings.ts:92
Function
shutdown
()
src/mcp/server.ts:41
← previous
101–162 of 162, ranked by callers