高级推理MCP服务器是一个精致且独立的MCP服务器,它基于顺序思维模式构建,具备高级认知能力,包括元推理、假设检验、集成内存库和结构化数据存储等。
cd /advanced-reasoning-mcp
npm install
npm run build
在你的MCP客户端配置中添加以下内容:
{
"mcpServers": {
"advanced-reasoning": {
"command": "node",
"args": ["/path-to/advanced-reasoning-mcp/build/index.js"]
}
}
}
cd /advanced-reasoning-mcp
npm install
npm run build
// Create a new memory library for this project
const library = await callTool("create_memory_library", {
library_name: "database_optimization"
});
// Advanced reasoning with meta-cognition (no session creation needed)
const result = await callTool("advanced_reasoning", {
thought: "I need to analyze the query execution plan first",
thoughtNumber: 1,
totalThoughts: 5,
nextThoughtNeeded: true,
confidence: 0.8,
reasoning_quality: "high",
meta_thought: "This is a logical first step, high confidence approach",
goal: "Optimize database query performance"
});
const result = await callTool("advanced_reasoning", {
thought: "The bottleneck appears to be in the JOIN operations",
thoughtNumber: 2,
totalThoughts: 5,
nextThoughtNeeded: true,
confidence: 0.6,
reasoning_quality: "medium",
meta_thought: "Need to verify this with actual data",
hypothesis: "JOIN operations are causing 80% of query time",
test_plan: "Run EXPLAIN ANALYZE and check execution times"
});
advanced_reasoning具备认知功能的增强推理:
query_reasoning_memory搜索集成内存:
create_memory_library为有组织的知识创建命名的内存库:
list_memory_libraries列出所有可用的内存库:
switch_memory_library在不同的内存库之间切换:
get_current_library_info获取当前活动库的信息:
create_system_json为工作流和指令创建结构化数据存储:
get_system_json按名称检索结构化数据:
search_system_json搜索结构化数据:
list_system_json列出所有可用的结构化数据文件:
┌─────────────────────────────────────────────────────────────┐
│ MCP Interface │
├─────────────────────────────────────────────────────────────┤
│ Advanced Reasoning Server │
│ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ CognitiveMemory │ │ SystemJSON │ │
│ │ (Graph-Based) │ │ (Document-Based) │ │
│ │ │ │ │ │
│ │ • Named Libraries │ │ • Domain-Indexed │ │
│ │ • Session Context │ │ • Searchable │ │
│ │ • Node Relations │ │ • Tagged Content │ │
│ │ • Hypothesis │ │ • Workflows │ │
│ │ Tracking │ │ • Instructions │ │
│ └──────────────────┘ └──────────────────┘ │
│ │ │ │
│ ┌──────────────────┐ ┌──────────────────┐ │
│ │ Meta-Cognitive │ │ Enhanced │ │
│ │ Assessment │ │ Sequential │ │
│ │ │ │ Thinking │ │
│ │ • Confidence │ │ │ │
│ │ • Quality Rating │ │ • Branching │ │
│ │ • Evidence │ │ • Revisions │ │
│ │ • Hypothesis │ │ • Dynamic Counts │ │
│ │ Testing │ │ • Meta-Thoughts │ │
│ └──────────────────┘ └──────────────────┘ │
└─────────────────────────────────────────────────────────────┘
memory_data/{library_name}.jsonmemory_data/system_json/{name}.json与顺序思维模式完全兼容:
memory_data/
├── cognitive_memory.json # Default reasoning library
├── {library_name}.json # Named reasoning libraries
└── system_json/ # Structured data storage
├── {workflow_name}.json # Workflow definitions
├── {instruction_set}.json # Instruction sets
└── {domain_data}.json # Domain-specific data
这个服务器将顺序思维转变为一个复杂的双存储认知推理系统,为推理会话提供基于图的内存,为工作流和指令提供结构化文档存储,同时保持了原顺序思维模式的简洁性和有效性。
由angrysky56 (Ty Hall) 和Claude开发
MIT许可证