Introduction¶
The core design philosophy of DeepSeek Harness (DSH) is modularity. For developers, writing complex Mingli algorithms directly in code is often expensive and difficult to maintain. The xby-mingli plugin uses the MCP protocol to integrate external Mingli analysis capabilities into DSH, enabling AI tools to directly call chart casting and fortune query functions for systems such as Zi Wei Dou Shu and Bazi.
Plugin Overview¶
xby-mingli is an MCP protocol server that supports multiple Mingli systems.
* Functional Positioning: Provides AI tools with Mingli analysis and fortune query capabilities.
* Supported Systems: Zi Wei Dou Shu, Bazi, and others.
* Maintainer: xby-skill.
* Category: Online Tools.
* License: MIT.
Core Features¶
This plugin provides the following tool capabilities:
- set_xby_apikey: Sets the API key in the conversation. Once set, it is automatically persisted and remains valid after the process is restarted.
- get_ziwei_chart: Retrieves Zi Wei Dou Shu chart information, including details of the twelve palaces, main stars, auxiliary stars, and Four Transformations.
- get_ziwei_fortune: Retrieves Zi Wei Dou Shu fortune information, covering details of the Major Limit, annual fortune, monthly fortune, daily fortune, and hourly fortune.
- analyze_ziwei_palace: Performs a detailed analysis of a specific Zi Wei Dou Shu palace.
- list_fortune_systems: Lists all currently available Mingli systems.
- get_bazi_chart: Retrieves Bazi (Four Pillars) chart information, including the year, month, day, and hour pillars, Ten Gods, Five Elements, and hidden stems in the earthly branches.
- get_bazi_fortune: Retrieves Bazi fortune information, including details of the Major Fate and annual fortune.
- analyze_bazi_element: Analyzes the relative strength of the Five Elements in Bazi, calculating element scores, balance level, and missing elements.
Installation and Configuration¶
Before installation, please ensure that the web profile has been configured.
Obtain an API Key¶
To use this plugin, visit the Xiao Ben Yang official website to register and obtain an API key.
Installation Command¶
Install from GitHub:
dsh plugin --profile web add github:xby_skill/xby-mingli
Development and Debugging¶
For local development and debugging, you can use the following methods:
Method 1: Install from a Local Directory¶
dsh plugin --profile web add /absolute/path/to/xby-mingli
Method 2: Debug via cordis.patch.yml¶
dsh web --profile web --patch /absolute/path/to/dsh-ocr-plugin/cordis.patch.yml