Skip to content

Commit

Permalink
docs: MCP components (langflow-ai#5988)
Browse files Browse the repository at this point in the history
* docs: add MCP Tools documentation for stdio and SSE connections

* docs: Update MCP server documentation links for clarity

* cleanup-links

* backtick

* an
  • Loading branch information
mendonk authored Jan 29, 2025
1 parent c7584d8 commit 75a7520
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/docs/Components/components-tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,39 @@ This component allows you to call the Serper.dev Google Search API.
| results | List[Data]| List of search results |
| tool | Tool | Google Serper search tool for use in LangChain|

## MCP Tools (stdio)

This component connects to a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server over `stdio` and exposes its tools as Langflow tools to be used by an Agent component.

### Inputs

| Name | Type | Description |
|---------|--------|--------------------------------------------|
| command | String | MCP command (default: `uvx mcp-sse-shim@latest`) |

### Outputs

| Name | Type | Description |
|-------|-----------|-------------------------------------------|
| tools | List[Tool]| List of tools exposed by the MCP server |

## MCP Tools (SSE)

This component connects to a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/introduction) server over [SSE (Server-Sent Events)](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events) and exposes its tools as Langflow tools to be used by an Agent component.

### Inputs

| Name | Type | Description |
|------|--------|------------------------------------------------------|
| url | String | SSE URL (default: `http://localhost:7860/api/v1/mcp/sse`) |

### Outputs

| Name | Type | Description |
|-------|-----------|-------------------------------------------|
| tools | List[Tool]| List of tools exposed by the MCP server |


## Python Code Structured Tool

This component creates a structured tool from Python code using a dataclass.
Expand Down Expand Up @@ -372,3 +405,5 @@ This component does not have any input parameters.
| Name | Type | Description |
|------|------|----------------------------------------------|
| tool | Tool | Yahoo Finance News tool for use in LangChain |


0 comments on commit 75a7520

Please sign in to comment.