Sequential Thinking Working Notes

v0.7.0
io.github.arben-adm/mcp-sequential-thinking Checked 8 hours ago Published 1 month ago

Local working notes, decisions, evidence and resumable sessions with SQLite persistence.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_session

Start a local plaintext working log. No mandatory reasoning phases.

ParameterTypeDescription
title *stringGoal or title for later resumption
modestringNo mandatory stages or classification
request_id

add_step

Store one note with optional provenance or revision; URLs are not fetched.

ParameterTypeDescription
content *stringExplicit working note; not hidden internal reasoning
request_id *stringStable retry key; reuse only with identical input
session_id *stringID returned by create_session or list_sessions
branch_from_step_id
branch_idstring
kindstringCaller-selected note type; note is an unclassified default
parent_step_id
sources
supersedes_step_id

list_sessions

Find a previous session. Cursor is the last ID from the preceding page. version counts accepted mutations, not notes: it is the value to pass as expected_version, and says nothing about how many steps a session holds. Read the session to count those.

ParameterTypeDescription
cursorstring
limitinteger
searchstring
status

read_session

Read bounded notes and caller-supplied completion; follow cursor for more. Every response names the view it used. Omitting view reads the resume view, or the steps view when kind, step_id or content_offset asks for a filter the resume view cannot apply; asking for both at once is rejected rather than answered in the other shape. The resume view is always active-only, so active_only applies to the steps view. In steps view, sequence is a database-wide pagination token, not a session count; use branch_id and position for numbering. Comple…

ParameterTypeDescription
session_id *stringID returned by create_session or list_sessions
active_onlyboolean
content_charsinteger
content_offset
cursorinteger
include_completion
kind
limitinteger
max_charsinteger
step_id
viewOmitted selects resume, or steps when a filter is given

finalize_session

Store an explicit completion at the expected version; infer no conclusions.

ParameterTypeDescription
completion *
expected_version *integer
request_id *stringStable retry key; reuse only with identical input
session_id *stringID returned by create_session or list_sessions

delete_session

Delete this session's active DB records; backups/exports survive. No secure erasure.

ParameterTypeDescription
expected_version *integer
request_id *stringStable retry key; reuse only with identical input
session_id *stringID returned by create_session or list_sessions

process_thought

Record one thought in the sequential-thinking audit trail. Validates and stores the thought (stage name, revision/branch consistency, per-line uniqueness of thought_number), then returns structural analysis: stage-order warnings, thoughts that are lexically related to this one, and progress counters. This does not evaluate, critique, or improve the reasoning — it only records and structures it. Args: thought: The content of the thought total_thoughts: The total expected thoughts in the sequence next_thought_needed: Whether more thoughts are n…

ParameterTypeDescription
next_thought_needed *boolean
stage *stringLegacy stage, case-insensitive: Problem Definition, Research, Analysis, Synthesis, Conclusion
thought *stringExplicit working note
total_thoughts *integerLegacy estimate of total steps
assumptions_challenged
axioms_used
branch_from_thought
branch_id
is_revisionboolean
revises_thought_number
tags
thought_number

generate_summary

Summarize the recorded thinking process. Deprecated legacy workflow; prefer read_session for explicit sessions. Includes the actual thought content (excerpts per stage), aggregated challenged assumptions, open branches without a concluding thought, and revision chains, plus structural statistics (stage/branch/tag counts, stage coverage). This is a deterministic extraction from the recorded thoughts — it does not generate new reasoning or judge its quality. Returns: The summary (content + structure sections), or a "no thoughts recorded yet" message.

ParameterTypeDescription
max_charsinteger

clear_history

Delete all active database records in the local legacy session. Exports and backups remain; this is not secure erasure. Export first if needed. Returns: Status message with the number of thoughts that were cleared.

export_session

Export session_id to a file; omitted ID selects deprecated legacy format. Explicit sessions preserve IDs, branches, sources and completion in a worklog-session archive. Retry keys are excluded; use snapshots for full backup. file_path is confined to the storage directory's exports/ subdirectory — absolute paths and '..' traversal outside it are rejected. Args: file_path: Destination path, resolved against the exports/ directory Returns: Status message with the exported thought count.

ParameterTypeDescription
file_path *string
session_idstring

import_session

Import a session archive with its matching session_id; existing IDs conflict. Omitted session_id uses deprecated legacy import, REPLACING legacy history. Explicit archives preserve IDs and do not restore retry keys. file_path is confined to the storage directory's exports/ subdirectory — absolute paths and '..' traversal outside it are rejected. Args: file_path: Source path, resolved against the exports/ directory Returns: Status message with the imported thought count.

ParameterTypeDescription
file_path *string
session_idstring