dify-workflow-mcp

dify-workflow-mcp

3

The Dify Workflows MCP Server is a TypeScript-based implementation that converts Dify applications into MCP tools. It offers type safety and is configured through command-line arguments. Features include support for handling Dify workflows and planned streaming responses.

Dify Workflows MCP Server (TypeScript)

A Model Context Protocol (MCP) server implementation in TypeScript exposing Dify workflows as a tool.

Features

  • Converts Dify applications to MCP tools
  • Supports streaming responses from Dify workflows (to be implemented)
  • Configurable via command-line arguments
  • TypeScript implementation for type safety

Prerequisites

  • Node.js 18 or higher
  • npm 8 or higher
  • Access to Dify API and application keys

Installation

  1. Clone the repository and navigate to it.
  2. Install dependencies with npm install.

Usage

  1. Build the project with npm run build.
  2. Start the server with custom or default parameters.

Configuration

Server configuration via command-line arguments for base URL and API keys.