
DifyWorkflow
β 59from gotoolkits
Tools to the query and execute of Dify workflows
mcp-difyworkflow-server
mcp-difyworkflow-server is an mcp server Tools application that implements the query and invocation of Dify workflows, supporting the on-demand operation of multiple custom Dify workflows.
or use make build
make build
INSTALL
git clone https://github.com/gotoolkis/mcp-difyworkflow-server.git
# build by go
cd mcp-difyworkflow-server
go build .
## Configuration
```json
{
"mcpServers": {
"mcp-difyworkflow-server": {
"command": "mcp-difyworkflow-server",
"args": ["-base-url", "http://localhost/v1"],
"env": {
"DIFY_WORKFLOW_NAME": "workflow-translatorβ,workflow-genImag",
"DIFY_API_KEYS": "appkey-xxxxxxxxxxxa,appkey-xxxxxxxxxxxb"
}
}
}
}-
"base-url":"http://localhost/v1"
The base URL of the Dify platform api server url.
-
"command":"mcp-difyworkflow-server"
You can specify the absolute path for the compiled binary, or create a symbolic link with:
"sudo ln -s <gitWorkPath>/mcp-difyworkflow-server /usr/local/bin/mcp-difyworkflow-server" -
DIFY_WORKFLOW_NAMEγDIFY_API_KEYS
Need to correspond one by one in order.
Workflow name can be self-defined by the user in the Prompt, and the Workflow API Key needs to be generated for the corresponding workflow created on the Dify platform (refer to the relevant Dify documentation for how to generate the API KEY).
Usage
- list_workflows
List authorized workflows - execute_workflow
Execute a specified workflow,args: workflow_name, input Note: The input variable name of the dify workflow should be defined by default as: "message"
Samples
prompt: ζ₯η mcp-difyworkflow-server ε―δ½Ώη¨ηε·₯ε ·ε葨
prompt: η»ζζ§θ‘ dify εδΈΊ workflow-translator ηε·₯δ½ζ΅οΌθΎε ₯ηζΆζ―δΈΊβθΏζ―δΈζ‘ζ΅θ―ζΆζ―β
prompt: View the list of tools available for mcp-difyworkflow-server.
prompt: Execute the workflow named 'workflow-translator' for me, the input message is "This is a test message".
No common issues documented yet. If you hit a problem, the repository's GitHub Issues page is the best place to look.
Licensed under Apache-2.0β you can use, modify, and redistribute it under that license's terms.
View the full license file on GitHub β