Coding Thinker MCP
Applies the planned edits to files in the user's local git repository and commits the result, while detecting detached HEAD, in-progress rebase/merge states, pre-commit hook failures, and surfacing revert instructions such as git revert HEAD.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Coding Thinker MCP fix the dark mode text contrast in Header.tsx"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Coding Thinker MCP
AI Code Surgeon: Think → Edit → Verify → Commit
The only MCP that combines reasoning, surgical diffs, syntax validation, and git commits in one workflow.
🎯 What This Does
Traditional AI code editing: Copy → Paste → Format → Lint → Git commit → 10 minutes wasted.
mcp-coding-thinker: "Fix dark mode" → 90 seconds → ✅ Committed with perfect style.
The Magic Workflow
Analyze: Learns your code style (quotes, indentation, patterns)
Think: Records reasoning steps for transparency
Plan: Creates surgical line-by-line diffs with fuzzy matching
Verify: Validates syntax, checks for conflicts, generates lintable preview
Execute: Applies changes, auto-formats with Prettier, backs up originals, commits to git
Why It's Different
Most AI code tools either just suggest changes OR execute them. This does both with full reasoning transparency:
Code-aware thinking: Records WHY each change is made, not just WHAT
Surgical precision: Line-by-line diffs with overlap handling, not full-file replacements
Zero manual work: Auto-formats + syntax checks + git commits in one flow
Always safe: Backups every file, validates before writing, handles git edge cases
Style-aware: Learns your existing code patterns and enforces them automatically
Related MCP server: Git Commit MCP Server
🚀 Installation
Claude Desktop (One Command)
claude mcp add coding-thinker -- npx -y mcp-coding-thinkerGoogle Gemini (One Command)
gemini mcp add coding-thinker npx -y mcp-coding-thinker🔧 Manual Setup for Claude Desktop
macOS
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"coding-thinker": {
"command": "npx",
"args": ["-y", "mcp-coding-thinker"]
}
}
}Windows
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"coding-thinker": {
"command": "npx",
"args": ["-y", "mcp-coding-thinker"]
}
}
}Linux
Edit ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"coding-thinker": {
"command": "npx",
"args": ["-y", "mcp-coding-thinker"]
}
}
}Restart Claude Desktop after saving.
🔧 Manual Setup for Google Gemini
For Google AI Studio Desktop (if supported)
Create/edit MCP config file (location varies by OS):
macOS/Linux:
~/.config/gemini/mcp_config.jsonWindows:
%APPDATA%\Gemini\mcp_config.json
{
"mcpServers": {
"coding-thinker": {
"command": "npx",
"args": ["-y", "mcp-coding-thinker"]
}
}
}🔧 Using with Any MCP-Compatible Client
# Start the server with npx
npx -y mcp-coding-thinker
# Or test with MCP Inspector
npx @modelcontextprotocol/inspector npx -y mcp-coding-thinker📖 Usage Example
Prompt to AI (Claude/Gemini):
Use coding-thinker to fix the dark mode color contrast in Header.tsxWhat Happens:
Analyzes
Header.tsx→ Detects React + Tailwind + 2-space indentRecords thoughts: "Dark text on dark bg detected at line 42"
Creates diff: Change
text-gray-900→text-gray-100Validates syntax ✅
Formats with Prettier ✅
Backs up to
.mcp-backups/✅Commits:
"mcp-coding-thinker: Fix dark mode contrast"✅
Result: Production-ready commit in 90 seconds.
🛠️ How It Works
4 Tools
1. analyze_context
Input: Files + request
Output: Session ID, style profile, issues, research queries
Use: Always call first
2. think_aloud
Input: Session ID + reasoning step
Output: Recorded thought + depth score
Use: Show incremental reasoning (5+ steps = excellent quality)
3. plan_and_verify
Input: Session ID + diffs (line-by-line changes)
Output: Validation results, safety score, lintable preview
Use: Submit exact diffs for verification
4. execute_and_review
Input: Session ID + approval
Output: Execution status, git operations, mirror critique prompt
Use: Apply changes with full safety net
🔒 Safety Features
Git Protection
✅ Detects detached HEAD, rebase/merge in progress
✅ Handles pre-commit hook failures gracefully
✅ Provides revert instructions:
git revert HEAD
Backup System
✅ Copies originals to
.mcp-backups/{session-id}/✅ Preserves directory structure
✅ 1-hour session TTL (auto-cleanup)
Validation
✅ Syntax check before formatting (no silent fails)
✅ Fuzzy diff matching (±2 lines tolerance)
✅ Overlapping diff detection with unified patching
✅ 80% similarity threshold for stale diffs
✅ Size limits on diffs (prevents memory issues)
✅ Cross-platform line ending normalization (CRLF/LF)
✅ Prettier config detection from user's repo
🎓 Best Practices
For AI Models (Claude/Gemini)
Always analyze first: Call
analyze_contextbefore planningThink deeply: 5+
think_aloudcalls = 95%+ confidenceExact diffs: Provide real line numbers from original files
Dry run first: Use
dry_run=trueto preview before executing
For Users
Commit changes before using (or work on feature branch)
Review mirror critique prompt for architectural insights
Use research queries to verify best practices
Check
.mcp-backups/if rollback needed
🔧 Development
git clone https://github.com/awssat/mcp-coding-thinker.git
cd mcp-coding-thinker
npm install
npm run build
# Test with MCP Inspector
npm run inspector🤝 Contributing
PRs welcome! Priority areas:
Additional language support
Test coverage
Performance optimizations
📜 License
MIT © 2026
Available Tools
4 toolsanalyze_contextA
Step 1: Analyze code files and understand the request.
Returns:
session_id: Use in subsequent tool calls
style_profile: Auto-detected code style (will enforce on edits)
issues: Pre-existing problems (including git status)
research_queries: Suggested searches for best practices
git_status: Repository state and commit readiness
Call this FIRST before any other tool.
Inputs: files (required), request (required).
execute_and_reviewA
Step 4: Execute changes with full safety net.
Process:
Normalize line endings (CRLF → LF)
Apply diffs using unified patching (handles overlaps)
Validate syntax and run ESLint/TypeScript if available
Auto-format with user's prettier config (or detected style)
Back up originals to .mcp-backups/
Write changes to disk
Check git state (detached HEAD, rebase, hooks)
Stage & commit (with graceful hook failure handling)
Return mirror critique prompt for AI review
Set approved=true to proceed. Use dry_run=true to preview without writing.
Mirror critique: The response includes a prompt with modified code that you should analyze to provide honest architectural review (not automated).
Inputs: session_id (required), dry_run, approved.
plan_and_verifyA
Step 3: Submit implementation plan with ACTUAL DIFFS.
You MUST provide exact line-by-line changes. The server will:
Validate diffs with fuzzy matching (±2 lines tolerance)
Check size limits (max 50000 chars per diff)
Detect overlapping edits and handle them correctly
Check for conflicts and stale diffs
Generate lintable code preview
Calculate safety score
CRITICAL:
Provide real diffs with exact line numbers from original files
Multiple diffs to same file are supported (server handles overlaps)
Before content should match closely (60%+ similarity)
Keep diffs under 50000 characters
Inputs: diffs (required), phases (required), session_id (required).
think_aloudC
Step 2: Record code-specific reasoning steps.
Example thoughts:
"Component uses hooks, will use useState"
"Detected dark text on dark bg at line 42, will fix with text-gray-100"
"Need to preserve existing event handlers"
"User prefers single-file changes based on style"
Call multiple times to show incremental reasoning. More thoughts (5+) = higher confidence scores and better mirror critique.
Inputs: step (required), thought (required), needs_more (required), session_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a clear, sequential stage of a coding workflow: context analysis, reasoning capture, plan submission, and execution/review. The 'Step 1-4' labeling and explicit 'call this first' guidance remove any ambiguity about ordering or purpose.
All names use snake_case, which is consistent, but the structural patterns vary: analyze_context (verb_noun), think_aloud (verb_adverb), plan_and_verify and execute_and_review (verb_and_verb). The deviations are minor and readable, so it is mostly predictable.
Four tools is well-scoped for a staged coding-assistant pipeline; each stage is necessary and no tool appears redundant. The count is small but every tool earns its place.
The surface covers the full analyze-reason-plan-execute lifecycle, including diff validation, backups, linting, and commit steps. Minor gaps exist around rollback/backup restoration and explicit session inspection, but agents can likely work around these with the existing dry_run and backup mechanisms.
Maintenance
Related MCP Connectors
AI that works, like you: in your own files, with every change signed.
Long-term, rotatable project memory and pre-write checks for AI coding agents.
Read-only AI coding tools for change verification, release readiness, capacity, and guidance.
Git collaboration for AI agents and people: tasks, hand-offs, reviews, teams, shared memory.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides code manipulation, execution, and version control capabilities. It allows AI assistants to read, write, and execute code while maintaining a history of changes.9MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to create conventional Git commits, update changelogs, and optionally push changes to remote repositories.22MIT
- FlicenseNot gradedqualityCmaintenanceProvides AI clients with safe, structured access to local filesystem, Git repositories, and project contexts, featuring file operations, git status/diff, project management, and built-in code review/bug analysis prompts.-
- AlicenseAqualityBmaintenanceEnables AI assistants to perform Git workflows with semantic commit messages, pre-PR secret audits, conflict resolution, and release changelog generation.5MIT