This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This project was originally forked from the Sequential Thinking MCP Server but has been renamed to Code Reasoning MCP Server to better reflect its specialized focus on programming tasks. The tool has been renamed from "sequentialthinking" to "code-reasoning" for consistency. All configuration must use "code-reasoning" as the key - the "sequential-thinking" configuration key is not supported. The class previously named "SequentialThinkingServer" has been renamed to "CodeReasoningServer" for consistency.
- Build:
npm run build - Start:
npm run start,npm run debug - Test:
npm run test(runs ESLint) - Lint:
npm run lint,npm run lint:fix - Format:
npm run format,npm run format:check - Validation:
npm run validate(runs format, lint:fix, and build)
- Parameters: snake_case (e.g.,
thought_number, notthoughtNumber) - Imports: ES Modules with .js extension
- Types: Strict TypeScript with explicit types; avoid
anywhere possible - Error Handling: Use structured logging with Logger class
- Logging: Use logger.error/info/debug instead of console.log
- Formatting: Prettier with singleQuotes, tabWidth: 2, printWidth: 100
- Variables: Use descriptive names, camelCase for variables/functions
Always run npm run lint and npm run format before committing changes.
- Main documentation: README.md
- Detailed examples: docs/examples.md
- Configuration options: docs/configuration.md
- Prompt system: docs/prompts.md
- Testing framework: docs/testing.md