UNPKG

@downzoo/mcp-server

Version:

AI协作档案分析器 - MCP服务器,基于 Model Context Protocol 的 AI 协作档案分析服务器,专门用于分析 Bug 修复相关的聊天内容

213 lines 5.65 kB
import prisma from "@downzoo/db"; import { ComprehensiveAnalysisResult } from './types.js'; export declare const createDoc: (title: string, content: string) => Promise<string>; export declare const saveAnalysisResult: (result: ComprehensiveAnalysisResult, chatContent: string, title?: string, docTitle?: string, docContent?: string) => Promise<string>; export declare const getDoc: (id: string) => Promise<({ analysisResults: ({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]; } & { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; }) | null>; export declare const getAllDocs: (page?: number, limit?: number) => Promise<{ docs: ({ analysisResults: ({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]; } & { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; })[]; total: number; page: number; limit: number; totalPages: number; }>; export declare const searchDocsByTitle: (title: string) => Promise<({ analysisResults: ({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]; } & { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; })[]>; export declare const deleteDoc: (id: string) => Promise<void>; export declare const getAnalysisResult: (id: string) => Promise<({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; doc: { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; } | null; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; }) | null>; export declare const getAllAnalysisResults: (page?: number, limit?: number) => Promise<{ results: ({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; doc: { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; } | null; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]; total: number; page: number; limit: number; totalPages: number; }>; export declare const searchByTechStack: (techStack: string) => Promise<({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; doc: { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; } | null; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]>; export declare const searchByBusiness: (business: string) => Promise<({ problems: { id: string; createdAt: Date; category: string; analysisResultId: string; }[]; doc: { id: string; createdAt: Date; updatedAt: Date; title: string; content: string; } | null; } & { business: string | null; tags: string[]; summary: string | null; primaryStack: string | null; keyQuestions: string[]; id: string; createdAt: Date; updatedAt: Date; title: string | null; chatContent: string; docId: string | null; })[]>; export declare const deleteAnalysisResult: (id: string) => Promise<void>; export declare const closeDatabaseConnection: () => Promise<void>; export { prisma }; //# sourceMappingURL=database.d.ts.map