bsmi021_mcp_chain_of_draft_server

bsmi021_mcp_chain_of_draft_server

by bsmi021

License

Skip to content

You signed in with another tab or window. Reload
to refresh your session. You signed out in another tab or window. Reload
to refresh your session. You switched accounts on another tab or window. Reload
to refresh your session. Dismiss alert

bsmi021 / mcp-chain-of-draft-server Public

Chain of Draft Server is a powerful AI-driven tool that helps developers make better decisions through systematic, iterative refinement of thoughts and designs. It integrates seamlessly with popular AI agents and provides a structured approach to reasoning, API design, architecture decisions, code reviews, and implementation planning.

License

MIT license

7 stars
1 fork
Branches
Tags
Activity

Star

Notifications
You must be signed in to change notification settings

bsmi021/mcp-chain-of-draft-server

main

3 Branches
0 Tags


Go to file

Code

Folders and files

| Name | | Name | Last commit message | Last commit date |
| --- | --- | --- | --- |
| Latest commit
-------------

bsmi021
bsmi021

Merge pull request
#1
from bsmi021/master

Mar 13, 2025

aecef39
Β Β·Β Mar 13, 2025

History
-------

8 Commits

| | |
| .github/workflows | | .github/workflows | Create npm-publish.yml | Mar 13, 2025 |
| docs | | docs | Add initial project structure and core functionality | Mar 13, 2025 |
| src | | src | Bump version to 1.0.0 and clean up tool implementations | Mar 13, 2025 |
| .gitignore | | .gitignore | Bump version to 1.0.0 and clean up tool implementations | Mar 13, 2025 |
| LICENSE | | LICENSE | Create LICENSE | Mar 13, 2025 |
| README.md | | README.md | Bump version to 1.0.0 and clean up tool implementations | Mar 13, 2025 |
| package-lock.json | | package-lock.json | Add initial project structure and core functionality | Mar 13, 2025 |
| package.json | | package.json | Bump version to 1.0.0 and clean up tool implementations | Mar 13, 2025 |
| tsconfig.json | | tsconfig.json | Add initial project structure and core functionality | Mar 13, 2025 |
| View all files | | |

Repository files navigation

MCP Chain of Draft Server 🧠

Chain of Draft Server is a powerful AI-driven tool that helps developers make better decisions through systematic, iterative refinement of thoughts and designs. It integrates seamlessly with popular AI agents and provides a structured approach to reasoning, API design, architecture decisions, code reviews, and implementation planning.

🌟 Features

Core Capabilities

  • Iterative Reasoning: Systematic improvement through the Chain of Draft protocol
  • Thought History: Track and manage reasoning iterations
  • Branching Support: Focus reviews on specific reasoning steps
  • TypeScript Support: Full TypeScript implementation with Zod validation
  • Error Handling: Comprehensive error types and handling
  • Real-time Logging: Built-in debugging and monitoring system

πŸš€ Getting Started

Prerequisites

  • Node.js >= 16.0.0
  • npm >= 8.0.0

Installation

  1. Clone the repository:
git clone https://github.com/bsmi021/mcp-chain-of-draft-server.git
cd mcp-chain-of-draft-server
  1. Install dependencies:
npm install

Configuration

Simple server configuration in initialize.ts:

const serverConfig = {
    name: "chain-of-draft",
    version: "1.0.0",
}

πŸ’‘ Usage Examples

Chain of Draft Protocol

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"
};

πŸ› οΈ Development

Project Structure

src/
β”œβ”€β”€ tools/                          # Specialized Tools
β”‚   β”œβ”€β”€ chainOfDraft/              # Core Protocol
β”‚   └── index.ts / # Entry Point
β”œβ”€β”€ utils/                         # Utilities
└── index.ts                      # Entry Point

Starting Development Server

npm run dev

❓ FAQ

How does the Chain of Draft protocol work?

The protocol guides you through systematic improvement of your thinking through iterative drafts and focused critiques.

Can I customize the critique dimensions?

Yes! Each tool supports custom critique focuses tailored to your specific needs.

How many drafts should I plan for?

We recommend 3-5 drafts for most tasks, but you can adjust based on complexity.

🀝 Contributing

We welcome contributions! Please check our Contributing Guidelines
.

πŸ‘₯ Community & Support

  • GitHub Issues - Report bugs or suggest features
  • Pull Requests - Submit your contributions
  • Documentation - Check our detailed docs

πŸ“ License

MIT License - see the LICENSE
file for details.

πŸ™ Acknowledgments

  • Thanks to our contributors and early adopters
  • Special thanks to the MCP community
  • Inspired by systematic reasoning methodologies

Made with 🧠 by @bsmi021

About

Chain of Draft Server is a powerful AI-driven tool that helps developers make better decisions through systematic, iterative refinement of thoughts and designs. It integrates seamlessly with popular AI agents and provides a structured approach to reasoning, API design, architecture decisions, code reviews, and implementation planning.

Topics

tools
ai
server
cod
mcp
ai-tools
claude-ai
model-context-protocol
mcp-server
modelcontextprotocol
chainofdraft
chain-of-draft

Resources

Readme

License

MIT license

Activity

Stars

7 stars

Watchers

1 watching

Forks

1 fork

Report repository

Releases


No releases published

Packages 0


No packages published

Languages

You can’t perform that action at this time.

Features & Capabilities

Categories
mcp_server model_context_protocol

Implementation Details

Stats

0 Views
7 GitHub Stars

Repository Info

bsmi021 Organization

Similar MCP Servers

continuedev_continue by continuedev
25049
21423
9300