Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

630 B
Raw Blame
import type { ToolWithProvider } from '@/app/components/workflow/types'

export const createMcpProviderFixture = (
  overrides: Partial<ToolWithProvider> = {},
): ToolWithProvider => ({
  id: 'mcp-1',
  name: 'Existing Server',
  author: 'Dify',
  description: { en_US: 'MCP server', zh_Hans: 'MCP server' },
  label: { en_US: 'Server', zh_Hans: 'Server' },
  type: 'mcp',
  icon: { content: '🚀', background: '#FF0000' },
  team_credentials: {},
  is_team_authorization: true,
  allow_delete: true,
  labels: [],
  tools: [],
  server_url: 'https://existing.com/mcp',
  server_identifier: 'existing-server',
  ...overrides,
})