google / google/adk-python

Support Grounding Metadata / Citation Propagation in in mcp_tool class

Abierto
#6,081 4 comentarios 0 reacciones 1 asignado Reclamado por @sanketpatil06 Ver en GitHub
mcp tools
Lenguaje dominante
Python
Estrellas
21.5k
Forks
4k
Merge medio
1 d 22 h
PR fusionados (30 d)
31

Descripción

** Please make sure you read the contribution guide and file the issues in the right place. **
[Contribution guide.](https://google.github.io/adk-docs/contributing-guide/)

### Is your feature request related to a specific problem?

I don't know how to propagate grounding_metadata / sources from an MCP tool response into the LlmResponse class.

### Describe the Solution You'd Like

It seems like the `propagate_grounding_metadata` feature of `agent_tool` would be a good way to achieve this in `mcp_tool`: https://github.com/google/adk-python/blob/7e8965d33182f43433a3ab5596e625a3cb824f62/src/google/adk/tools/agent_tool.py#L129

### Impact on your work

When I register an ADK agent in Gemini Enterprise, that uses `mcp_tool`, the sources from the MCP server are stripped out when the LlmResponse is built and sent back to the GE UI.

### Willingness to contribute

No

---

## 🟡 Recommended Information

### Describe Alternatives You've Considered

Something like this: https://github.com/google/adk-python/issues/1693#issuecomment-3690142647

### Proposed API / Implementation

It seems like the `propagate_grounding_metadata` feature of `agent_tool` would be a good way to achieve this in `mcp_tool`: https://github.com/google/adk-python/blob/7e8965d33182f43433a3ab5596e625a3cb824f62/src/google/adk/tools/agent_tool.py#L129

### Additional Context

N/A

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.