feat: add anthropic mcp endpoint (#5148)

* mcp WIP

* [autofix.ci] apply automated fixes

* logging and flow user check

* mcp stdio client component

* handle disconnect better

* initialization

* session fix and type fix

* [autofix.ci] apply automated fixes

* defensive against mcp server bugs

* [autofix.ci] apply automated fixes

* notifications and sse component

* enabled flags and resource support

* remove unneeded print

* extract json schema util

* [autofix.ci] apply automated fixes

* ruff

* fix tools [] bug and db asysnc session api change

* Tool instead of StructuredTool

* ruff fixes

* ruff

* validation optimization

* fix frontend test

* another playwright fix

* Update src/frontend/tests/extended/features/notifications.spec.ts

Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>

* mcp component descriptions

* mypy fixes

* fix setup_database_url test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
This commit is contained in:
Sebastián Estévez 2025-01-02 23:45:54 -05:00 • committed by GitHub
commit 63d649b0f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 1229 additions and 525 deletions

View file

@ -113,8 +113,10 @@ dependencies = [
"aiofile>=3.9.0,<4.0.0",
"sseclient-py==1.8.0",
"arize-phoenix-otel>=0.6.1",
"openinference-instrumentation-langchain==0.1.29",
"openinference-instrumentation-langchain>=0.1.29",
"crewai~=0.86.0",
"mcp>=0.9.1",
"uv>=0.5.7",
"ag2",
"pydantic-ai>=0.0.12",
]