@context-sync/server
Version:
MCP server for AI context sync with persistent memory, workspace file access, and intelligent code operations
66 lines • 1.99 kB
TypeScript
import type { Storage } from './storage.js';
import type { ProjectContext } from './types.js';
export type AIPlatform = 'claude' | 'cursor' | 'copilot' | 'other';
export interface PlatformSession {
platform: AIPlatform;
projectId: string;
startedAt: Date;
lastActivityAt: Date;
}
export interface HandoffContext {
fromPlatform: AIPlatform;
toPlatform: AIPlatform;
project: ProjectContext;
summary: string;
conversationCount: number;
decisionCount: number;
timestamp: Date;
}
/**
* Manages cross-platform context synchronization
* Enables seamless handoff between Claude Desktop, Cursor, and other AI platforms
*/
export declare class PlatformSync {
private storage;
private currentPlatform;
private sessionStartTime;
constructor(storage: Storage);
/**
* Set the current AI platform
*/
setPlatform(platform: AIPlatform): void;
/**
* Get the current AI platform
*/
getPlatform(): AIPlatform;
/**
* Create a handoff context when switching platforms
*/
createHandoff(fromPlatform: AIPlatform, toPlatform: AIPlatform): HandoffContext | null;
/**
* Get platform-specific context
*/
getPlatformContext(platform: AIPlatform): string;
/**
* Detect which platform is being used based on environment
* This is a heuristic - not 100% accurate
*/
static detectPlatform(): AIPlatform;
/**
* Get configuration paths for different platforms
*/
static getConfigPaths(): Record<string, string>;
/**
* Check if Context Sync is configured for a platform
*/
static isConfigured(platform: AIPlatform): boolean;
/**
* Get status of all platform configurations
*/
static getPlatformStatus(): Record<AIPlatform, boolean>;
/**
* Generate installation instructions for a platform
*/
static getInstallInstructions(platform: AIPlatform): string;
}
//# sourceMappingURL=platform-sync.d.ts.map