# plugin_seqthink — Sequential Thinking (SCORPIOX BOT plugin) `seqthink` is a clean-room, zero-dependency, pure C99 **MCP connector plugin** for [SCORPIOX BOT](https://bot.scorpiox.net). One small static binary serves the `sequentialthinking` tool over **MCP JSON-RPC 2.0 stdio** and ships a bot-themed **thought-chain viewer**, so structured step-by-step reasoning, revisions and branches made by an agent are inspectable on the node. It is a clean-room C port of the behaviour of the reference `modelcontextprotocol/servers` **sequential-thinking** server: the same parameter validation and error strings, the same "raise `totalThoughts` when `thoughtNumber` exceeds it" rule, the same per-connection history with a `MAX_THOUGHT_HISTORY` cap (oldest evicted, its branch shrunk with it, an emptied branch dropped), the same branch semantics (a branch exists only once a thought carries **both** `branchFromThought` and `branchId`), and the same five-field result. | | | |---|---| | Slug | `seqthink` | | Binary | `plugin_seqthink` (`plugin_seqthink.exe` on Windows) | | `--meta` | `{"name":"seqthink","desc":"Thought chains","kind":"mcp","mcp":true,"daemon":false,"menus":false,"verified":"live"}` | | Category | `devtools` | | Dependencies | none — vendored [yyjson](https://github.com/ibireme/yyjson) (MIT) is compiled in | | Network | **zero outbound requests** (no TLS, no sockets, no `popen`) | | State | its own connector directory only (see below) | ## The four modes of one binary | Mode | Trigger | Contract | |---|---|---| | Discovery | `--meta` or `SX_PLUGIN_META=1` | one line of JSON, exit 0, **never authenticated** | | MCP server | `--mcp` | JSON-RPC 2.0 over stdio: `initialize`, `notifications/*`, `ping`, `tools/list`, `tools/call` | | Node API | `?action=...` or a POST JSON body | `Content-Type: application/json`, behind `require_node_auth()` | | Viewer UI | `GET` (default) | responsive dark/light HTML (`?embed=1`, `&theme=`, `sx-theme` handoff), zero `