Follow this guide to run the Sequential Thinking agent and toolkit in a Meshagent Room in the cloud:

  1. Install Meshagent with all dependencies:

    pip install "meshagent[all]"
    
  2. Sign up and authenticate:

  3. Start a Meshagent Room with the MCP server:

    meshagent service test --room=test --role=agent --image=meshagent/mcp-sequentialthinking:latest --env MESHAGENT_PORT=8001 --port="num=8001 path=/webhook liveness=/ type=meshagent.callable" --name=mcp-sequentialthinking-service
    
    • Note: This command launches a Meshagent room called test and starts the Sequential Thinking MCP server within that room. Meshagent Rooms automatically close if they go inactive.
  4. Join the room with a chatbot and Sequential Thinking toolkit:

    meshagent chatbot join --room=test --agent-name=sample --name=sample --toolkit=mcp-sequentialthinking
    
    • The chatbot named sample enters the room and can use the Sequential Thinking toolkit.
    • You can use multiple toolkits per agent in the same room.
    • After running this, you’ll get a link to the Meshagent room in your console, which you can use to interact with the agent and toolkit.

Tools Available

The Sequential Thinking MCP server provides dynamic, reflective problem-solving through directed thought sequences.

Tools Provided

Tool NameShort Description
sequentialthinkingA detailed tool for dynamic and reflective problem-solving through thoughts.

Tool Details

Tool: sequentialthinking

A detailed tool for dynamic and reflective problem-solving through thoughts.
This tool helps analyze problems through a flexible thinking process that can adapt and evolve. Each thought can build on, question, or revise previous insights as understanding deepens.

When to use:

  • Breaking down complex problems into steps
  • Planning and design with room for revision
  • Analysis that might need course correction
  • Problems where the full scope might not be clear initially
  • Multi-step solutions
  • Tasks that must maintain context over multiple steps
  • Filtering out irrelevant information

Key Features:

  • Dynamically adjust the number of thought steps as you progress
  • Revise or question previous thoughts anytime
  • Add more thoughts on the fly—even “after the end”
  • Branch or backtrack as needed
  • Express uncertainty and explore alternatives
  • Generates and verifies solution hypotheses
  • Iterates until satisfied with the outcome

You should:

  1. Begin with an initial estimate of needed thoughts, but adjust along the way
  2. Question or revise anything as needed
  3. Add more thoughts if necessary—even after reaching “the end”
  4. Express uncertainty; not every step needs to be certain
  5. Mark revised or branched thoughts appropriately
  6. Ignore irrelevant information
  7. Generate and verify hypotheses
  8. Repeat until truly satisfied with the answer
  9. Output a single, best answer in the end

Parameters:

ParameterTypeDescription
nextThoughtNeededbooleanWhether another thought step is needed
thoughtstringYour current thinking step
thoughtNumberintegerCurrent thought number
totalThoughtsintegerEstimated total thoughts needed
branchFromThoughtinteger*Branching point thought number
branchIdstring*Branch identifier
isRevisionboolean*Whether this revises previous thinking
needsMoreThoughtsboolean*If more thoughts are needed
revisesThoughtinteger*Which thought is being reconsidered

* *optional


Meshagent Resources