香农思维MCP服务器基于Claude Shannon系统性解决问题的方法论构建,为用户提供了一个实用工具,可将复杂问题分解为结构化的思考步骤。它严格遵循Shannon通过问题定义、数学建模和实际实现来系统解决问题的方法,助力用户高效应对各类难题。
香农思维MCP服务器借助Claude Shannon的系统方法论,帮助用户将复杂问题结构化,实现高效的问题解决。该方法论涵盖问题定义、限制条件识别、模型建立、证明验证以及实际实现等关键步骤。
使用以下命令安装服务器:
npm install @modelcontextprotocol/server-shannon-thinking
服务器提供了一个名为shannonthinking的单一工具,可按照Shannon的方法论结构化问题解决思考步骤。每个思想必须包含特定的信息,以下是一个示例:
const thought = {
thought: "核心问题可以定义为一个信息流优化的问题",
thoughtType: "problem_definition",
thoughtNumber: 1,
totalThoughts: 5,
uncertainty: 0.2,
dependencies: [],
assumptions: ["系统具有有限容量", "信息流是连续的"],
nextThoughtNeeded: true,
// 可选:标记为对早期定义的修订
isRevision: false,
// 可选:指示步骤需要重新检查
recheckStep: {
stepToRecheck: "constraints",
reason: "发现新的容量限制",
newInformation: "系统显示非线性扩展"
}
};
// 使用MCP客户端
const result = await client.callTool("shannonthinking", thought);
该工具接受具有特定结构的思想,具体结构如下:
interface ShannonThought {
thought: string;
thoughtType: "problem_definition" | "constraints" | "model" | "proof" | "implementation";
thoughtNumber: number;
totalThoughts: number;
uncertainty: number; // 0-1
dependencies: number[];
assumptions: string[];
nextThoughtNeeded: boolean;
// 可选修订字段
isRevision?: boolean;
revisesThought?: number;
// 可选重新检查字段
recheckStep?: {
stepToRecheck: ThoughtType;
reason: string;
newInformation?: string;
};
// 可选验证字段
proofElements?: {
hypothesis: string;
validation: string;
};
experimentalElements?: {
testDescription: string;
results: string;
confidence: number; // 0-1
limitations: string[];
};
// 可选实现字段
implementationNotes?: {
practicalConstraints: string[];
proposedSolution: string;
};
}
Claude Shannon,被誉为信息论之父,通过以下系统方法论解决复杂问题:
该MCP服务器实现了这种方法论,作为指导系统性解决问题的工具。
每个思想必须包含以下内容:
额外功能:
该工具在以下情况下特别有用:
# 安装依赖项
npm install
# 构建
npm run build
# 运行测试
npm test
# 开发模式
npm run watch
本项目采用MIT许可证。