fix: support mcp env vars and nested inputs (#7772)

* env vars for mcp

* support nested mcp schemas

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* [autofix.ci] apply automated fixes

* Update mcp_component.py

* Update mcp_component.py

* fix lint and mypy

* fix tests

---------

Co-authored-by: Edwin Jose <edwin.jose@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Sebastián Estévez 2025-04-24 00:40:16 -04:00 • committed by GitHub
commit c161a2e68d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 426 additions and 125 deletions

View file

@ -82,6 +82,8 @@ class TestMCPToolsComponent(ComponentTestBaseWithoutClient):
"sse_url": {"show": True, "value": "http://localhost:7860/api/v1/mcp/sse"},
"tool": {"options": [], "show": True},
"mode": {"value": "Stdio"},
"env": {"show": True, "value": []},
"headers_input": {"show": False, "value": []},
}
# Test switching to Stdio mode