mcp-chain-of-draft-server
Version:
A Model Context Protocol server which provides Chain of Draft style thinking
51 lines (50 loc) • 1.49 kB
TypeScript
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
export interface Risk {
description: string;
mitigation: string;
impact: "low" | "medium" | "high";
}
export interface Phase {
name: string;
description: string;
tasks: string[];
estimated_effort: number;
risks: Risk[];
dependencies: string[];
}
export interface ImplementationApproach {
name: string;
description: string;
phases: Phase[];
pros: string[];
cons: string[];
}
export interface Dependency {
name: string;
description: string;
type: "feature" | "component" | "system" | "external" | "other";
status: "not_started" | "in_progress" | "completed" | "blocked";
}
export interface Constraint {
category: "time" | "resource" | "technical" | "organizational" | "other";
description: string;
impact: "low" | "medium" | "high";
}
export interface ImplementationStrategyData {
strategy_id: string;
feature_name: string;
feature_description: string;
implementation_approaches: ImplementationApproach[];
dependencies: Dependency[];
constraints: Constraint[];
success_criteria: string[];
draft_number: number;
total_drafts: number;
next_step_needed: boolean;
selected_approach?: string;
is_critique?: boolean;
critique_focus?: string;
revision_instructions?: string;
is_final_draft?: boolean;
}
export declare const implementationStrategyPlannerTool: (server: McpServer) => void;