You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/mcp-provider-code-analyzer/src/tools/sf-code-analyzer-run.ts
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -17,23 +17,7 @@ const DESCRIPTION: string = `A tool for performing static analysis against code.
17
17
`\n`+
18
18
`When to use this tool:\n`+
19
19
`- When the user asks you to generate files, use this tool to scan those files.\n`+
20
-
`- When the user asks you to check code for problems, use this tool to do that.\n`+
21
-
`\n`+
22
-
`Parameters explained:\n`+
23
-
`- target: An Array of absolute paths to files that should be scanned.\n`+
24
-
` * This list MUST include files, and CANNOT include directories or globs.\n`+
25
-
` * ALL files included in this array must actually exist on the user's machine.\n`+
26
-
` * The array MUST be non-empty.\n`+
27
-
` * The array can contain a MAXIMUM of ${MAX_ALLOWABLE_TARGET_COUNT} entries. If there are more than ten files to scan, the tool should be called multiple times.\n`+
28
-
`\n`+
29
-
`Output explained:\n`+
30
-
`- status: A string indicating whether the operation as a whole was successful.\n`+
31
-
` * In a successful run, this will be "success".\n`+
32
-
` * In a failed run, this will be an error message.\n`+
33
-
`- resultsFile: The absolute path to the results file. Read from this file to see what violations were found in the\n`+
34
-
` target files, so that either you or the user can fix them.\n`+
35
-
` * If the analysis finished successfully, this property will be present.\n`+
36
-
` * If the analysis failed, then this property will be absent.\n`;
20
+
`- When the user asks you to check code for problems, use this tool to do that.\n`;
37
21
38
22
constinputSchema=z.object({
39
23
target: z.array(z.string()).describe(`A JSON-formatted array of between 1 and ${MAX_ALLOWABLE_TARGET_COUNT} files on the users machine that should be scanned.`)
@@ -48,6 +32,7 @@ type OutputArgsShape = typeof outputSchema.shape;
0 commit comments