@context-sync/server
Version:
MCP server for AI context sync with persistent memory, workspace file access, and intelligent code operations
45 lines • 1.51 kB
TypeScript
export interface ProjectContext {
id: string;
name: string;
path?: string;
architecture?: string;
techStack: string[];
createdAt: Date;
updatedAt: Date;
}
export interface Conversation {
id: string;
projectId: string;
tool: 'claude' | 'cursor' | 'copilot' | 'other';
role: 'user' | 'assistant';
content: string;
timestamp: Date;
metadata?: Record<string, any>;
}
export interface Decision {
id: string;
projectId: string;
type: 'architecture' | 'library' | 'pattern' | 'configuration' | 'other';
description: string;
reasoning?: string;
timestamp: Date;
}
export interface ContextSummary {
project: ProjectContext;
recentDecisions: Decision[];
recentConversations: Conversation[];
keyPoints: string[];
}
export interface StorageInterface {
createProject(name: string, path?: string): ProjectContext;
getProject(id: string): ProjectContext | null;
getCurrentProject(): ProjectContext | null;
updateProject(id: string, updates: Partial<ProjectContext>): void;
addConversation(conv: Omit<Conversation, 'id' | 'timestamp'>): Conversation;
getRecentConversations(projectId: string, limit?: number): Conversation[];
addDecision(decision: Omit<Decision, 'id' | 'timestamp'>): Decision;
getDecisions(projectId: string): Decision[];
getContextSummary(projectId: string): ContextSummary;
findProjectByPath(projectPath: string): ProjectContext | null;
}
//# sourceMappingURL=types.d.ts.map