Repository navigation
Description
Company or project name
No response
Component
Python SDK
Use case
Langflow users can attach an MCP server, but a native component gives them typed inputs (namespace, user, query) and outputs without hand-written MCP config.
Describe the solution you'd like
A Langflow custom component in integrations/langflow/ (loom_component.py, README.md) that saves and searches Loom memory and searches knowledge documents through the Python SDK, with typed inputs for namespace, user and query.
Files to change
integrations/langflow/loom_component.pyandintegrations/langflow/README.md;tests/unit/test_langflow_component.py: pytest collects onlytests/(testpaths = ["tests"]inpyproject.toml) and no CI environment installslangflow, so the test loads the component file by path, puts stand-ins for the Langflow base class and input/output types it imports intosys.modules, and gives the SDK anhttpx.MockTransport(astests/unit/test_sdk_session_tools.pydoes).make test-unitthen runs it in CI with no Langflow server and no Loom server.tests/unit/test_librechat_integration.pyis the precedent for a unit test of a file underintegrations/;- a row in the "Supported integrations" table of
integrations/README.md, its Tests column naming the unit test; - a row in docs/features/integrations/frameworks.md that links the README.
Acceptance criteria. The unit test drives the component's run method for each action (save, search memory, search documents) and checks the request each sends and the output it returns; the README shows install from a path, a flow using it, and the output of a real run against a quickstart server with the Langflow version named; make format-check lint and .venv/bin/python -m pytest tests/unit/test_langflow_component.py -q pass, and so do the docs checks:
.venv/bin/python -m pytest tests/unit/test_doc_links.py tests/unit/test_public_copy.py -q
.venv/bin/python -m scripts.codegen.docs_reference --checkDescribe alternatives you've considered
Langflow's MCP support reaches Loom's tools, without typed inputs for namespace and user.
Where the need comes from
The need is mine, an AI tool helped shape the proposal
Additional context
Start after #696 merges, or rebase onto it: it edits docs/features/integrations/frameworks.md.
Size: M (a day or two). Read CONTRIBUTING.md first (signed-off commits), and comment here to say you are working on it.
Activity