refactor(adk): modernize run-with-google-adk to ADK v2 package with CLI and FastAPI - #303
Open
dandye wants to merge 14 commits into
Open
refactor(adk): modernize run-with-google-adk to ADK v2 package with CLI and FastAPI#303dandye wants to merge 14 commits into
dandye wants to merge 14 commits into
Conversation
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
run-with-google-adk/into a standard PEP 621 Python package (mcp-security-agent/mcp_security_agent) powered by Google ADK v2.x.../../../...) with dynamic package/repo root resolution.MCPToolSetWithSchemaAccess) with native ADK multi-transport toolsets (build_mcp_toolsets) supporting Stdio subprocesses and remote SSE/HTTP URLs.AgentSettings) with validated environment and.envloading.mcp-security-agent chat).mcp-security-agent serve) with/healthz,/info, and/chatendpoints for Cloud Run.Changes Made
run-with-google-adk/pyproject.toml: Standard PEP 621 build configuration with CLI entry pointmcp-security-agent.run-with-google-adk/sample.env: Clean environment variables template.run-with-google-adk/Dockerfile: Multi-stage container usinguvfor fast dependency installation and execution.src/mcp_security_agent/):__init__.py: Package metadata and__version__ = "0.2.0".__main__.py: Executable module entry point.config.py: CentralizedAgentSettingsusing Pydantic Settings with boolean converters and credential fallbacks.toolsets.py: Native ADK MCP toolset builder for SecOps SIEM, SCC, GTI, and SecOps SOAR.callbacks.py: Request context trimming callbacks.agent.py:create_security_agentfactory and SOC system prompt.cli.py: Typer CLI withchat,serve, andinfosubcommands.server/app.py&server/routes.py: FastAPI server factory and endpoints.tests/test_package_init.pytests/test_config.pytests/test_toolsets.pytests/test_callbacks.pytests/test_agent.pytests/test_cli.pytests/test_server.pyTest Plan
run-with-google-adk/tests/./healthzand/inforoutes.