sequential-thinking: readOnlyHint and idempotentHint annotations are inaccurate (server is stateful, non-idempotent)
I maintainer di solito rispondono entro 1 giorno
@Jack11111eee ci sta già lavorando.
Dal 30/8/2026.
Valutazione
- Difficoltà
- 1/5
- Tempo stimato
- Meno di un'ora
- Idoneità per principianti
- 88/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- api
Direzione di ricerca
Inizia da src/sequentialthinking/index.ts, nelle annotazioni dello strumento, poi leggi i campi di stato e le mutazioni citati in src/sequentialthinking/lib.ts. Verifica che i metadati corrispondano al comportamento stateful del server e che, una volta completata la modifica, le affermazioni di sola lettura e idempotenza siano accurate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The sequentialthinking tool annotations readOnlyHint: true and idempotentHint: true are inaccurate. The server is stateful and non-idempotent — it maintains per-session thoughtHistory and branches instance state that persists across calls and changes on every invocation.
These annotations were added per #3403's suggestion, but the suggested values were not verified against the server's actual stateful behavior.
Evidence (BETS cycle, 2026-08-30)
Ran a governed Benchmarking/Evaluation/Testing/Standards (BETS) cycle against @modelcontextprotocol/server-sequential-thinking (published npm version, via npx -y). 11 test cases across 4 lanes.
readOnlyHint: true is misleading
The SequentialThinkingServer class (confirmed in src/sequentialthinking/lib.ts on main) holds instance state:
private thoughtHistory: ThoughtData[] = [](line 23-24)private branches: Record<string, ThoughtData[]> = {}(line 25-26)
Each processThought call mutates this state:
this.thoughtHistory.push(input)(line 101) — appends to history on every callthis.branches[input.branchId].push(input)(line 111-112) — appends to branch whenbranchFromThought+branchIdprovided
Observed across 11 calls in one session: thoughtHistoryLength incremented linearly (1, 2, 3, ... 11). The server is not read-only — it accumulates session state with each invocation.
idempotentHint: true is false
A tool is idempotent if repeated calls with the same arguments produce the same result. Calling sequentialthinking twice with identical arguments produces different thoughtHistoryLength values (N, then N+1) and potentially different branches contents. The tool is non-idempotent by definition.
Suggested fix
annotations: {
readOnlyHint: false, // server maintains thoughtHistory and branches state
destructiveHint: false, // accurate — no external side effects
idempotentHint: false, // repeated calls produce different history lengths
openWorldHint: false, // accurate — operates on internal reasoning state
},
Impact
Clients relying on readOnlyHint: true for safety assumptions (e.g., "safe to call in parallel", "no state side effects to roll back") will miss the session-state accumulation. Clients relying on idempotentHint: true for caching/retry (e.g., "safe to retry without checking result") will misbehave — a retried call produces a different history length and may create a duplicate branch entry.
Source confirmed on main
src/sequentialthinking/index.ts lines 201-209 (current main as of 2026-08-30):
annotations: {
readOnlyHint: true, // ← should be false
destructiveHint: false,
idempotentHint: true, // ← should be false
openWorldHint: false,
},
src/sequentialthinking/lib.ts lines 23-26, 101, 111-112 confirm the stateful behavior.
Context
- BETS receipt:
agents/_state/bets/20260830T092705Z_sequential-thinking.json(HUMMBL internal, available on request) - Related: #3403 (added these annotations without verification — the suggestion was accepted as-is)
- Discovered during a governed BETS cycle on the MCP fleet, not via automated scanner
Happy to open a PR if that's preferred.
- Lingua principale
- TypeScript
- Stelle
- 91k
- Fork
- 11.8k
- Merge medio
- 6h 56m
- PR unite (30g)
- 103
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di modelcontextprotocol/servers
-
chore v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
modelcontextprotocol/servers#5115 ·
I maintainer di solito rispondono entro 1 giorno
-
sequentialthinking: the thought box's header row is 2 columns narrower than its borderForse già presa @nightcityblade l’ha presa oggi. Apertabug server-sequentialthinking v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/servers#5108 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug server-git v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
modelcontextprotocol/servers#5107 ·
I maintainer di solito rispondono entro 1 giorno
-
chore v2
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
modelcontextprotocol/servers#5091 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
modelcontextprotocol/servers#5071 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di modelcontextprotocol/servers
Issue simili
-
beginner bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
philaconvalley/website#168 ·
I maintainer di solito rispondono entro 1 giorno
-
bug frontend good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
oss-slu/lrda_mobile#294 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hatchet-dev/hatchet#5179 ·
I maintainer di solito rispondono entro 1 giorno
-
effort:S priority:P2
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno