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.
63 lines (62 loc) • 1.83 kB
TypeScript
import { ProjectResponse } from "../../../types/mcp.js";
/**
* Defines a generic interface for formatting data into a string.
*/
interface ResponseFormatter<T> {
format(data: T): string;
}
/**
* Extends the ProjectResponse to include Neo4j properties structure
*/
interface SingleProjectResponse extends ProjectResponse {
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
}
/**
* Interface for bulk project update response
*/
interface BulkProjectResponse {
success: boolean;
message: string;
updated: (ProjectResponse & {
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
})[];
errors: {
index: number;
project: {
id: string;
updates: any;
};
error: {
code: string;
message: string;
details?: any;
};
}[];
}
/**
* Formatter for individual project modification responses
*/
export declare class SingleProjectUpdateFormatter implements ResponseFormatter<SingleProjectResponse> {
format(data: SingleProjectResponse): string;
}
/**
* Formatter for bulk project update responses
*/
export declare class BulkProjectUpdateFormatter implements ResponseFormatter<BulkProjectResponse> {
format(data: BulkProjectResponse): string;
}
/**
* Create a formatted, human-readable response for the atlas_project_update tool
*
* @param data The raw project modification response (SingleProjectResponse or BulkProjectResponse)
* @param isError Whether this response represents an error condition (primarily for single responses)
* @returns Formatted MCP tool response with appropriate structure
*/
export declare function formatProjectUpdateResponse(data: any, isError?: boolean): any;
export {};