Skip to main content
Glama
MUSE-CODE-SPACE

Vibe Coding Documentation MCP (MUSE)

schemas.d.ts24.3 kB
import { z } from 'zod'; /** * Zod schemas for input validation * Aligned with existing type definitions in types/index.ts */ export declare const CodeBlockSchema: z.ZodObject<{ language: z.ZodDefault<z.ZodString>; code: z.ZodString; filename: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { code: string; language: string; filename?: string | undefined; description?: string | undefined; }, { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }>; export declare const DesignDecisionSchema: z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; category: z.ZodDefault<z.ZodEnum<["architecture", "library", "pattern", "implementation", "other"]>>; timestamp: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { timestamp: string; description: string; id: string; title: string; rationale: string; category: "architecture" | "library" | "pattern" | "implementation" | "other"; alternatives?: string[] | undefined; }, { description: string; id: string; title: string; rationale: string; timestamp?: string | undefined; alternatives?: string[] | undefined; category?: "architecture" | "library" | "pattern" | "implementation" | "other" | undefined; }>; export declare const CodeContextSchema: z.ZodObject<{ sessionId: z.ZodString; timestamp: z.ZodString; codeBlocks: z.ZodArray<z.ZodObject<{ language: z.ZodDefault<z.ZodString>; code: z.ZodString; filename: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { code: string; language: string; filename?: string | undefined; description?: string | undefined; }, { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }>, "many">; conversationSummary: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { timestamp: string; sessionId: string; codeBlocks: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }, { timestamp: string; sessionId: string; codeBlocks: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }>; export declare const SessionLogOptionsSchema: z.ZodObject<{ logType: z.ZodDefault<z.ZodEnum<["daily", "session"]>>; outputPath: z.ZodOptional<z.ZodString>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["markdown", "json"]>>>; }, "strip", z.ZodTypeAny, { logType: "daily" | "session"; format: "markdown" | "json"; outputPath?: string | undefined; }, { logType?: "daily" | "session" | undefined; outputPath?: string | undefined; format?: "markdown" | "json" | undefined; }>; export declare const CollectCodeContextSchema: z.ZodObject<{ codeBlocks: z.ZodOptional<z.ZodArray<z.ZodObject<{ language: z.ZodDefault<z.ZodString>; code: z.ZodString; filename: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { code: string; language: string; filename?: string | undefined; description?: string | undefined; }, { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }>, "many">>; rawText: z.ZodOptional<z.ZodString>; conversationSummary: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; autoDetectLanguage: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; removeDuplicates: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; includeStats: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; }, "strip", z.ZodTypeAny, { conversationSummary: string; autoDetectLanguage: boolean; removeDuplicates: boolean; includeStats: boolean; codeBlocks?: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[] | undefined; tags?: string[] | undefined; rawText?: string | undefined; }, { conversationSummary: string; codeBlocks?: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[] | undefined; tags?: string[] | undefined; rawText?: string | undefined; autoDetectLanguage?: boolean | undefined; removeDuplicates?: boolean | undefined; includeStats?: boolean | undefined; }>; export declare const SummarizeDesignDecisionsSchema: z.ZodObject<{ conversationLog: z.ZodString; language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["en", "ko"]>>>; }, "strip", z.ZodTypeAny, { language: "en" | "ko"; conversationLog: string; }, { conversationLog: string; language?: "en" | "ko" | undefined; }>; export declare const GenerateDevDocumentSchema: z.ZodObject<{ documentType: z.ZodEnum<["README", "DESIGN", "TUTORIAL", "CHANGELOG", "API", "ARCHITECTURE"]>; title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; projectName: z.ZodOptional<z.ZodString>; author: z.ZodOptional<z.ZodString>; version: z.ZodOptional<z.ZodString>; license: z.ZodOptional<z.ZodString>; language: z.ZodDefault<z.ZodOptional<z.ZodEnum<["en", "ko"]>>>; features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; installation: z.ZodOptional<z.ZodObject<{ requirements: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; steps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { requirements?: string[] | undefined; steps?: string[] | undefined; }, { requirements?: string[] | undefined; steps?: string[] | undefined; }>>; apiReference: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; description: z.ZodString; params: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; returns: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; description: string; params?: string[] | undefined; returns?: string | undefined; }, { name: string; description: string; params?: string[] | undefined; returns?: string | undefined; }>, "many">>; designDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; category: z.ZodDefault<z.ZodEnum<["architecture", "library", "pattern", "implementation", "other"]>>; timestamp: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { timestamp: string; description: string; id: string; title: string; rationale: string; category: "architecture" | "library" | "pattern" | "implementation" | "other"; alternatives?: string[] | undefined; }, { description: string; id: string; title: string; rationale: string; timestamp?: string | undefined; alternatives?: string[] | undefined; category?: "architecture" | "library" | "pattern" | "implementation" | "other" | undefined; }>, "many">>; codeContexts: z.ZodOptional<z.ZodArray<z.ZodObject<{ sessionId: z.ZodString; timestamp: z.ZodString; codeBlocks: z.ZodArray<z.ZodObject<{ language: z.ZodDefault<z.ZodString>; code: z.ZodString; filename: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { code: string; language: string; filename?: string | undefined; description?: string | undefined; }, { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }>, "many">; conversationSummary: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { timestamp: string; sessionId: string; codeBlocks: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }, { timestamp: string; sessionId: string; codeBlocks: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }>, "many">>; changelog: z.ZodOptional<z.ZodArray<z.ZodObject<{ version: z.ZodString; date: z.ZodString; changes: z.ZodArray<z.ZodString, "many">; }, "strip", z.ZodTypeAny, { date: string; version: string; changes: string[]; }, { date: string; version: string; changes: string[]; }>, "many">>; includeTableOfContents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; faq: z.ZodOptional<z.ZodArray<z.ZodObject<{ question: z.ZodString; answer: z.ZodString; }, "strip", z.ZodTypeAny, { question: string; answer: string; }, { question: string; answer: string; }>, "many">>; contributors: z.ZodOptional<z.ZodArray<z.ZodObject<{ name: z.ZodString; role: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { name: string; role?: string | undefined; }, { name: string; role?: string | undefined; }>, "many">>; }, "strip", z.ZodTypeAny, { language: "en" | "ko"; documentType: "README" | "DESIGN" | "TUTORIAL" | "CHANGELOG" | "API" | "ARCHITECTURE"; includeTableOfContents: boolean; description?: string | undefined; title?: string | undefined; projectName?: string | undefined; author?: string | undefined; version?: string | undefined; license?: string | undefined; features?: string[] | undefined; installation?: { requirements?: string[] | undefined; steps?: string[] | undefined; } | undefined; apiReference?: { name: string; description: string; params?: string[] | undefined; returns?: string | undefined; }[] | undefined; designDecisions?: { timestamp: string; description: string; id: string; title: string; rationale: string; category: "architecture" | "library" | "pattern" | "implementation" | "other"; alternatives?: string[] | undefined; }[] | undefined; codeContexts?: { timestamp: string; sessionId: string; codeBlocks: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }[] | undefined; changelog?: { date: string; version: string; changes: string[]; }[] | undefined; faq?: { question: string; answer: string; }[] | undefined; contributors?: { name: string; role?: string | undefined; }[] | undefined; }, { documentType: "README" | "DESIGN" | "TUTORIAL" | "CHANGELOG" | "API" | "ARCHITECTURE"; language?: "en" | "ko" | undefined; description?: string | undefined; title?: string | undefined; projectName?: string | undefined; author?: string | undefined; version?: string | undefined; license?: string | undefined; features?: string[] | undefined; installation?: { requirements?: string[] | undefined; steps?: string[] | undefined; } | undefined; apiReference?: { name: string; description: string; params?: string[] | undefined; returns?: string | undefined; }[] | undefined; designDecisions?: { description: string; id: string; title: string; rationale: string; timestamp?: string | undefined; alternatives?: string[] | undefined; category?: "architecture" | "library" | "pattern" | "implementation" | "other" | undefined; }[] | undefined; codeContexts?: { timestamp: string; sessionId: string; codeBlocks: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }[] | undefined; changelog?: { date: string; version: string; changes: string[]; }[] | undefined; includeTableOfContents?: boolean | undefined; faq?: { question: string; answer: string; }[] | undefined; contributors?: { name: string; role?: string | undefined; }[] | undefined; }>; export declare const NormalizeForPlatformSchema: z.ZodObject<{ document: z.ZodString; platform: z.ZodEnum<["notion", "github-wiki", "obsidian"]>; options: z.ZodOptional<z.ZodObject<{ addFrontmatter: z.ZodOptional<z.ZodBoolean>; addTimestamp: z.ZodOptional<z.ZodBoolean>; customMetadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; }, "strip", z.ZodTypeAny, { addFrontmatter?: boolean | undefined; addTimestamp?: boolean | undefined; customMetadata?: Record<string, string> | undefined; }, { addFrontmatter?: boolean | undefined; addTimestamp?: boolean | undefined; customMetadata?: Record<string, string> | undefined; }>>; }, "strip", z.ZodTypeAny, { platform: "notion" | "github-wiki" | "obsidian"; document: string; options?: { addFrontmatter?: boolean | undefined; addTimestamp?: boolean | undefined; customMetadata?: Record<string, string> | undefined; } | undefined; }, { platform: "notion" | "github-wiki" | "obsidian"; document: string; options?: { addFrontmatter?: boolean | undefined; addTimestamp?: boolean | undefined; customMetadata?: Record<string, string> | undefined; } | undefined; }>; export declare const PublishDocumentSchema: z.ZodObject<{ document: z.ZodString; platform: z.ZodEnum<["notion", "github-wiki", "obsidian", "confluence", "slack", "discord"]>; title: z.ZodString; options: z.ZodOptional<z.ZodObject<{ filename: z.ZodOptional<z.ZodString>; wikiPath: z.ZodOptional<z.ZodString>; vaultPath: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { filename?: string | undefined; tags?: string[] | undefined; wikiPath?: string | undefined; vaultPath?: string | undefined; }, { filename?: string | undefined; tags?: string[] | undefined; wikiPath?: string | undefined; vaultPath?: string | undefined; }>>; }, "strip", z.ZodTypeAny, { platform: "notion" | "github-wiki" | "obsidian" | "confluence" | "slack" | "discord"; title: string; document: string; options?: { filename?: string | undefined; tags?: string[] | undefined; wikiPath?: string | undefined; vaultPath?: string | undefined; } | undefined; }, { platform: "notion" | "github-wiki" | "obsidian" | "confluence" | "slack" | "discord"; title: string; document: string; options?: { filename?: string | undefined; tags?: string[] | undefined; wikiPath?: string | undefined; vaultPath?: string | undefined; } | undefined; }>; export declare const CreateSessionLogSchema: z.ZodObject<{ title: z.ZodString; summary: z.ZodString; codeContexts: z.ZodOptional<z.ZodArray<z.ZodObject<{ sessionId: z.ZodString; timestamp: z.ZodString; codeBlocks: z.ZodArray<z.ZodObject<{ language: z.ZodDefault<z.ZodString>; code: z.ZodString; filename: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { code: string; language: string; filename?: string | undefined; description?: string | undefined; }, { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }>, "many">; conversationSummary: z.ZodString; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { timestamp: string; sessionId: string; codeBlocks: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }, { timestamp: string; sessionId: string; codeBlocks: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }>, "many">>; designDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; title: z.ZodString; description: z.ZodString; rationale: z.ZodString; alternatives: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; category: z.ZodDefault<z.ZodEnum<["architecture", "library", "pattern", "implementation", "other"]>>; timestamp: z.ZodDefault<z.ZodString>; }, "strip", z.ZodTypeAny, { timestamp: string; description: string; id: string; title: string; rationale: string; category: "architecture" | "library" | "pattern" | "implementation" | "other"; alternatives?: string[] | undefined; }, { description: string; id: string; title: string; rationale: string; timestamp?: string | undefined; alternatives?: string[] | undefined; category?: "architecture" | "library" | "pattern" | "implementation" | "other" | undefined; }>, "many">>; duration: z.ZodOptional<z.ZodNumber>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; options: z.ZodOptional<z.ZodObject<{ logType: z.ZodDefault<z.ZodEnum<["daily", "session"]>>; outputPath: z.ZodOptional<z.ZodString>; format: z.ZodDefault<z.ZodOptional<z.ZodEnum<["markdown", "json"]>>>; }, "strip", z.ZodTypeAny, { logType: "daily" | "session"; format: "markdown" | "json"; outputPath?: string | undefined; }, { logType?: "daily" | "session" | undefined; outputPath?: string | undefined; format?: "markdown" | "json" | undefined; }>>; }, "strip", z.ZodTypeAny, { title: string; summary: string; options?: { logType: "daily" | "session"; format: "markdown" | "json"; outputPath?: string | undefined; } | undefined; tags?: string[] | undefined; designDecisions?: { timestamp: string; description: string; id: string; title: string; rationale: string; category: "architecture" | "library" | "pattern" | "implementation" | "other"; alternatives?: string[] | undefined; }[] | undefined; codeContexts?: { timestamp: string; sessionId: string; codeBlocks: { code: string; language: string; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }[] | undefined; duration?: number | undefined; }, { title: string; summary: string; options?: { logType?: "daily" | "session" | undefined; outputPath?: string | undefined; format?: "markdown" | "json" | undefined; } | undefined; tags?: string[] | undefined; designDecisions?: { description: string; id: string; title: string; rationale: string; timestamp?: string | undefined; alternatives?: string[] | undefined; category?: "architecture" | "library" | "pattern" | "implementation" | "other" | undefined; }[] | undefined; codeContexts?: { timestamp: string; sessionId: string; codeBlocks: { code: string; language?: string | undefined; filename?: string | undefined; description?: string | undefined; }[]; conversationSummary: string; tags?: string[] | undefined; }[] | undefined; duration?: number | undefined; }>; export declare const AnalyzeCodeSchema: z.ZodObject<{ code: z.ZodString; language: z.ZodEnum<["typescript", "javascript", "python", "go"]>; filename: z.ZodOptional<z.ZodString>; options: z.ZodOptional<z.ZodObject<{ includeComplexity: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; includeDependencies: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; generateDiagram: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>; diagramType: z.ZodDefault<z.ZodOptional<z.ZodEnum<["class", "flowchart", "dependency", "architecture"]>>>; }, "strip", z.ZodTypeAny, { includeComplexity: boolean; includeDependencies: boolean; generateDiagram: boolean; diagramType: "architecture" | "class" | "flowchart" | "dependency"; }, { includeComplexity?: boolean | undefined; includeDependencies?: boolean | undefined; generateDiagram?: boolean | undefined; diagramType?: "architecture" | "class" | "flowchart" | "dependency" | undefined; }>>; }, "strip", z.ZodTypeAny, { code: string; language: "typescript" | "javascript" | "python" | "go"; filename?: string | undefined; options?: { includeComplexity: boolean; includeDependencies: boolean; generateDiagram: boolean; diagramType: "architecture" | "class" | "flowchart" | "dependency"; } | undefined; }, { code: string; language: "typescript" | "javascript" | "python" | "go"; filename?: string | undefined; options?: { includeComplexity?: boolean | undefined; includeDependencies?: boolean | undefined; generateDiagram?: boolean | undefined; diagramType?: "architecture" | "class" | "flowchart" | "dependency" | undefined; } | undefined; }>; export type CollectCodeContextInput = z.infer<typeof CollectCodeContextSchema>; export type SummarizeDesignDecisionsInput = z.infer<typeof SummarizeDesignDecisionsSchema>; export type GenerateDevDocumentInput = z.infer<typeof GenerateDevDocumentSchema>; export type NormalizeForPlatformInput = z.infer<typeof NormalizeForPlatformSchema>; export type PublishDocumentInput = z.infer<typeof PublishDocumentSchema>; export type CreateSessionLogInput = z.infer<typeof CreateSessionLogSchema>; export type AnalyzeCodeInput = z.infer<typeof AnalyzeCodeSchema>; /** * Validates input against schema and returns typed result */ export declare function validateInput<T>(schema: z.ZodSchema<T>, input: unknown): T; //# sourceMappingURL=schemas.d.ts.map

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MUSE-CODE-SPACE/vibe-coding-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server