Sequential Story MCP Server

连续故事 MCP 服务器

用于顺序思维和顺序故事的模型上下文协议 (MCP) 服务器作为解决问题的助记技术。

概述

该项目提供了两个互补的 MCP 工具来解决复杂问题:

  1. 连续故事——一种基于叙事的连续思维方法。它不是追踪抽象思维,而是将问题构建为故事元素,包含人物、场景和情节发展,使其更令人难忘、更引人入胜。
  2. 顺序思维- JavaScript 实现的纯 Python 端口,消除了对 Node.js 的依赖

这两种方法都利用排序和结构的力量来增强记忆力和问题理解力。

特征

连续故事

  • 将问题解决方案构建为叙述序列
  • 根据需要修改和分支故事元素
  • 追踪人物、场景、基调和情节点
  • 格式化、颜色编码的故事元素显示

顺序思维

  • 将问题构建为一系列的思维
  • 根据需要修改或分支思维路径
  • 生成并验证解决方案假设
  • 追踪思考过程完成情况
  • 纯 Python 实现(无需 Node.js)

共同特征

  • 格式化、颜色编码的元素显示
  • 完全支持 MCP 协议,可与 AI 系统集成
  • 支持分支和修订

安装

开发过程中

在发布之前在本地处理包时:

# Clone the repository git clone https://github.com/dhkts1/sequentialStory cd sequentialStory # Install dependencies using uv uv venv source .venv/bin/activate uv sync # Install with development dependencies uv sync --group dev

使用 MCP 安装

# Install in the Claude desktop app mcp install -e . src/cli.py -n "Sequential Story" # Install with only the Sequential Thinking tool mcp install -e . src/cli.py -n "Sequential Thinking" --env-var "TOOLS='[\"thinking\"]'" # Install with only the Sequential Story tool explicitly mcp install -e . src/cli.py -n "Sequential Story" --env-var "TOOLS='[\"story\"]'" # Install with both tools mcp install -e . src/cli.py -n "Sequential Tools" --env-var "TOOLS='[\"thinking\",\"story\"]'"

对于开发:

# For development with the MCP Inspector mcp dev src/__main__.py:main

您还可以通过将其添加到 Claude mcpServers.json 来配置 Claude 桌面以与uvx一起使用该工具:

"mcpServers": { "Sequential Story": { "command": "uvx", "args": [ "sequential-story" ] } }

环境变量TOOLS控制启用哪些工具。默认情况下,仅启用“顺序故事”工具,但可以根据需要添加“顺序思维”工具。

当您想要专注于特定的问题解决方法或与其他 MCP 工具集成时,此功能非常有用。安装后,您还可以直接在 Claude 桌面应用程序中更新环境变量。

故事元素示例

{ "element": "Our protagonist, a data scientist named Alex, encounters a mysterious pattern in the customer behavior data.", "elementNumber": 1, "totalElements": 5, "nextElementNeeded": true, "character": "Alex (data scientist)", "setting": "Data analysis lab", "tone": "Mysterious", "plotPoint": "Discovery of pattern" }

思维要素示例

{ "thought": "The problem requires analyzing multiple data sources to identify correlations between customer behavior and sales patterns.", "thoughtNumber": 1, "totalThoughts": 5, "nextThoughtNeeded": true }

发展

# Install pre-commit hooks uv run pre-commit install # Run all pre-commit checks poe pre

致谢

该项目以顺序思维和结构化问题解决的概念为基础,将这些方法应用于分析和叙述框架,以增强记忆和解决问题的能力。

顺序思维实现是一个纯 Python 端口,受到模型上下文协议存储库中的 JavaScript 实现的启发: https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking

-
security - not tested
F
license - not found
-
quality - not tested

提供通过基于叙述的连续故事元素或系统顺序思维来构建复杂问题的工具,帮助使复杂问题更容易记住和理解。

  1. Overview
    1. Features
      1. Sequential Story
      2. Sequential Thinking
      3. Common Features
    2. Installation
      1. During Development
      2. Installing with MCP
      3. Example story element
      4. Example thought element
    3. Development
      1. Credits
        ID: l7oavkgcg2