MCPcopy Create free account

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

Functions162 in github.com/Archethect/sc-auditor

↓ 152 callersFunctionreadSkill
Read the SKILL.md file content.
skills/security-auditor/__tests__/skill.test.ts:13
↓ 128 callersFunctionextractBody
Extract the markdown body (everything after the closing --- of frontmatter).
skills/security-auditor/__tests__/skill.test.ts:30
↓ 95 callersFunctionloadConfig
(configDir: string = process.cwd())
src/config/loader.ts:505
↓ 81 callersFunctionwriteConfig
(dir: string, content: unknown)
src/config/__tests__/loader.test.ts:11
↓ 69 callersFunctionwriteFile
(dir: string, relPath: string, content: string)
src/core/__tests__/discovery.test.ts:21
↓ 53 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing. * Returns tools list, callTool function, and cleanup function.
src/mcp/tools/__tests__/search-findings.test.ts:19
↓ 52 callersFunctiondiscoverSolidityFiles
(repoRoot: string)
src/core/discovery.ts:104
↓ 50 callersFunctionmockExecFile
( handler: (args: string[], cb: ExecFileCallback) => void, )
src/mcp/tools/__tests__/exec-test-utils.ts:51
↓ 33 callersFunctionmockSuccessResponse
* Creates a mock successful API response with optional findings data.
src/mcp/tools/__tests__/search-findings.test.ts:60
↓ 32 callersFunctionparseAderynOutput
(output: AderynOutput)
src/mcp/tools/aderyn-parser.ts:120
↓ 26 callersFunctionexecuteSlither
(rootDir: string)
src/mcp/tools/slither-executor.ts:120
↓ 26 callersFunctionflattenChecklist
(raw: unknown)
src/mcp/services/checklist.ts:121
↓ 26 callersFunctionloadFixture
Load test fixture.
src/mcp/services/__tests__/checklist.test.ts:20
↓ 23 callersFunctionexecuteAderyn
(rootDir: string)
src/mcp/tools/aderyn-executor.ts:120
↓ 21 callersFunctioncreateMcpServer
()
src/mcp/server.ts:22
↓ 21 callersFunctionparseFrontmatter
Parse YAML frontmatter into an object.
skills/security-auditor/__tests__/skill.test.ts:25
↓ 21 callersFunctionparseSlitherOutput
(output: SlitherOutput)
src/mcp/tools/slither-parser.ts:145
↓ 19 callersFunctionjsonResult
(data: unknown)
src/mcp/server.ts:69
↓ 19 callersFunctionparseResultContent
* Parses the JSON text content from an MCP tool result.
src/mcp/tools/__tests__/search-findings.test.ts:112
↓ 18 callersFunctioncreateIssue
* Creates a test issue with default values.
src/mcp/tools/__tests__/aderyn-parser.test.ts:48
↓ 18 callersFunctiongetJsonOutputPath
(args: string[])
src/mcp/tools/__tests__/exec-test-utils.ts:19
↓ 17 callersFunctioncreateAderynOutput
* Creates a test Aderyn output structure.
src/mcp/tools/__tests__/aderyn-parser.test.ts:31
↓ 16 callersFunctioncreateTestFinding
* Creates a standard test finding object for API responses.
src/mcp/tools/__tests__/search-findings.test.ts:90
↓ 16 callersFunctionvalidationError
(message: string)
src/config/loader.ts:63
↓ 15 callersFunctioncreateEnoentError
(message = "spawn tool ENOENT")
src/mcp/tools/__tests__/exec-test-utils.ts:60
↓ 15 callersFunctiongetResultText
* Gets the text content from an MCP tool result.
src/mcp/tools/__tests__/search-findings.test.ts:120
↓ 14 callersFunctionfetchChecklist
()
src/mcp/services/checklist.ts:261
↓ 13 callersFunctioncreateElement
* Creates a test element with the given properties.
src/mcp/tools/__tests__/slither-parser.test.ts:30
↓ 12 callersFunctioncreateDetector
* Creates a test detector with optional overrides.
src/mcp/tools/__tests__/slither-parser.test.ts:41
↓ 12 callersFunctioncreateSlitherOutput
* Creates a successful Slither output with the given detectors.
src/mcp/tools/__tests__/slither-parser.test.ts:66
↓ 11 callersFunctiongetDiscoveryWarnings
()
src/core/discovery.ts:16
↓ 11 callersFunctionminimalFinding
Construct a minimal valid Finding with only required fields.
src/types/__tests__/finding-types.test.ts:14
↓ 11 callersFunctionmockErrorResponse
* Creates a mock error API response.
src/mcp/tools/__tests__/search-findings.test.ts:75
↓ 11 callersFunctionsetupConfigDir
* Sets up a temp directory with config.json for testing.
src/mcp/tools/__tests__/search-findings.test.ts:51
↓ 11 callersFunctionvalidateBoolean
* Validates that an optional field, if present, is a boolean.
src/config/loader.ts:127
↓ 10 callersFunctionmapSlitherSeverity
(impact: string)
src/mcp/tools/slither-parser.ts:42
↓ 9 callersFunctionextractText
Extract the text string from a CallToolResult's first content block.
src/mcp/__tests__/server.test.ts:17
↓ 9 callersFunctionfilterByCategory
(items: ChecklistItem[], category: string | undefined)
src/mcp/services/checklist.ts:145
↓ 9 callersFunctiongenerateFoundryPoc
( rootDir: string, hotspot: z.infer<typeof GenerateFoundryPocSchema>["hotspot"], )
src/mcp/tools/generate-foundry-poc.ts:230
↓ 7 callersFunctionmapSlitherConfidence
(confidence: string)
src/mcp/tools/slither-parser.ts:54
↓ 6 callersFunctionerrorResult
* Creates a failed execution result with the given error message.
src/mcp/tools/slither-executor.ts:31
↓ 6 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing. * Returns tools list, callTool function, and cleanup function.
src/mcp/tools/__tests__/get-checklist.test.ts:19
↓ 5 callersFunctionexecuteEchidna
( input: z.infer<typeof RunEchidnaSchema>, )
src/mcp/tools/run-echidna.ts:160
↓ 5 callersFunctionexecuteHalmos
( input: z.infer<typeof RunHalmosSchema>, )
src/mcp/tools/run-halmos.ts:162
↓ 5 callersFunctionexecuteMedusa
( input: z.infer<typeof RunMedusaSchema>, )
src/mcp/tools/run-medusa.ts:161
↓ 5 callersFunctiongetSchemaProps
* Returns the properties object from a tool's inputSchema.
src/mcp/tools/__tests__/tool-schemas.test.ts:51
↓ 5 callersFunctiongetTool
* Returns a tool by name, throwing if not found (ensures type safety without non-null assertion).
src/mcp/tools/__tests__/tool-schemas.test.ts:40
↓ 5 callersFunctionread
Read a file as UTF-8.
scripts/build-agents.mjs:33
↓ 5 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing. * Returns tools list, callTool function, and cleanup function.
src/mcp/tools/__tests__/run-slither.test.ts:25
↓ 5 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing. * Returns tools list, callTool function, and cleanup function.
src/mcp/tools/__tests__/run-aderyn.test.ts:25
↓ 5 callersFunctionstartStdio
(server?: McpServer, transport?: Transport)
src/mcp/server.ts:36
↓ 5 callersFunctionvalidatePath
(rootDir: string)
src/mcp/tools/executor-utils.ts:21
↓ 5 callersFunctionwriteDotEnv
(dir: string, content: string)
src/config/__tests__/loader.test.ts:15
↓ 4 callersFunctionbootServer
()
src/mcp/main.ts:26
↓ 4 callersFunctionerrorResult
* Creates a failed execution result with the given error message.
src/mcp/tools/aderyn-executor.ts:31
↓ 4 callersFunctionmockExit
Mock process.exit so the test runner does not terminate.
src/mcp/__tests__/server.test.ts:12
↓ 4 callersFunctionreadJson
Read and parse a JSON file relative to project root.
src/mcp/__tests__/manifests.test.ts:9
↓ 4 callersFunctionregisterGenerateFoundryPocTool
(server: McpServer)
src/mcp/tools/generate-foundry-poc.ts:265
↓ 4 callersFunctionregisterGetChecklistTool
(server: McpServer)
src/mcp/tools/get-checklist.ts:25
↓ 4 callersFunctionregisterRunAderynTool
(server: McpServer)
src/mcp/tools/run-aderyn.ts:24
↓ 4 callersFunctionregisterRunEchidnaTool
(server: McpServer)
src/mcp/tools/run-echidna.ts:192
↓ 4 callersFunctionregisterRunHalmosTool
(server: McpServer)
src/mcp/tools/run-halmos.ts:200
↓ 4 callersFunctionregisterRunMedusaTool
(server: McpServer)
src/mcp/tools/run-medusa.ts:193
↓ 4 callersFunctionregisterRunSlitherTool
(server: McpServer)
src/mcp/tools/run-slither.ts:24
↓ 4 callersFunctionregisterSearchFindingsTool
(server: McpServer)
src/mcp/tools/search-findings.ts:227
↓ 4 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing.
src/mcp/tools/__tests__/generate-foundry-poc.test.ts:32
↓ 4 callersFunctionsetupMcpTest
()
tests/integration/smoke.test.ts:52
↓ 4 callersFunctionvalidateIntegerRange
* Validates that an optional field, if present, is an integer within [min, max]. * Throws with a message containing the field name on any failure.
src/config/loader.ts:71
↓ 3 callersFunctionerrorResult
* Creates an error result for MCP responses.
src/mcp/tools/search-findings.ts:130
↓ 3 callersFunctionextractContractNames
* Extracts contract names from affected file paths. * * Strips directory and `.sol` extension to derive contract names.
src/mcp/tools/generate-foundry-poc.ts:76
↓ 3 callersFunctionflushAsync
Allow async shutdown handlers to flush.
src/mcp/__tests__/server.test.ts:7
↓ 3 callersFunctiongetCacheDir
* Gets the cache directory path. * * Uses os.homedir() which is cross-platform: * - Unix: reads $HOME * - Windows: reads USERPROFILE (or HOMEDRIVE
src/mcp/services/checklist.ts:173
↓ 3 callersFunctiongetCacheFilePath
* Gets the cache file path.
src/mcp/services/checklist.ts:181
↓ 3 callersFunctiongetCacheTimestampPath
* Gets the cache timestamp file path.
src/mcp/services/checklist.ts:188
↓ 3 callersFunctiongetCategories
(items: ChecklistItem[])
src/mcp/services/checklist.ts:160
↓ 3 callersFunctionlistMdFiles
List .md files in a directory (non-recursive).
scripts/build-agents.mjs:78
↓ 3 callersFunctionmockExecFileWithOptions
( handler: (args: string[], cb: ExecFileCallback) => void, )
src/mcp/tools/__tests__/exec-test-utils.ts:34
↓ 3 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing.
src/mcp/tools/__tests__/run-echidna.test.ts:24
↓ 3 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing.
src/mcp/tools/__tests__/run-medusa.test.ts:24
↓ 3 callersFunctionsetupMcpTest
* Creates and connects an MCP client/server pair for testing.
src/mcp/tools/__tests__/run-halmos.test.ts:24
↓ 3 callersFunctionvalidationError
* Creates a validation error with the standard error format.
src/mcp/services/checklist.ts:54
↓ 2 callersFunctioncleanupTempDir
(tempDir: string)
src/mcp/tools/executor-utils.ts:59
↓ 2 callersFunctioncollectFiles
Recursively collect all files under a directory.
scripts/__tests__/build-agents.test.ts:16
↓ 2 callersFunctioncopyVerbatim
Copy all .md files from src to dest verbatim.
scripts/build-agents.mjs:84
↓ 2 callersFunctioncreateSecureTempFile
(prefix: string)
src/mcp/tools/executor-utils.ts:50
↓ 2 callersFunctionerrorMessage
(err: unknown)
src/core/discovery.ts:31
↓ 2 callersFunctiongenerateImports
* Generates import statements for affected contracts.
src/mcp/tools/generate-foundry-poc.ts:86
↓ 2 callersFunctionisStringArray
* Type guard to check if a value is an array of strings.
src/mcp/services/checklist.ts:47
↓ 2 callersFunctionisToolAvailable
(tool: string)
tests/integration/smoke.test.ts:43
↓ 2 callersFunctionissueToFinding
* Converts an Aderyn issue to a Finding.
src/mcp/tools/aderyn-parser.ts:58
↓ 2 callersFunctionlineCount
Count lines in a string.
skills/security-auditor/__tests__/skill.test.ts:37
↓ 2 callersFunctionmakeTempDir
()
src/config/__tests__/loader.test.ts:7
↓ 2 callersFunctionnormalizeConfidence
( tool: "slither" | "aderyn", rawConfidence: string, )
src/mcp/tools/parser-utils.ts:67
↓ 2 callersFunctionnormalizeDetectorCategory
( detectorName: string, _tool: "slither" | "aderyn", )
src/mcp/tools/parser-utils.ts:60
↓ 2 callersFunctionreadCache
* Reads cached checklist data if available.
src/mcp/services/checklist.ts:212
↓ 2 callersFunctionreadText
Read a text file relative to project root.
src/mcp/__tests__/manifests.test.ts:15
↓ 2 callersFunctiontoRelativePosix
(repoRoot: string, absPath: string)
src/core/discovery.ts:46
↓ 2 callersFunctiontransformMd
Apply all text transformations to a markdown file.
scripts/build-agents.mjs:38
↓ 2 callersFunctionvalidateNonEmptyString
* Validates that an optional field, if present, is a non-empty string.
src/config/loader.ts:143
↓ 1 callersFunctionaddCodexPreamble
Add Codex orchestrator enforcement preamble to SKILL.md output (after frontmatter).
scripts/build-agents.mjs:60
next →1–100 of 162, ranked by callers