An open API service indexing awesome lists of open source software.

https://github.com/hjlarry/dify-plugin-mcp_server


https://github.com/hjlarry/dify-plugin-mcp_server

Last synced: 9 days ago
JSON representation

Awesome Lists containing this project

README

        

# MCP Server

**Author:** hjlarry
**Version:** 0.0.3
**Type:** extension
**Repo:** [https://github.com/hjlarry/dify-plugin-mcp_server](https://github.com/hjlarry/dify-plugin-mcp_server)
**Feature Request:** [issues](https://github.com/hjlarry/dify-plugin-mcp_server/issues)

A Dify endpoint plugin that change a dify app to a mcp server.

**To keep your data secure, use this plugin exclusively within your private network.**

## Get Started

### 1. create a simple workflow app in dify.
![1](./_assets/1.png)

### 2. add a endpoint and select this app.
![2](./_assets/2.png)

The app's input schema must define its input parameters. For a chat dify app, ensure to include a `query` field in the input schema, formatted as follows:
```json
{
"name": "get_weather",
"description": "Get weather status for a place.",
"inputSchema": {
"properties": {
"place": {"title": "Place", "type": "string"}
},
"required": ["place"],
"title": "get_weatherArguments",
"type": "object"
}
}
```

### 3. copy the endpoint url to your mcp client, like `Cherry Studio`

#### Option 1: Use the newest Streamable HTTP protocol (Recommended)
![6](./_assets/6.png)
![7](./_assets/7.png)

#### Option 2: Use the legacy SSE protocol
![3](./_assets/3.png)
![4](./_assets/4.png)

### 4. enjoy it!
![5](./_assets/5.png)

## Changelog

### 0.0.3
- To fix sse get non-exist key get lots error logs on the plugin daemon.

### 0.0.2
- Add a new Streamable HTTP protocol.
- Update dify-plugin-sdk version.