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.
67 lines (66 loc) • 1.9 kB
TypeScript
/**
* Defines a generic interface for formatting data into a string.
*/
interface ResponseFormatter<T> {
format(data: T): string;
}
/**
* Interface for a single knowledge item response
*/
interface SingleKnowledgeResponse {
id: string;
projectId: string;
text: string;
tags?: string[];
domain: string;
citations?: string[];
createdAt: string;
updatedAt: string;
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
}
/**
* Interface for bulk knowledge addition response
*/
interface BulkKnowledgeResponse {
success: boolean;
message: string;
created: (SingleKnowledgeResponse & {
properties?: any;
identity?: number;
labels?: string[];
elementId?: string;
})[];
errors: {
index: number;
knowledge: any;
error: {
code: string;
message: string;
details?: any;
};
}[];
}
/**
* Formatter for single knowledge item addition responses
*/
export declare class SingleKnowledgeFormatter implements ResponseFormatter<SingleKnowledgeResponse> {
format(data: SingleKnowledgeResponse): string;
}
/**
* Formatter for bulk knowledge addition responses
*/
export declare class BulkKnowledgeFormatter implements ResponseFormatter<BulkKnowledgeResponse> {
format(data: BulkKnowledgeResponse): string;
}
/**
* Create a formatted, human-readable response for the atlas_knowledge_add tool
*
* @param data The raw knowledge addition response data (can be SingleKnowledgeResponse or BulkKnowledgeResponse)
* @param isError Whether this response represents an error condition (primarily for single responses if not inherent in data)
* @returns Formatted MCP tool response with appropriate structure
*/
export declare function formatKnowledgeAddResponse(data: any, isError?: boolean): any;
export {};