Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿง  ๋„๊ตฌ ์‚ฌ์šฉ์„ ์•ˆ๋‚ดํ•˜๋Š” MCP Sequential Thinking Server์˜ ๋ณ€ํ˜•์ž…๋‹ˆ๋‹ค. ์ด ์„œ๋ฒ„๋Š” ๊ฐ ๋‹จ๊ณ„์—์„œ ์–ด๋–ค MCP ๋„๊ตฌ๊ฐ€ ๊ฐ€์žฅ ํšจ๊ณผ์ ์ธ์ง€ ์ถ”์ฒœํ•ฉ๋‹ˆ๋‹ค.

ํ•™์Šต ๋ฐ ๊ต์œก

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

What you can do

  • breaking a messy problem into steps;
  • revising or branching a plan;
  • keeping a small reasoning history by session;
  • validating tool-plan names against a supplied tool list;

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
-2
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

mcp-sequentialthinking-tools

CI built with vite+ tested with vitest

A lightweight MCP server for recording sequential reasoning steps. It is a scratchpad with history, branching, revision metadata, and optional validation for model-authored tool plans.

It does not discover your other MCP tools and it does not choose tools for the model. If you pass available_tools and recommended_tools, the server validates that the recommended names exist and stores the step.

Why use it?

Use this when a task benefits from explicit, inspectable reasoning:

  • breaking a messy problem into steps;
  • revising or branching a plan;
  • keeping a small reasoning history by session;
  • validating tool-plan names against a supplied tool list;
  • clearing or inspecting reasoning history during a long agent run.

Do not use it for trivial requests. It adds overhead.

Tools

sequentialthinking_tools

Records one thought.

Required parameters:

  • thought โ€” current reasoning step
  • thought_number โ€” current step number
  • total_thoughts โ€” current estimate; automatically raised if lower than thought_number
  • next_thought_needed โ€” whether another thought is needed

Optional parameters:

  • session_id โ€” history bucket; defaults to default
  • is_revision, revises_thought
  • branch_from_thought, branch_id
  • needs_more_thoughts
  • available_tools โ€” array of tool names or { name, description } objects
  • recommended_tools โ€” model-authored recommendations to validate/store
  • remaining_steps โ€” short list of upcoming steps

Example:

{
	"session_id": "svelte-debug",
	"thought": "First inspect the route files, then run the failing check.",
	"thought_number": 1,
	"total_thoughts": 3,
	"next_thought_needed": true,
	"available_tools": ["read", "bash"],
	"recommended_tools": [
		{
			"tool_name": "read",
			"confidence": 0.9,
			"rationale": "Need to inspect the relevant files before editing.",
			"priority": 1
		}
	]
}

If recommended_tools contains a name not present in available_tools, the call returns isError: true and does not store the thought.

Security posture

The server treats thought text, tool descriptions, rationales, and remaining-step text as untrusted input. Prompt-injection-like text is scanned and redacted before it is stored or returned in history. Calls with redactions include security_warnings showing which fields matched.

This is defensive filtering, not a guarantee that arbitrary adversarial text is safe. Do not put secrets in thoughts or tool descriptions.

get_thinking_history

Returns stored thoughts for a session.

Parameters:

  • session_id โ€” defaults to default
  • branch_id โ€” optional branch filter
  • limit โ€” max records to return; default 50, max 500

clear_thinking_history

Clears one session or every session.

Parameters:

  • session_id โ€” defaults to default
  • all_sessions โ€” clear all history buckets

Prompt

sequential-thinking-guidance

A short prompt that tells the model how to use this server honestly: as a scratchpad and validator, not as an external reasoning engine.

Configuration

Claude Desktop / compatible MCP clients

{
	"mcpServers": {
		"mcp-sequentialthinking-tools": {
			"command": "npx",
			"args": ["-y", "mcp-sequentialthinking-tools"],
			"env": {
				"MAX_HISTORY_SIZE": "1000"
			}
		}
	}
}

MAX_HISTORY_SIZE is per session and defaults to 1000.

The server uses tmcp and includes a small stdio transport that accepts both standard Content-Length framed MCP messages and newline-delimited JSON used by older tmcp tooling.

Development

pnpm install
pnpm test
pnpm build
pnpm check

This project uses vite-plus for build, test, format, and lint orchestration.

Publishing

pnpm changeset
pnpm changeset version
pnpm release

License

MIT License โ€” see LICENSE.

Acknowledgments

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ