Cover image
python-sequinentiment-Inclinking-MCP
Public

python-sequinentiment-Inclinking-MCP

Try Now
2025-04-05

使用官方模型上下文协议(MCP)Python SDK对顺序思考MCP服务器的Python实现。该服务器促进了解决问题和分析的详细,分步的思维过程。

3 years

Works with Finder

1

Github Watches

0

Github Forks

0

Github Stars

Sequential Thinking MCP Server (Python Implementation)

A Python implementation of the Sequential Thinking MCP server using the official Model Context Protocol (MCP) Python SDK. This server facilitates a detailed, step-by-step thinking process for problem-solving and analysis.

Features

  • Break down complex problems into manageable steps
  • Revise and refine thoughts as understanding deepens
  • Branch into alternative paths of reasoning
  • Adjust the total number of thoughts dynamically
  • Generate and verify solution hypotheses

Usage

Running Directly

uv --directory "/path/to/sequential-thinking-mcp" run main.py

Development Mode

For development and testing, you can use the MCP CLI tools:

# Install MCP CLI tools
pip install "mcp[cli]"

# Run in development mode
mcp dev "/path/to/sequential-thinking-mcp"

# npx @modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector uv --diectory "/path/to/sequential-thinking-mcp" run main.py

Integration

mcp install "\path\to\sequential-thinking-mcp\server.py"
{
  "mcpServers": {
    "sequential-thinking": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/sequential-thinking-mcp",
        "run",
        "main.py"
      ]
    }
  }
}

Sequential Thinking Tool

The server provides a tool called sequential_thinking with the following parameters:

  • thought (string): The current thinking step
  • thoughtNumber (integer): Current thought number
  • totalThoughts (integer): Estimated total thoughts needed
  • nextThoughtNeeded (boolean): Whether another thought step is needed
  • isRevision (boolean, optional): Whether this revises previous thinking
  • revisesThought (integer, optional): Which thought is being reconsidered
  • branchFromThought (integer, optional): Branching point thought number
  • branchId (string, optional): Branch identifier
  • needsMoreThoughts (boolean, optional): If more thoughts are needed

Resources

The server provides the following resources for accessing thought data:

  • thoughts://history: Get the complete thought history
  • thoughts://branches/{branch_id}: Get thoughts for a specific branch
  • thoughts://summary: Get a summary of all thoughts and branches

Prompts

  • thinking_process_guide: Guide for using the sequential thinking process

Example Usage

# First thought
sequential_thinking(
    thought="First, we need to understand the problem requirements.",
    thoughtNumber=1,
    totalThoughts=5,
    nextThoughtNeeded=True
)

# Second thought
sequential_thinking(
    thought="Now, let's analyze the key constraints.",
    thoughtNumber=2,
    totalThoughts=5,
    nextThoughtNeeded=True
)

# Revise a thought
sequential_thinking(
    thought="Actually, we need to clarify the problem requirements first.",
    thoughtNumber=1,
    totalThoughts=5,
    nextThoughtNeeded=True,
    isRevision=True,
    revisesThought=1
)

# Branch from thought 2
sequential_thinking(
    thought="Let's explore an alternative approach.",
    thoughtNumber=3,
    totalThoughts=5,
    nextThoughtNeeded=True,
    branchFromThought=2,
    branchId="alternative-approach"
)

Integration with Claude or Other AI Assistants

To use this server with Claude or other AI assistants that support MCP:

  1. Install the MCP server in Claude Desktop using the MCP CLI
  2. The AI can then use the sequential_thinking tool to break down complex problems

About Model Context Protocol (MCP)

The Model Context Protocol (MCP) is a standardized way for applications to provide context and tools to LLMs. It allows:

  • Resources: Providing contextual data to the LLM
  • Tools: Exposing functionality for the LLM to take actions
  • Prompts: Defining reusable templates for LLM interactions

For more information, visit modelcontextprotocol.io

License

MIT

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • JackKuo666
  • 🔍使AI助手可以通过简单的MCP接口搜索和访问PYPI软件包信息。

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

    Reviews

    3 (1)
    Avatar
    user_vAqHr0Kd
    2025-04-16

    Python-sequential-thinking-mcp by XD3an is an exceptional tool for enhancing your sequential thinking skills with Python. The GitHub page is well-structured and provides all the necessary information to get started. The seamless integration and user-friendly approach make it a must-have for anyone looking to improve their Python proficiency. Highly recommended!