mseep-dify-mcp-server 0.1.1__tar.gz → 0.1.3__tar.gz

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 @@
1
+ # Package managed by MseeP.ai
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "mseep-dify-mcp-server"
3
- version = "0.1.1"
3
+ version = "0.1.3"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
@@ -12,6 +12,12 @@ dependencies = [
12
12
  "python-dotenv>=1.0.1",
13
13
  "requests",
14
14
  ]
15
+ authors = [
16
+ { name = "mseep", email = "support@skydeck.ai" },
17
+ ]
18
+ maintainers = [
19
+ { name = "mseep", email = "support@skydeck.ai" },
20
+ ]
15
21
 
16
22
  [project.scripts]
17
23
  dify_mcp_server = "dify_mcp_server:main"
@@ -24,5 +30,5 @@ build-backend = "hatchling.build"
24
30
 
25
31
  [tool.hatch.build.targets.wheel]
26
32
  packages = [
27
- "src",
33
+ "src/dify_mcp_server",
28
34
  ]
@@ -1,170 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: mseep-dify-mcp-server
3
- Version: 0.1.1
4
- Summary: Add your description here
5
- Requires-Python: >=3.10
6
- Requires-Dist: httpx>=0.28.1
7
- Requires-Dist: mcp>=1.1.2
8
- Requires-Dist: omegaconf>=2.3.0
9
- Requires-Dist: pip>=24.3.1
10
- Requires-Dist: python-dotenv>=1.0.1
11
- Requires-Dist: requests
12
- Description-Content-Type: text/markdown
13
-
14
- # Model Context Protocol (MCP) Server for dify workflows
15
- 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.
16
- ## 📰 News
17
- * [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.
18
-
19
-
20
- ## 🔨Installation
21
- The server can be installed via [Smithery](https://smithery.ai/server/dify-mcp-server) or manually.
22
-
23
- ### Step1: prepare config.yaml or enviroments
24
- You can configure the server using either environment variables or a `config.yaml` file.
25
-
26
- #### Method 1: Using Environment Variables (Recommended for Cloud Platforms)
27
-
28
- Set the following environment variables:
29
-
30
- ```shell
31
- export DIFY_BASE_URL="https://cloud.dify.ai/v1"
32
- export DIFY_APP_SKS="app-sk1,app-sk2" # Comma-separated list of your Dify App SKs
33
- ```
34
-
35
- * `DIFY_BASE_URL`: The base URL for your Dify API.
36
- * `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.
37
-
38
- #### Method 2: Using `config.yaml`
39
-
40
- Create a `config.yaml` file to store your Dify base URL and App SKs.
41
-
42
- Example `config.yaml`:
43
-
44
- ```yaml
45
- dify_base_url: "https://cloud.dify.ai/v1"
46
- dify_app_sks:
47
- - "app-sk1" # SK for workflow 1
48
- - "app-sk2" # SK for workflow 2
49
- # Add more SKs as needed
50
- ```
51
-
52
- * `dify_base_url`: The base URL for your Dify API.
53
- * `dify_app_sks`: A list of your Dify App Secret Keys (SKs). Each SK typically corresponds to a different Dify workflow.
54
-
55
- You can create this file quickly using the following command (adjust the path and values as needed):
56
-
57
- ```bash
58
- # Create a directory if it doesn't exist
59
- mkdir -p ~/.config/dify-mcp-server
60
-
61
- # Create the config file
62
- cat > ~/.config/dify-mcp-server/config.yaml <<EOF
63
- dify_base_url: "https://cloud.dify.ai/v1"
64
- dify_app_sks:
65
- - "app-your-sk-1"
66
- - "app-your-sk-2"
67
- EOF
68
-
69
- echo "Configuration file created at ~/.config/dify-mcp-server/config.yaml"
70
- ```
71
-
72
- 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.
73
-
74
- ### Step2: Installation on your client
75
- ❓ If you haven't installed uv or uvx yet, you can do it quickly with the following command:
76
- ```
77
- curl -Ls https://astral.sh/uv/install.sh | sh
78
- ```
79
-
80
- #### ✅ Method 1: Use uvx (no need to clone code, recommended)
81
-
82
- ```json
83
- {
84
- "mcpServers": {
85
- "dify-mcp-server": {
86
- "command": "uvx",
87
- "args": [
88
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
89
- ],
90
- "env": {
91
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
92
- "DIFY_APP_SKS": "app-sk1,app-sk2",
93
- }
94
- }
95
- }
96
- }
97
- ```
98
- or
99
- ```json
100
- {
101
- "mcpServers": {
102
- "dify-mcp-server": {
103
- "command": "uvx",
104
- "args": [
105
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
106
- ],
107
- "env": {
108
- "CONFIG_PATH": "/Users/lyx/Downloads/config.yaml"
109
- }
110
- }
111
- }
112
- }
113
- ```
114
-
115
- #### ✅ Method 2: Use uv (local clone + uv start)
116
-
117
- You can also run the dify mcp server manually in your clients. The config of client should like the following format:
118
- ```json
119
- {
120
- "mcpServers": {
121
- "mcp-server-rag-web-browser": {
122
- "command": "uv",
123
- "args": [
124
- "--directory", "${DIFY_MCP_SERVER_PATH}",
125
- "run", "dify_mcp_server"
126
- ],
127
- "env": {
128
- "CONFIG_PATH": "$CONFIG_PATH"
129
- }
130
- }
131
- }
132
- }
133
- ```
134
- or
135
- ```json
136
- {
137
- "mcpServers": {
138
- "mcp-server-rag-web-browser": {
139
- "command": "uv",
140
- "args": [
141
- "--directory", "${DIFY_MCP_SERVER_PATH}",
142
- "run", "dify_mcp_server"
143
- ],
144
- "env": {
145
- "CONFIG_PATH": "$CONFIG_PATH"
146
- }
147
- }
148
- }
149
- }
150
- ```
151
- Example config:
152
- ```json
153
- {
154
- "mcpServers": {
155
- "dify-mcp-server": {
156
- "command": "uv",
157
- "args": [
158
- "--directory", "/Users/lyx/Downloads/dify-mcp-server",
159
- "run", "dify_mcp_server"
160
- ],
161
- "env": {
162
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
163
- "DIFY_APP_SKS": "app-sk1,app-sk2",
164
- }
165
- }
166
- }
167
- }
168
- ```
169
- ### Enjoy it
170
- At last, you can use dify tools in any client who supports mcp.
@@ -1,157 +0,0 @@
1
- # Model Context Protocol (MCP) Server for dify workflows
2
- 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.
3
- ## 📰 News
4
- * [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.
5
-
6
-
7
- ## 🔨Installation
8
- The server can be installed via [Smithery](https://smithery.ai/server/dify-mcp-server) or manually.
9
-
10
- ### Step1: prepare config.yaml or enviroments
11
- You can configure the server using either environment variables or a `config.yaml` file.
12
-
13
- #### Method 1: Using Environment Variables (Recommended for Cloud Platforms)
14
-
15
- Set the following environment variables:
16
-
17
- ```shell
18
- export DIFY_BASE_URL="https://cloud.dify.ai/v1"
19
- export DIFY_APP_SKS="app-sk1,app-sk2" # Comma-separated list of your Dify App SKs
20
- ```
21
-
22
- * `DIFY_BASE_URL`: The base URL for your Dify API.
23
- * `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.
24
-
25
- #### Method 2: Using `config.yaml`
26
-
27
- Create a `config.yaml` file to store your Dify base URL and App SKs.
28
-
29
- Example `config.yaml`:
30
-
31
- ```yaml
32
- dify_base_url: "https://cloud.dify.ai/v1"
33
- dify_app_sks:
34
- - "app-sk1" # SK for workflow 1
35
- - "app-sk2" # SK for workflow 2
36
- # Add more SKs as needed
37
- ```
38
-
39
- * `dify_base_url`: The base URL for your Dify API.
40
- * `dify_app_sks`: A list of your Dify App Secret Keys (SKs). Each SK typically corresponds to a different Dify workflow.
41
-
42
- You can create this file quickly using the following command (adjust the path and values as needed):
43
-
44
- ```bash
45
- # Create a directory if it doesn't exist
46
- mkdir -p ~/.config/dify-mcp-server
47
-
48
- # Create the config file
49
- cat > ~/.config/dify-mcp-server/config.yaml <<EOF
50
- dify_base_url: "https://cloud.dify.ai/v1"
51
- dify_app_sks:
52
- - "app-your-sk-1"
53
- - "app-your-sk-2"
54
- EOF
55
-
56
- echo "Configuration file created at ~/.config/dify-mcp-server/config.yaml"
57
- ```
58
-
59
- 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.
60
-
61
- ### Step2: Installation on your client
62
- ❓ If you haven't installed uv or uvx yet, you can do it quickly with the following command:
63
- ```
64
- curl -Ls https://astral.sh/uv/install.sh | sh
65
- ```
66
-
67
- #### ✅ Method 1: Use uvx (no need to clone code, recommended)
68
-
69
- ```json
70
- {
71
- "mcpServers": {
72
- "dify-mcp-server": {
73
- "command": "uvx",
74
- "args": [
75
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
76
- ],
77
- "env": {
78
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
79
- "DIFY_APP_SKS": "app-sk1,app-sk2",
80
- }
81
- }
82
- }
83
- }
84
- ```
85
- or
86
- ```json
87
- {
88
- "mcpServers": {
89
- "dify-mcp-server": {
90
- "command": "uvx",
91
- "args": [
92
- "--from","git+https://github.com/YanxingLiu/dify-mcp-server","dify_mcp_server"
93
- ],
94
- "env": {
95
- "CONFIG_PATH": "/Users/lyx/Downloads/config.yaml"
96
- }
97
- }
98
- }
99
- }
100
- ```
101
-
102
- #### ✅ Method 2: Use uv (local clone + uv start)
103
-
104
- You can also run the dify mcp server manually in your clients. The config of client should like the following format:
105
- ```json
106
- {
107
- "mcpServers": {
108
- "mcp-server-rag-web-browser": {
109
- "command": "uv",
110
- "args": [
111
- "--directory", "${DIFY_MCP_SERVER_PATH}",
112
- "run", "dify_mcp_server"
113
- ],
114
- "env": {
115
- "CONFIG_PATH": "$CONFIG_PATH"
116
- }
117
- }
118
- }
119
- }
120
- ```
121
- or
122
- ```json
123
- {
124
- "mcpServers": {
125
- "mcp-server-rag-web-browser": {
126
- "command": "uv",
127
- "args": [
128
- "--directory", "${DIFY_MCP_SERVER_PATH}",
129
- "run", "dify_mcp_server"
130
- ],
131
- "env": {
132
- "CONFIG_PATH": "$CONFIG_PATH"
133
- }
134
- }
135
- }
136
- }
137
- ```
138
- Example config:
139
- ```json
140
- {
141
- "mcpServers": {
142
- "dify-mcp-server": {
143
- "command": "uv",
144
- "args": [
145
- "--directory", "/Users/lyx/Downloads/dify-mcp-server",
146
- "run", "dify_mcp_server"
147
- ],
148
- "env": {
149
- "DIFY_BASE_URL": "https://cloud.dify.ai/v1",
150
- "DIFY_APP_SKS": "app-sk1,app-sk2",
151
- }
152
- }
153
- }
154
- }
155
- ```
156
- ### Enjoy it
157
- At last, you can use dify tools in any client who supports mcp.