Skip to content

Commit 2cf8b49

Browse files
Copilotdata-douser
andauthored
Document and test sarif_list_rules per-rule resultCount field (#219)
* Initial plan * Enhance sarif_list_rules tests for per-rule resultCount coverage - Add second sql-injection result to test fixture for varied counts - Verify resultCount for all rules (not just the first) - Add test for rules with zero results (resultCount: 0) - Update related test assertions for the enriched fixture Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/7ea1caeb-de6d-40cd-b045-3dd634602403 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> * Extract zero-results SARIF fixture into helper function Address code review feedback: extract inline SARIF object into createZeroResultsSarif() helper for consistency with existing patterns. Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/7ea1caeb-de6d-40cd-b045-3dd634602403 Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> * Add sarif_list_rules response format documentation to server-tools.md Document the per-rule resultCount field and complete response schema in the MCP resource file served to LLMs at runtime. Includes JSON example, top-level field descriptions, and per-rule field reference with types and required/optional markers. Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/c1d03a5c-2041-41bb-a120-365ddf420c5b Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> * Polish resultCount description in server-tools.md response table Agent-Logs-Url: https://github.com/advanced-security/codeql-development-mcp-server/sessions/c1d03a5c-2041-41bb-a120-365ddf420c5b Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> * Sync package-lock.json & server/dist/** --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: data-douser <70299490+data-douser@users.noreply.github.com> Co-authored-by: Nathan Randall <data-douser@github.com>
1 parent a7b37c5 commit 2cf8b49

File tree

5 files changed

+90
-18
lines changed

5 files changed

+90
-18
lines changed

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)