Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions server/scc/scc_mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

from google.api_core import exceptions as google_exceptions
from google.cloud import asset_v1
from google.cloud import securitycenter
from google.cloud import securitycenter_v2
from google.protobuf import json_format
from mcp.server.fastmcp import FastMCP

Expand All @@ -41,7 +41,7 @@
# Ensure ADC are configured in the environment where the server runs
# (e.g., by running `gcloud auth application-default login`).
try:
scc_client = securitycenter.SecurityCenterClient()
scc_client = securitycenter_v2.SecurityCenterClient()
logger.info("Successfully initialized Google Cloud Security Center Client.")
except Exception as e:
logger.error(f"Failed to initialize Security Center Client: {e}", exc_info=True)
Expand Down