atlas-mcp-server
Version:
ATLAS (Adaptive Task & Logic Automation System): An MCP server enabling LLM agents to manage projects, tasks, and knowledge via a Neo4j-backed, three-tier architecture. Facilitates complex workflow automation and project management through LLM Agents.
55 lines (54 loc) • 2.02 kB
JavaScript
/**
* Neo4j Services Module
*
* This module exports all Neo4j database services to provide a unified API for interacting
* with the Neo4j graph database. It encapsulates the complexity of Neo4j queries and
* transactions, providing a clean interface for application code.
*/
// Export core database driver and utilities
// Removed: export { autoExportManager } from './backup_services/autoExportManager.js';
export { neo4jDriver } from "./driver.js";
export { databaseEvents, DatabaseEventType } from "./events.js";
export * from "./helpers.js";
export { Neo4jUtils } from "./utils.js";
// Export entity services
// Removed backup_services exports
export { KnowledgeService } from "./knowledgeService.js";
export { ProjectService } from "./projectService.js";
export { SearchService } from "./searchService/index.js";
export { TaskService } from "./taskService.js";
export { exportDatabase, importDatabase, } from "./backupRestoreService/index.js";
// Export common types
export * from "./types.js";
/**
* Initialize the Neo4j database and related services
* Should be called at application startup
*/
// Removed initializeNeo4jServices function as it relied on backup_services
/**
* Initialize the Neo4j database schema
* Should be called at application startup
*/
export async function initializeNeo4jSchema() {
const { Neo4jUtils } = await import("./utils.js");
return Neo4jUtils.initializeSchema();
}
// Removed restoreFromLatestBackup function
// Removed getLatestBackupFile function
// Removed createManualBackup function
/**
* Clear and reset the Neo4j database
* WARNING: This permanently deletes all data
*/
export async function clearNeo4jDatabase() {
const { Neo4jUtils } = await import("./utils.js");
return Neo4jUtils.clearDatabase();
}
/**
* Close the Neo4j database connection
* Should be called when shutting down the application
*/
export async function closeNeo4jConnection() {
const { neo4jDriver } = await import("./driver.js");
return neo4jDriver.close();
}