chore(scc): bump version to 0.2.0, fix SetMuteRequest, and add unit test suite - #300
Open
dandye wants to merge 1 commit into
Open
chore(scc): bump version to 0.2.0, fix SetMuteRequest, and add unit test suite#300dandye wants to merge 1 commit into
dandye wants to merge 1 commit into
Conversation
…est suite - Bump scc-mcp package version to 0.2.0 in pyproject.toml and setup.py - Fix SetMuteRequest class reference in set_finding_mute tool - Add comprehensive hermetic unit test suite (server/scc/tests/test_scc_unit.py) covering all 6 FastMCP tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bumps
scc-mcpto v0.2.0 to release the Security Command Center API v2 upgrade, organization-level findings support, new MCP tools, and unit testing suite.What's Changed
1. SCC API v2 Migration (#274, #167)
google.cloud.securitycentertogoogle.cloud.securitycenter_v2.location: str = "global"parameter to all tools, constructing canonical v2 parent and finding resource paths (/locations/{location}).finding.attackExposure.score).2. Organization-Level Findings Support (#249, #248, #274)
organization_id: str = Nonealongsideproject_id: str = Noneacross all 6 FastMCP tools and_build_parent.organizations/{org_id}/sources/-/locations/{location}) and scopes Cloud Asset Inventory (CAI) searches toorganizations/{org_id}.3. 4 New FastMCP Tools (#274)
search_findings: Universal finding search supporting all 9 finding classes (VULNERABILITY,THREAT,MISCONFIGURATION,OBSERVATION,SCC_ERROR,POSTURE_VIOLATION,TOXIC_COMBINATION,SENSITIVE_DATA_RISK,CHOKEPOINT), severities, categories, and mute states.get_finding_details: Comprehensive finding metadata lookup including MITRE ATT&CK tactics/techniques, CVEs, compliance benchmarks, and optional Cloud Asset Inventory (CAI) enrichment.search_findings_by_compliance: Search findings by compliance frameworks (CIS GCP Benchmarks, PCI-DSS, NIST 800-53, ISO 27001) or free-text search across descriptions and categories.set_finding_mute: Mute or unmute findings (MUTED/UNMUTED) with canonical name resolution.4. Bug Fixes and Improvements
top_vulnerability_findingsover-fetches a larger candidate pool (up to 1,000) so sorting by attack exposure score is accurate across the full population rather than just the first 20 records.top_vulnerability_findingsreturnsnextStepsinline._build_or_filterto usere.split(r'\s+or\s+|,', ...)supporting lowercase, mixed-case, and comma-separated filter clauses.set_finding_mute.NotFounderrors dynamically based on whether querying by project or organization.5. Unit Test Suite
server/scc/tests/test_scc_unit.pywith 10 unit tests covering_build_parent,_build_or_filter,search_findings,get_finding_details,search_findings_by_compliance,top_vulnerability_findings,get_finding_remediation, andset_finding_mute.Verification
pytest server/scc/tests/test_scc_unit.py(10 passed in 1.30s)