Google Cloud
This guide covers deploying the Falcon MCP Server with the prebuilt Google ADK-based agent to Cloud Run or Vertex AI Agent Engine.
Prerequisites
Section titled “Prerequisites”- Python 3.11+,
gcloudCLI, andgitinstalled - Google Cloud project with billing enabled
- CrowdStrike API credentials
GOOGLE_API_KEYfrom Google AI Studio
Running Locally (5 minutes)
Section titled “Running Locally (5 minutes)”Clone the repository:
git clone https://github.com/CrowdStrike/falcon-mcp.gitcd falcon-mcp/examples/adkCreate Python environment and install dependencies:
python3 -m venv .venv. .venv/bin/activatepip install -r falcon_agent/requirements.txtuv venv. .venv/bin/activateuv pip install -r falcon_agent/requirements.txtInitialize config:
chmod +x adk_agent_operations.sh./adk_agent_operations.shThe script creates a .env file in falcon_agent/. Update at minimum the General Agent Configuration section with your CrowdStrike credentials and Google API key.
# Run locally./adk_agent_operations.sh local_runAccess the agent at http://localhost:8000.
Deploying to Cloud Run
Section titled “Deploying to Cloud Run”Make sure the required APIs are enabled on your GCP project.
cd examples/adk/./adk_agent_operations.sh cloudrun_deployWhen prompted Allow unauthenticated invocations?, answer N to keep IAM authentication enabled.
Once deployed, grant access to your team:
- Cloud Run > Services >
falcon-agent-service> Permissions - Add Principal > assign
Cloud Run Invokerrole
Your team members can then access the service via:
gcloud run services proxy falcon-agent-service --project PROJECT-ID --region YOUR-REGIONThe service is then available at http://localhost:8080.
Deploying to Vertex AI Agent Engine
Section titled “Deploying to Vertex AI Agent Engine”Create a GCS bucket for staging artifacts, then:
cd examples/adk/./adk_agent_operations.sh agent_engine_deployNote the Agent Engine Number from the output (reasoningEngines/XXXXXX).
Registering with Agentspace
Section titled “Registering with Agentspace”Update the # Agentspace Specific environment variables (PROJECT_NUMBER, AGENT_LOCATION, REASONING_ENGINE_NUMBER, AGENT_SPACE_APP_NAME), then:
./adk_agent_operations.sh agentspace_registerFQL Guide Resources
Section titled “FQL Guide Resources”The agent is configured with use_mcp_resources=True, enabling ADK’s MCP resource support. The Falcon MCP Server exposes FQL guide resources (e.g., falcon://detections/search/fql-guide) that the agent fetches on demand via the auto-discovered load_mcp_resource tool, providing accurate Falcon query construction without embedding all FQL documentation in the system prompt.
Performance Optimization
Section titled “Performance Optimization”Control MAX_PREV_USER_INTERACTIONS in your .env to limit conversation history sent to the LLM (recommended: 5). This reduces costs while maintaining useful context.