get_dify_config
Retrieve the current configuration status of the Dify API to ensure integration and operational readiness with the Dify Knowledge MCP Server.
Instructions
Get current Dify API configuration status
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- index.js:190-205 (handler)Implements the logic for the 'get_dify_config' tool by checking if DIFY_API_URL and DIFY_API_KEY are configured and returning a formatted status message.case "get_dify_config": const isConfigured = DIFY_API_URL && DIFY_API_KEY; return { content: [ { type: "text", text: `Dify Configuration Status: API URL: ${DIFY_API_URL ? '✓ Configured' : '✗ Not configured'} API Key: ${DIFY_API_KEY ? '✓ Configured' : '✗ Not configured'} ${isConfigured ? 'Ready to query knowledge base!' : 'Please configure DIFY_API_URL and DIFY_API_KEY in .env file, environment variables, or command line arguments.'}` } ] };
- index.js:142-149 (registration)Registers the 'get_dify_config' tool in the list tools response, including its description and input schema (no required parameters).{ name: "get_dify_config", description: "Get current Dify API configuration status", inputSchema: { type: "object", properties: {} } }