mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 21:21:20 +08:00
docs: add partials for npx requirements and podman (#10453)
* add-partial-for-mcp-note * use-podman-option * reword
This commit is contained in:
@ -5,6 +5,7 @@ slug: /mcp-client
|
||||
|
||||
import Icon from "@site/src/components/icon";
|
||||
import McpIcon from '@site/static/logos/mcp-icon.svg';
|
||||
import PartialMcpNodeTip from '@site/docs/_partial-mcp-node-tip.mdx';
|
||||
|
||||
Langflow integrates with the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) as both an MCP server and an MCP client.
|
||||
|
||||
@ -35,11 +36,8 @@ This component has two modes, depending on the type of server you want to access
|
||||
* **SSE**: Enter your Langflow MCP server's **Name**, **SSE URL**, and any **Headers** and **Environment Variables** the server uses, and then click **Add Server**.
|
||||
The default **SSE URL** is `http://localhost:7860/api/v1/mcp/sse`. For more information, see [Use SSE mode](#mcp-sse-mode).
|
||||
|
||||
:::tip
|
||||
`uvx` is included with `uv` in the Langflow package.
|
||||
To use `npx` server commands, you must first install an LTS release of [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
|
||||
For an example of an `npx` MCP server in Langflow, see [Connect an Astra DB MCP server to Langflow](/mcp-component-astra).
|
||||
:::
|
||||
<PartialMcpNodeTip />
|
||||
|
||||
|
||||
3. To use environment variables in your server command, enter each variable in the **Env** fields as key-value pairs.
|
||||
|
||||
|
||||
@ -4,11 +4,14 @@ slug: /mcp-component-astra
|
||||
---
|
||||
|
||||
import Icon from "@site/src/components/icon";
|
||||
import PartialMcpNodeTip from '@site/docs/_partial-mcp-node-tip.mdx';
|
||||
|
||||
This guide demonstrates how to [use Langflow as an MCP client](/mcp-client) by using the **MCP Tools** component to run a [DataStax Astra DB MCP server](https://github.com/datastax/astra-db-mcp) in an agent flow.
|
||||
|
||||
1. Install an LTS release of [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
|
||||
|
||||
<PartialMcpNodeTip />
|
||||
|
||||
2. Create an [OpenAI](https://platform.openai.com/) API key.
|
||||
|
||||
3. Create an [Astra DB Serverless (Vector) database](https://docs.datastax.com/en/astra-db-serverless/databases/create-database.html#create-vector-database), if you don't already have one.
|
||||
|
||||
@ -3,6 +3,10 @@ title: Deploy Langflow on Docker
|
||||
slug: /deployment-docker
|
||||
---
|
||||
|
||||
import PartialPodmanAlt from '@site/docs/_partial-podman-alt.mdx';
|
||||
|
||||
<PartialPodmanAlt />
|
||||
|
||||
Running applications in Docker containers ensures consistent behavior across different systems and eliminates dependency conflicts.
|
||||
|
||||
You can use the Langflow Docker image to start a Langflow container.
|
||||
|
||||
@ -4,6 +4,9 @@ slug: /develop-application
|
||||
---
|
||||
|
||||
import Icon from "@site/src/components/icon";
|
||||
import PartialPodmanAlt from '@site/docs/_partial-podman-alt.mdx';
|
||||
|
||||
<PartialPodmanAlt />
|
||||
|
||||
Designing flows in the visual editor is only the first step in building an application that uses Langflow.
|
||||
|
||||
|
||||
8
docs/docs/_partial-mcp-node-tip.mdx
Normal file
8
docs/docs/_partial-mcp-node-tip.mdx
Normal file
@ -0,0 +1,8 @@
|
||||
:::tip
|
||||
`uvx` is included with `uv` in the Langflow package.
|
||||
|
||||
To use `npx` server commands, you must first install an LTS release of [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). If you run Langflow in Docker, install Node.js inside the container image and rebuild so that `npx`-based MCP servers are available at runtime. For more information, see [Package management](/develop-application#package-management).
|
||||
|
||||
For an example of an `npx` MCP server in Langflow, see [Connect an Astra DB MCP server to Langflow](/mcp-component-astra).
|
||||
:::
|
||||
|
||||
3
docs/docs/_partial-podman-alt.mdx
Normal file
3
docs/docs/_partial-podman-alt.mdx
Normal file
@ -0,0 +1,3 @@
|
||||
:::tip
|
||||
Podman can be used instead of Docker for all commands shown here. For more information, see the [Podman documentation](https://podman.io/docs).
|
||||
:::
|
||||
Reference in New Issue
Block a user