Add GEPA optimization for MCP Tools#270
Draft
dandye wants to merge 1 commit into
Draft
Conversation
Integrate Pareto-optimized tool definitions and relationship constraints under genetic-pareto framework Update copyright headers to 2026 for touched files optimize(soar-mcp): integrate gepa library optimization suite and refine credentials flow test(soar-mcp): add live connection verification script test(soar-mcp): expand integration tests with live endpoints and parameterized runs docs, refactor: integrate GEPA optimization with Vertex AI Model Garden, clean up submodules and hardcoded paths
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.
Integrate GEPA Optimization and Refactor MCP Tool Routing
References
This pull request integrates GEPA (Gradient-based Engine for Prompt Ad-hoc Optimization) to automate the optimization of MCP tool docstrings and descriptions, improving model-routing accuracy across Google Threat Intelligence (GTI), SecOps SIEM, and SecOps SOAR MCP servers.
Key Changes
1. GEPA Optimization & Tool Routing
optimize_gti_mcp.py,optimize_soar_mcp.py, andoptimize_secops_mcp.py) that evaluate routing accuracy and iterate on docstring formulations using Vertex AI models.mcp_dataset.jsonfor each server package to test tool resolution, parameter extraction, and baseline routing.2. Google SecOps SOAR Improvements
test_live_soar.pyto facilitate local verification of SOAR API bindings.conftest.pyto support automatic.envloading, and added new dynamic tests for retrieving alert events and entities.3. Setup & Configuration
.env.exampletemplate containing required configuration variables for local server execution and GEPA optimization..gitmodulesand ensured local.envremains properly ignored.