Integrations

Dify

Connect Castrel to Dify and invoke Dify application workflows and agent capabilities via the MCP protocol.

Overview

Configuration

To use Dify tools, create a Connector with the following fields:

FieldRequiredDescription
instance_nameYesDisplay name for this connector instance
base_urlYesDify App MCP endpoint URL (e.g., https://api.dify.ai/mcp/server/{secret})

The MCP endpoint URL can be found in the Dify application under Publish → MCP settings.

Available Tools

The Dify connector uses the MCP protocol to automatically discover tools exposed by Dify applications after connecting.

  • Workflow invocation: Trigger Dify workflows and retrieve execution results
  • Knowledge base retrieval: Query document content via Dify's knowledge base RAG capabilities
  • Agent interaction: Call Dify agents for multi-turn conversation or task handling
  • Automatic tool discovery: Lists all MCP tools exposed by the Dify application after connection