Chain of Draft Thinking
MCP 초안 서버 🧠
체인 오브 드래프트 서버(Chain of Draft Server)는 개발자가 사고와 디자인을 체계적이고 반복적으로 개선하여 더 나은 의사 결정을 내릴 수 있도록 지원하는 강력한 AI 기반 도구입니다. 널리 사용되는 AI 에이전트와 완벽하게 통합되며 추론, API 설계, 아키텍처 결정, 코드 검토 및 구현 계획에 대한 체계적인 접근 방식을 제공합니다.
🌟 특징
핵심 역량
반복적 추론 : 초안 프로토콜 체인을 통한 체계적인 개선
사고 이력 : 추론 반복을 추적하고 관리합니다.
분기 지원 : 특정 추론 단계에 대한 검토에 집중
TypeScript 지원 : Zod 검증을 통한 전체 TypeScript 구현
오류 처리 : 포괄적인 오류 유형 및 처리
실시간 로깅 : 내장된 디버깅 및 모니터링 시스템
Related MCP server: Chain of Draft Prompt Tool
🚀 시작하기
필수 조건
노드.js >= 16.0.0
npm >= 8.0.0
설치
저장소를 복제합니다.
지엑스피1
종속성 설치:
npm install구성
initialize.ts 에서 간단한 서버 구성:
const serverConfig = {
name: "chain-of-draft",
version: "1.0.0",
}💡 사용 예시
초안 프로토콜 체인
const thoughtData = {
reasoning_chain: ["Initial analysis of the problem"],
next_step_needed: true,
draft_number: 1,
total_drafts: 3,
is_critique: true,
critique_focus: "logical_consistency"
};🛠️ 개발
프로젝트 구조
src/
├── tools/ # Specialized Tools
│ ├── chainOfDraft/ # Core Protocol
│ └── index.ts / # Entry Point
├── utils/ # Utilities
└── index.ts # Entry Point개발 서버 시작
npm run dev❓ 자주 묻는 질문
Chain of Draft 프로토콜은 어떻게 작동하나요?
이 프로토콜은 반복적인 초안 작성과 집중적인 비판을 통해 사고방식을 체계적으로 개선할 수 있도록 안내합니다.
비판의 크기를 사용자 정의할 수 있나요?
네! 각 도구는 사용자의 특정 요구 사항에 맞춰 맞춤형 비평을 지원합니다.
얼마나 많은 초안을 계획해야 합니까?
대부분의 작업에는 3~5개의 초안을 권장하지만, 복잡성에 따라 조정할 수 있습니다.
🤝 기여하기
기여를 환영합니다! 기여 가이드라인을 확인해 주세요.
👥 커뮤니티 및 지원
GitHub 이슈 - 버그 보고 또는 기능 제안
풀 리퀘스트 - 기여 제출
문서 - 자세한 문서를 확인하세요
📝 라이센스
MIT 라이센스 - 자세한 내용은 LICENSE 파일을 참조하세요.
🙏 감사의 말
기여자와 초기 채택자에게 감사드립니다.
MCP 커뮤니티에 특별 감사드립니다
체계적인 추론 방법론에서 영감을 받음
@bsmi021님이 🧠로 만들었습니다
Available Tools
1 toolchain-of-draftA
# Chain of Draft (CoD): Systematic Reasoning Tool⚠️ REQUIRED PARAMETERS - ALL MUST BE PROVIDED:
reasoning_chain: string[] - At least one reasoning step
next_step_needed: boolean - Whether another iteration is needed
draft_number: number - Current draft number (≥ 1)
total_drafts: number - Total planned drafts (≥ draft_number)
Optional parameters only required based on context:
is_critique?: boolean - If true, critique_focus is required
critique_focus?: string - Required when is_critique=true
revision_instructions?: string - Recommended for revision steps
step_to_review?: number - Specific step index to review
is_final_draft?: boolean - Marks final iteration
Purpose:
Enhances problem-solving through structured, iterative critique and revision.
Chain of Draft is an advanced reasoning tool that enhances problem-solving through structured, iterative critique and revision. Unlike traditional reasoning approaches, CoD mimics the human drafting process to improve clarity, accuracy, and robustness of conclusions.
When to Use This Tool:
Complex Problem-Solving: Tasks requiring detailed, multi-step analysis with high accuracy demands
Critical Reasoning: Problems where logical flow and consistency are essential
Error-Prone Scenarios: Questions where initial reasoning might contain mistakes or oversight
Multi-Perspective Analysis: Cases benefiting from examining a problem from different angles
Self-Correction Needs: When validation and refinement of initial thoughts are crucial
Detailed Solutions: Tasks requiring comprehensive explanations with supporting evidence
Mathematical or Logical Puzzles: Problems with potential for calculation errors or logical gaps
Nuanced Analysis: Situations with subtle distinctions that might be missed in a single pass
Key Capabilities:
Iterative Improvement: Systematically refines reasoning through multiple drafts
Self-Critique: Critically examines previous reasoning to identify flaws and opportunities
Focused Revision: Targets specific aspects of reasoning in each iteration
Perspective Flexibility: Can adopt different analytical viewpoints during critique
Progressive Refinement: Builds toward optimal solutions through controlled iterations
Context Preservation: Maintains understanding across multiple drafts and revisions
Adaptable Depth: Adjusts the number of iterations based on problem complexity
Targeted Improvements: Addresses specific weaknesses in each revision cycle
Parameters Explained:
reasoning_chain: Array of strings representing your current reasoning steps. Each element should contain a clear, complete thought that contributes to the overall analysis.
next_step_needed: Boolean flag indicating whether additional critique or revision is required. Set to true until the final, refined reasoning chain is complete.
draft_number: Integer tracking the current iteration (starting from 1). Increments with each critique or revision.
total_drafts: Estimated number of drafts needed for completion. This can be adjusted as the solution evolves.
is_critique: Boolean indicating the current mode:
true = Evaluating previous reasoning
false = Implementing revisions
critique_focus: (Required when is_critique=true) Specific aspect being evaluated, such as:
"logical_consistency": Checking for contradictions or flaws in reasoning
"factual_accuracy": Verifying correctness of facts and calculations
"completeness": Ensuring all relevant aspects are considered
"clarity": Evaluating how understandable the reasoning is
"relevance": Assessing if reasoning directly addresses the problem
revision_instructions: (Required when is_critique=false) Detailed guidance for improving the reasoning based on the preceding critique.
step_to_review: (Optional) Zero-based index of the specific reasoning step being critiqued or revised. When omitted, applies to the entire chain.
is_final_draft: (Optional) Boolean indicating whether this is the final iteration of reasoning.
Best Practice Workflow:
Start with Initial Draft: Begin with your first-pass reasoning and set a reasonable total_drafts (typically 3-5).
Alternate Critique and Revision: Use is_critique=true to evaluate reasoning, then is_critique=false to implement improvements.
Focus Each Critique: Choose a specific critique_focus for each evaluation cycle rather than attempting to address everything at once.
Provide Detailed Revision Guidance: Include specific, actionable revision_instructions based on each critique.
Target Specific Steps When Needed: Use step_to_review to focus on particular reasoning steps that need improvement.
Adjust Total Drafts As Needed: Modify total_drafts based on problem complexity and progress.
Mark Completion Appropriately: Set next_step_needed=false only when the reasoning chain is complete and satisfactory.
Aim for Progressive Improvement: Each iteration should measurably improve the reasoning quality.
Example Application:
Initial Draft: First-pass reasoning about a complex problem
Critique #1: Focus on logical consistency and identify contradictions
Revision #1: Address logical flaws found in the critique
Critique #2: Focus on completeness and identify missing considerations
Revision #2: Incorporate overlooked aspects and strengthen reasoning
Final Critique: Holistic review of clarity and relevance
Final Revision: Refine presentation and ensure direct addressing of the problem
Chain of Draft is particularly effective when complex reasoning must be broken down into clear steps, analyzed from multiple perspectives, and refined through systematic critique. By mimicking the human drafting process, it produces more robust and accurate reasoning than single-pass approaches.
Inputs: draft_number (required), new_reasoning_steps (required), next_step_needed (required), reasoning_chain (required), +6 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With only one tool, there is no possibility of confusion or overlap between tools. The tool has a single, clearly defined purpose: structured iterative reasoning with critique and revision cycles. This eliminates any ambiguity in tool selection entirely.
A single tool inherently has perfect naming consistency, as there are no other tools to compare it against. The tool name 'chain-of-draft' follows a clear, descriptive kebab-case pattern that matches the server name, establishing a coherent identity without any naming conflicts or variations.
A single tool is generally too few for most server purposes, as it limits functionality and forces all operations through one interface. While this tool is complex and multi-faceted, a server with only one tool often feels thin and may not provide adequate coverage for varied tasks, suggesting a mismatch between the tool's depth and the server's scope.
The tool comprehensively covers the iterative reasoning process with parameters for drafts, critiques, and revisions, but as a single-tool server, it inherently lacks breadth. There are no obvious gaps within its defined domain of structured reasoning, but the server's overall surface is limited to this one function, which may not suffice for broader problem-solving needs.
Maintenance
Related MCP Connectors
Agent-to-agent reasoning-as-a-service: chain-of-thought, analysis, and decision support.
A design director for coding agents: it picks, validates and refuses before you build.
One shared project memory for your AI coding tools: recall, save and brief decisions anywhere.
Shared control plane for AI coding agents — tasks, memory, decisions, file locks. 12 tools.
Related MCP Servers
- AlicenseCqualityAmaintenanceTransform your codebase into professional architectural decision records with intelligent AI analysis63957 npm35MIT
- AlicenseNot gradedqualityDmaintenanceTransforms prompts into Chain of Draft (CoD) or Chain of Thought (CoT) format to enhance LLM reasoning quality while reducing token usage by up to 92.4%, supporting multiple LLM providers including Claude, GPT, Ollama, and local models.29 npm19MIT
- AlicenseNot gradedqualityDmaintenancePersistent decision memory and contradiction detection for AI coding agents. Enforces architectural consistency across sessions — the agent cannot code until it loads prior decisions. Human resolves conflicts on a dashboard or in chat.1MIT
- AlicenseAqualityDmaintenanceA structured, persistent reasoning workspace for AI. 20 tools for thought chains, branching, revision, search, tagging, and SQLite session persistence that survives context window resets and server restarts.20108 npm3MIT