@noanswer/context-compose
Version:
Orchestrate complex AI interactions with Context Compose. A powerful CLI and server for building, validating, and managing context for large language models using the Model Context Protocol (MCP).
25 lines (24 loc) • 588 B
TypeScript
import type { z } from 'zod';
export interface MCPTool {
name: string;
description: string;
inputSchema: z.ZodSchema;
handler: (_args: unknown) => Promise<unknown>;
}
export interface MCPResource {
uri: string;
name: string;
description: string;
mimeType?: string;
}
export interface LogEntry {
timestamp: string;
level: 'info' | 'warn' | 'error' | 'debug';
message: string;
metadata?: Record<string, unknown>;
}
export interface CLICommand {
name: string;
description: string;
action: (..._args: unknown[]) => Promise<void>;
}