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.
31 lines (30 loc) • 1.6 kB
TypeScript
import { McpToolResponse } from "../../../types/mcp.js";
import { AtlasDeepResearchInput, DeepResearchResult } from "./types.js";
/**
* Defines a generic interface for formatting data into a string.
* This was previously imported but is now defined locally as the original seems to be removed.
*/
interface ResponseFormatter<T> {
format(data: T): string;
}
/**
* Base response formatter for the `atlas_deep_research` tool.
* This formatter provides a basic structure for the output, primarily using
* the data returned by the core `deepResearch` function.
* It's designed to be used within `formatDeepResearchResponse` which adds
* contextual information from the original tool input.
*/
export declare const DeepResearchBaseFormatter: ResponseFormatter<DeepResearchResult>;
/**
* Creates the final formatted `McpToolResponse` for the `atlas_deep_research` tool.
* This function takes the raw result from the core logic (`deepResearch`) and the
* original tool input, then uses a *contextual* formatter to generate the final
* Markdown output. The contextual formatter enhances the base format by including
* details from the input (like topic, goal, scope, tags, and search queries).
*
* @param rawData - The `DeepResearchResult` object returned by the `deepResearch` function.
* @param input - The original `AtlasDeepResearchInput` provided to the tool.
* @returns The final `McpToolResponse` object ready to be sent back to the client.
*/
export declare function formatDeepResearchResponse(rawData: DeepResearchResult, input: AtlasDeepResearchInput): McpToolResponse;
export {};