Shannon Thinking MCP Server

Shannon Thinking MCP Server

一个工具,它实现了克劳德·香农的问题解决方法,以帮助将复杂问题分解为结构化的步骤,包括问题定义、约束条件、建模、验证和实施。

研究与数据
开发者工具
笔记
访问服务器

Tools

shannonthinking

A problem-solving tool inspired by Claude Shannon's systematic and iterative approach to complex problems. This tool helps break down problems using Shannon's methodology of problem definition, mathematical modeling, validation, and practical implementation. When to use this tool: - Complex system analysis - Information processing problems - Engineering design challenges - Problems requiring theoretical frameworks - Optimization problems - Systems requiring practical implementation - Problems that need iterative refinement - Cases where experimental validation complements theory Key features: - Systematic progression through problem definition → constraints → modeling → validation → implementation - Support for revising earlier steps as understanding evolves - Ability to mark steps for re-examination with new information - Experimental validation alongside formal proofs - Explicit tracking of assumptions and dependencies - Confidence levels for each step - Rich feedback and validation results Parameters explained: - thoughtType: Type of thinking step (PROBLEM_DEFINITION, CONSTRAINTS, MODEL, PROOF, IMPLEMENTATION) - uncertainty: Confidence level in the current thought (0-1) - dependencies: Which previous thoughts this builds upon - assumptions: Explicit listing of assumptions made - isRevision: Whether this revises an earlier thought - revisesThought: Which thought is being revised - recheckStep: For marking steps that need re-examination - proofElements: For formal validation steps - experimentalElements: For empirical validation - implementationNotes: For practical application steps The tool supports an iterative approach: 1. Define the problem's fundamental elements (revisable as understanding grows) 2. Identify system constraints and limitations (can be rechecked with new information) 3. Develop mathematical/theoretical models 4. Validate through proofs and/or experimental testing 5. Design and test practical implementations Each thought can build on, revise, or re-examine previous steps, creating a flexible yet rigorous problem-solving framework.

README

香农思维

一个实现了克劳德·香农系统化问题解决方法的 MCP 服务器。该服务器提供了一个工具,可以帮助将复杂问题分解为结构化的思考,遵循香农的问题定义、数学建模和实际实现的思路。

概述

克劳德·香农,被称为信息论之父,通过一种系统化的方法来解决复杂问题:

  1. 问题定义: 将问题简化为基本要素
  2. 约束: 识别系统限制和边界
  3. 模型: 开发数学/理论框架
  4. 证明/验证: 通过形式证明或实验测试进行验证
  5. 实现/实验: 设计和测试实际解决方案

这个 MCP 服务器将这种方法实现为一个工具,通过这些阶段来帮助指导系统化的问题解决。

安装

npm install @modelcontextprotocol/server-shannon-thinking

使用

该服务器提供了一个名为 shannonthinking 的工具,该工具根据香农的方法论来构建问题解决的思路。

每个想法必须包括:

  • 实际的想法内容
  • 类型 (problem_definition/constraints/model/proof/implementation)
  • 想法编号和总想法估计
  • 置信度 (不确定性: 0-1)
  • 对先前想法的依赖
  • 明确的假设
  • 是否需要另一个想法步骤

附加功能:

  • 修订: 随着理解的演变,想法可以修改早期的步骤
  • 复查: 标记需要用新信息重新检查的步骤
  • 实验验证: 支持与形式证明并行的经验测试
  • 实现说明: 实际约束和建议的解决方案

使用示例

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);

特性

  • 迭代问题解决: 支持随着理解的演变进行修订和复查
  • 灵活的验证: 将形式证明与实验验证相结合
  • 依赖跟踪: 显式跟踪想法如何建立在先前的想法之上
  • 假设管理: 需要清晰地记录假设
  • 置信度: 量化每个步骤中的不确定性
  • 丰富的反馈: 格式化的控制台输出,带有颜色编码、符号和验证结果

开发

# 安装依赖
npm install

# 构建
npm run build

# 运行测试
npm test

# 开发期间的观察模式
npm run watch

工具模式

该工具接受具有以下结构的想法:

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;
  };
}

何时使用

此工具对于以下情况特别有价值:

  • 复杂系统分析
  • 信息处理问题
  • 工程设计挑战
  • 需要理论框架的问题
  • 优化问题
  • 需要实际实现的系统
  • 需要迭代改进的问题
  • 实验验证补充理论的情况

许可证

MIT

推荐服务器

Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
MCP Package Docs Server

MCP Package Docs Server

促进大型语言模型高效访问和获取 Go、Python 和 NPM 包的结构化文档,通过多语言支持和性能优化来增强软件开发。

精选
本地
TypeScript
Claude Code MCP

Claude Code MCP

一个实现了 Claude Code 作为模型上下文协议(Model Context Protocol, MCP)服务器的方案,它可以通过标准化的 MCP 接口来使用 Claude 的软件工程能力(代码生成、编辑、审查和文件操作)。

精选
本地
JavaScript
@kazuph/mcp-taskmanager

@kazuph/mcp-taskmanager

用于任务管理的模型上下文协议服务器。它允许 Claude Desktop(或任何 MCP 客户端)在基于队列的系统中管理和执行任务。

精选
本地
JavaScript
Apple MCP Server

Apple MCP Server

通过 MCP 协议与 Apple 应用(如“信息”、“备忘录”和“通讯录”)进行交互,从而使用自然语言发送消息、搜索和打开应用内容。

精选
本地
TypeScript
mermaid-mcp-server

mermaid-mcp-server

一个模型上下文协议 (MCP) 服务器,用于将 Mermaid 图表转换为 PNG 图像。

精选
JavaScript
Jira-Context-MCP

Jira-Context-MCP

MCP 服务器向 AI 编码助手(如 Cursor)提供 Jira 工单信息。

精选
TypeScript
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

一个模型上下文协议 (MCP) 服务器,它使用 CoinCap API 提供全面的加密货币分析。该服务器通过一个易于使用的界面提供实时价格数据、市场分析和历史趋势。 (Alternative, slightly more formal and technical translation): 一个模型上下文协议 (MCP) 服务器,利用 CoinCap API 提供全面的加密货币分析服务。该服务器通过用户友好的界面,提供实时价格数据、市场分析以及历史趋势数据。

精选
TypeScript
MCP PubMed Search

MCP PubMed Search

用于搜索 PubMed 的服务器(PubMed 是一个免费的在线数据库,用户可以在其中搜索生物医学和生命科学文献)。 我是在 MCP 发布当天创建的,但当时正在度假。 我看到有人在您的数据库中发布了类似的服务器,但还是决定发布我的。

精选
Python