UNPKG

mcp-chain-of-draft-server

Version:

A Model Context Protocol server which provides Chain of Draft style thinking

49 lines (48 loc) 1.36 kB
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; export interface Parameter { name: string; location: "path" | "query" | "header" | "cookie"; required: boolean; type: string; description: string; } export interface RequestBody { content_type: string; schema: Record<string, any>; example: string; } export interface Response { status_code: number; description: string; content_type: string; schema: Record<string, any>; example: string; } export interface Endpoint { path: string; method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS" | "HEAD"; description: string; parameters: Parameter[]; request_body?: RequestBody; responses: Response[]; } export interface AuthRequirement { type: "none" | "basic" | "bearer" | "api_key" | "oauth2" | "custom"; description: string; } export interface APIBlueprintData { api_id: string; api_name: string; api_version: string; description: string; endpoints: Endpoint[]; auth_requirements: AuthRequirement; draft_number: number; total_drafts: number; next_step_needed: boolean; is_critique?: boolean; critique_focus?: string; revision_instructions?: string; is_final_draft?: boolean; } export declare const apiBlueprintDesignerTool: (server: McpServer) => void;