Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/sequentialthinking/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/usr/bin/env node

import { createRequire } from "node:module";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
import { SequentialThinkingServer } from './lib.js';

const require = createRequire(import.meta.url);
const { version } = require('./package.json');

/** Safe boolean coercion that correctly handles string "false" */
const coercedBoolean = z.preprocess((val) => {
if (typeof val === "boolean") return val;
Expand All @@ -17,7 +21,7 @@ const coercedBoolean = z.preprocess((val) => {

const server = new McpServer({
name: "sequential-thinking-server",
version: "0.2.0",
version,
});

const thinkingServer = new SequentialThinkingServer();
Expand Down