mseep-dify-mcp-server 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,16 @@
1
+ Metadata-Version: 2.4
2
+ Name: mseep-dify-mcp-server
3
+ Version: 0.1.3
4
+ Summary: Add your description here
5
+ Author-email: mseep <support@skydeck.ai>
6
+ Maintainer-email: mseep <support@skydeck.ai>
7
+ Requires-Python: >=3.10
8
+ Requires-Dist: httpx>=0.28.1
9
+ Requires-Dist: mcp>=1.1.2
10
+ Requires-Dist: omegaconf>=2.3.0
11
+ Requires-Dist: pip>=24.3.1
12
+ Requires-Dist: python-dotenv>=1.0.1
13
+ Requires-Dist: requests
14
+ Description-Content-Type: text/markdown
15
+
16
+ # Package managed by MseeP.ai
@@ -0,0 +1,6 @@
1
+ dify_mcp_server/__init__.py,sha256=kTuRDcmoAa4al59WMbwXx_TjJhMqmpzCMFCZ981BL1M,213
2
+ dify_mcp_server/server.py,sha256=pTdMPTmvK1uO6Ki062bVSp-VQ9cBbFO2WtMSfowGgzU,8966
3
+ mseep_dify_mcp_server-0.1.3.dist-info/METADATA,sha256=mGZ2wE7Neze3UthGzTUs_ffYJ4we4NzUPhGD1ntBHBY,455
4
+ mseep_dify_mcp_server-0.1.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
+ mseep_dify_mcp_server-0.1.3.dist-info/entry_points.txt,sha256=YughlZESvmM9v4WMtY4GAUzFWY-udx_CBKQUa3WXxeU,57
6
+ mseep_dify_mcp_server-0.1.3.dist-info/RECORD,,
@@ -1,172 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mseep-dify-mcp-server
3
- Version: 0.1.2
4
- Summary: Add your description here
5
- Author-email: mseep <support@skydeck.ai>
6
- Maintainer-email: mseep <support@skydeck.ai>
7
- Requires-Python: >=3.10
8
- Requires-Dist: httpx>=0.28.1
9
- Requires-Dist: mcp>=1.1.2
10
- Requires-Dist: omegaconf>=2.3.0
11
- Requires-Dist: pip>=24.3.1
12
- Requires-Dist: python-dotenv>=1.0.1
13
- Requires-Dist: requests
14
- Description-Content-Type: text/markdown
15
-
16
- # Model Context Protocol (MCP) Server for dify workflows
17
- A simple implementation of an MCP server for using [dify](https://github.com/langgenius/dify). It achieves the invocation of the Dify workflow by calling the tools of MCP.
18
- ## 📰 News
19
- * [2025/4/15] zNow supports directly using environment variables to pass `base_url` and `app_sks`, making it more convenient to use with cloud-hosted platforms.
20
-
21
-
22
- ## 🔨Installation
23
- The server can be installed via [Smithery](https://smithery.ai/server/dify-mcp-server) or manually.
24
-
25
- ### Step1: prepare config.yaml or enviroments
26
- You can configure the server using either environment variables or a `config.yaml` file.
27
-
28
- #### Method 1: Using Environment Variables (Recommended for Cloud Platforms)
29
-
30
- Set the following environment variables:
31
-
32
- ```shell
33
- export DIFY_BASE_URL="https://cloud.dify.ai/v1"
34
- export DIFY_APP_SKS="app-sk1,app-sk2" # Comma-separated list of your Dify App SKs
35
- ```
36
-
37
- * `DIFY_BASE_URL`: The base URL for your Dify API.
38
- * `DIFY_APP_SKS`: A comma-separated list of your Dify App Secret Keys (SKs). Each SK typically corresponds to a different Dify workflow you want to make available via MCP.
39
-
40
- #### Method 2: Using `config.yaml`
41
-
42
- Create a `config.yaml` file to store your Dify base URL and App SKs.
43
-
44
- Example `config.yaml`:
45
-
46
- ```yaml
47
- dify_base_url: "https://cloud.dify.ai/v1"
48
- dify_app_sks:
49
- - "app-sk1" # SK for workflow 1
50
- - "app-sk2" # SK for workflow 2
51
- # Add more SKs as needed
52
- ```
53
-
54
- * `dify_base_url`: The base URL for your Dify API.
55
- * `dify_app_sks`: A list of your Dify App Secret Keys (SKs). Each SK typically corresponds to a different Dify workflow.
56
-
57
- You can create this file quickly using the following command (adjust the path and values as needed):
58
-
59
- ```bash
60
- # Create a directory if it doesn't exist
61
- mkdir -p ~/.config/dify-mcp-server
62
-
63
- # Create the config file
64
- cat > ~/.config/dify-mcp-server/config.yaml <<EOF
65
- dify_base_url: "https://cloud.dify.ai/v1"
66
- dify_app_sks:
67
- - "app-your-sk-1"
68
- - "app-your-sk-2"
69
- EOF
70
-
71
- echo "Configuration file created at ~/.config/dify-mcp-server/config.yaml"
72
- ```
73
-
74
- When running the server (as shown in Step 2), you will need to provide the path to this `config.yaml` file via the `CONFIG_PATH` environment variable if you choose this method.
75
-
76
- ### Step2: Installation on your client
77
- ❓ If you haven't installed uv or uvx yet, you can do it quickly with the following command:
78
- ```
79
- curl -Ls https://astral.sh/uv/install.sh | sh
80
- ```
81
-
82
- #### ✅ Method 1: Use uvx (no need to clone code, recommended)
83
-
84
- ```json
85
- {
86
- "mcpServers": {
87
- "dify-mcp-server": {
88
- "command": "uvx",
89
- "args": [
90
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
91
- ],
92
- "env": {
93
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
94
- "DIFY_APP_SKS": "app-sk1,app-sk2",
95
- }
96
- }
97
- }
98
- }
99
- ```
100
- or
101
- ```json
102
- {
103
- "mcpServers": {
104
- "dify-mcp-server": {
105
- "command": "uvx",
106
- "args": [
107
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
108
- ],
109
- "env": {
110
- "CONFIG_PATH": "/Users/lyx/Downloads/config.yaml"
111
- }
112
- }
113
- }
114
- }
115
- ```
116
-
117
- #### ✅ Method 2: Use uv (local clone + uv start)
118
-
119
- You can also run the dify mcp server manually in your clients. The config of client should like the following format:
120
- ```json
121
- {
122
- "mcpServers": {
123
- "mcp-server-rag-web-browser": {
124
- "command": "uv",
125
- "args": [
126
- "--directory", "${DIFY_MCP_SERVER_PATH}",
127
- "run", "dify_mcp_server"
128
- ],
129
- "env": {
130
- "CONFIG_PATH": "$CONFIG_PATH"
131
- }
132
- }
133
- }
134
- }
135
- ```
136
- or
137
- ```json
138
- {
139
- "mcpServers": {
140
- "mcp-server-rag-web-browser": {
141
- "command": "uv",
142
- "args": [
143
- "--directory", "${DIFY_MCP_SERVER_PATH}",
144
- "run", "dify_mcp_server"
145
- ],
146
- "env": {
147
- "CONFIG_PATH": "$CONFIG_PATH"
148
- }
149
- }
150
- }
151
- }
152
- ```
153
- Example config:
154
- ```json
155
- {
156
- "mcpServers": {
157
- "dify-mcp-server": {
158
- "command": "uv",
159
- "args": [
160
- "--directory", "/Users/lyx/Downloads/dify-mcp-server",
161
- "run", "dify_mcp_server"
162
- ],
163
- "env": {
164
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
165
- "DIFY_APP_SKS": "app-sk1,app-sk2",
166
- }
167
- }
168
- }
169
- }
170
- ```
171
- ### Enjoy it
172
- At last, you can use dify tools in any client who supports mcp.
@@ -1,6 +0,0 @@
1
- dify_mcp_server/__init__.py,sha256=kTuRDcmoAa4al59WMbwXx_TjJhMqmpzCMFCZ981BL1M,213
2
- dify_mcp_server/server.py,sha256=pTdMPTmvK1uO6Ki062bVSp-VQ9cBbFO2WtMSfowGgzU,8966
3
- mseep_dify_mcp_server-0.1.2.dist-info/METADATA,sha256=CpMacgzk8A6wfMzVcdKC7APEibnMC9UrbS0yNvOY7Bo,4605
4
- mseep_dify_mcp_server-0.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
5
- mseep_dify_mcp_server-0.1.2.dist-info/entry_points.txt,sha256=YughlZESvmM9v4WMtY4GAUzFWY-udx_CBKQUa3WXxeU,57
6
- mseep_dify_mcp_server-0.1.2.dist-info/RECORD,,