Skip to main content
Glama
SiwuXue

Yijing Bazi MCP Server

by SiwuXue

combined_analysis

Analyze life aspects by combining I Ching hexagrams with Bazi birth chart data to provide insights on career, relationships, wealth, and health based on traditional Chinese metaphysics.

Instructions

结合易经和八字进行综合分析

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bazi_chartYes八字命盘数据
hexagramNo卦象数据(可选,如不提供则从八字生成)
questionYes用户的具体问题或关注点
analysis_aspectsNo分析方面

Implementation Reference

  • The performCombinedAnalysis method is the core handler for the 'combined_analysis' tool, integrating Bazi chart analysis and Yijing hexagram interpretation to provide comprehensive insights, advice, and timing analysis.
    async performCombinedAnalysis({ bazi_chart, hexagram, question, focus_areas = [], analysis_depth = 'standard' }) { try { this.logger.info('开始综合分析', { question, focus_areas, analysis_depth }); // 八字基础分析 const baziAnalysis = await this.analyzeBaziFoundation(bazi_chart, focus_areas, analysis_depth); // 易经分析(如果提供了卦象) let yijingAnalysis = null; if (hexagram) { yijingAnalysis = await this.analyzeYijingGuidance(hexagram, question, focus_areas); } // 整合分析 const integratedAnalysis = await this.integrateAnalyses( baziAnalysis, yijingAnalysis, question, focus_areas ); // 生成综合建议 const comprehensiveAdvice = await this.generateComprehensiveAdvice( integratedAnalysis, question, focus_areas ); // 时机分析 const timingAnalysis = await this.analyzeOptimalTiming( baziAnalysis, yijingAnalysis, question ); const result = { timestamp: new Date().toISOString(), question: question, focus_areas: focus_areas, analysis_depth: analysis_depth, bazi_analysis: baziAnalysis, yijing_analysis: yijingAnalysis, integrated_insights: integratedAnalysis, comprehensive_advice: comprehensiveAdvice, timing_analysis: timingAnalysis, synthesis_summary: this.generateSynthesisSummary(integratedAnalysis, comprehensiveAdvice), confidence_level: this.calculateConfidenceLevel(baziAnalysis, yijingAnalysis) }; this.logger.info('综合分析完成'); return result; } catch (error) { this.logger.error('综合分析失败', { error: error.message }); throw error; } }
  • src/index.js:258-285 (registration)
    Tool registration in the ListTools response, defining the 'combined_analysis' tool's name, description, and input schema.
    { name: 'combined_analysis', description: '结合易经和八字进行综合分析', inputSchema: { type: 'object', properties: { bazi_chart: { type: 'object', description: '八字命盘数据' }, hexagram: { type: 'object', description: '卦象数据(可选,如不提供则从八字生成)' }, question: { type: 'string', description: '用户的具体问题或关注点' }, analysis_aspects: { type: 'array', items: { type: 'string' }, description: '分析方面' } }, required: ['bazi_chart', 'question'] }
  • src/index.js:445-447 (registration)
    Dispatch logic in the CallToolRequest handler that routes 'combined_analysis' calls to the CombinedAnalysisEngine's performCombinedAnalysis method.
    case 'combined_analysis': result = await combinedEngine.performCombinedAnalysis(args); break;
  • Joi schema definition for validating input parameters of the 'combined_analysis' tool, used in validateToolInput.
    function createCombinedAnalysisSchema() { return Joi.object({ bazi_chart: Joi.object().required(), hexagram: Joi.object().optional(), question: Joi.string().min(3).max(500).required(), focus_areas: Joi.array().items( Joi.string().valid('career', 'wealth', 'relationship', 'health', 'general') ).single().default(['general']), analysis_depth: Joi.string().valid('basic', 'standard', 'detailed').default('standard') }); }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SiwuXue/yijing-bazi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server