Skip to content

Commit 399091f

Browse files
mendonkKoren Lazar
authored andcommitted
docs: add partials for npx requirements and podman (langflow-ai#10453)
* add-partial-for-mcp-note * use-podman-option * reword
1 parent 58f9ff9 commit 399091f

6 files changed

Lines changed: 24 additions & 5 deletions

File tree

docs/docs/Agents/mcp-client.mdx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ slug: /mcp-client
55

66
import Icon from "@site/src/components/icon";
77
import McpIcon from '@site/static/logos/mcp-icon.svg';
8+
import PartialMcpNodeTip from '@site/docs/_partial-mcp-node-tip.mdx';
89

910
Langflow integrates with the [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) as both an MCP server and an MCP client.
1011

@@ -35,11 +36,8 @@ This component has two modes, depending on the type of server you want to access
3536
* **SSE**: Enter your Langflow MCP server's **Name**, **SSE URL**, and any **Headers** and **Environment Variables** the server uses, and then click **Add Server**.
3637
The default **SSE URL** is `http://localhost:7860/api/v1/mcp/sse`. For more information, see [Use SSE mode](#mcp-sse-mode).
3738

38-
:::tip
39-
`uvx` is included with `uv` in the Langflow package.
40-
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).
41-
For an example of an `npx` MCP server in Langflow, see [Connect an Astra DB MCP server to Langflow](/mcp-component-astra).
42-
:::
39+
<PartialMcpNodeTip />
40+
4341

4442
3. To use environment variables in your server command, enter each variable in the **Env** fields as key-value pairs.
4543

docs/docs/Agents/mcp-component-astra.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ slug: /mcp-component-astra
44
---
55

66
import Icon from "@site/src/components/icon";
7+
import PartialMcpNodeTip from '@site/docs/_partial-mcp-node-tip.mdx';
78

89
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.
910

1011
1. Install an LTS release of [Node.js](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
1112

13+
<PartialMcpNodeTip />
14+
1215
2. Create an [OpenAI](https://platform.openai.com/) API key.
1316

1417
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.

docs/docs/Deployment/deployment-docker.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ title: Deploy Langflow on Docker
33
slug: /deployment-docker
44
---
55

6+
import PartialPodmanAlt from '@site/docs/_partial-podman-alt.mdx';
7+
8+
<PartialPodmanAlt />
9+
610
Running applications in Docker containers ensures consistent behavior across different systems and eliminates dependency conflicts.
711

812
You can use the Langflow Docker image to start a Langflow container.

docs/docs/Deployment/develop-application.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ slug: /develop-application
44
---
55

66
import Icon from "@site/src/components/icon";
7+
import PartialPodmanAlt from '@site/docs/_partial-podman-alt.mdx';
8+
9+
<PartialPodmanAlt />
710

811
Designing flows in the visual editor is only the first step in building an application that uses Langflow.
912

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
:::tip
2+
`uvx` is included with `uv` in the Langflow package.
3+
4+
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).
5+
6+
For an example of an `npx` MCP server in Langflow, see [Connect an Astra DB MCP server to Langflow](/mcp-component-astra).
7+
:::
8+

docs/docs/_partial-podman-alt.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:::tip
2+
Podman can be used instead of Docker for all commands shown here. For more information, see the [Podman documentation](https://podman.io/docs).
3+
:::

0 commit comments

Comments
 (0)