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.
60 lines (59 loc) • 1.69 kB
TypeScript
import { TaskResponse } from "../../../types/mcp.js";
/**
* Defines a generic interface for formatting data into a string.
*/
interface ResponseFormatter<T> {
format(data: T): string;
}
/**
* Extends the TaskResponse to include Neo4j properties structure
*/
interface SingleTaskResponse extends TaskResponse {
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
}
/**
* Interface for bulk task creation response
*/
interface BulkTaskResponse {
success: boolean;
message: string;
created: (TaskResponse & {
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
})[];
errors: {
index: number;
task: any;
error: {
code: string;
message: string;
details?: any;
};
}[];
}
/**
* Formatter for single task creation responses
*/
export declare class SingleTaskFormatter implements ResponseFormatter<SingleTaskResponse> {
format(data: SingleTaskResponse): string;
}
/**
* Formatter for bulk task creation responses
*/
export declare class BulkTaskFormatter implements ResponseFormatter<BulkTaskResponse> {
format(data: BulkTaskResponse): string;
}
/**
* Create a formatted, human-readable response for the atlas_task_create tool
*
* @param data The raw task creation response data (SingleTaskResponse or BulkTaskResponse)
* @param isError Whether this response represents an error condition (primarily for single responses)
* @returns Formatted MCP tool response with appropriate structure
*/
export declare function formatTaskCreateResponse(data: any, isError?: boolean): any;
export {};