mcp-adr-analysis-server
Version:
MCP server for analyzing Architectural Decision Records and project architecture
67 lines • 2.06 kB
TypeScript
/**
* Get Server Context Tool
*
* MCP tool that generates and returns the current server context,
* and optionally writes it to .mcp-server-context.md for @ referencing.
*/
import type { CallToolResult } from '@modelcontextprotocol/sdk/types.js';
import type { KnowledgeGraphManager } from '../utils/knowledge-graph-manager.js';
import type { MemoryEntityManager } from '../utils/memory-entity-manager.js';
import type { ConversationMemoryManager } from '../utils/conversation-memory-manager.js';
export interface GetServerContextArgs {
/**
* Whether to write the context to .mcp-server-context.md file
* @default true
*/
writeToFile?: boolean;
/**
* Custom output path for the context file
*/
outputPath?: string;
/**
* Include detailed information
* @default true
*/
includeDetailed?: boolean;
/**
* Maximum number of recent items to show
* @default 5
*/
maxRecentItems?: number;
}
/**
* Generate and return current server context
*/
export declare function getServerContext(args: GetServerContextArgs, kgManager: KnowledgeGraphManager, memoryManager: MemoryEntityManager, conversationManager: ConversationMemoryManager): Promise<CallToolResult>;
/**
* Tool metadata for MCP registration
*/
export declare const getServerContextMetadata: {
name: string;
description: string;
inputSchema: {
type: string;
properties: {
writeToFile: {
type: string;
description: string;
default: boolean;
};
outputPath: {
type: string;
description: string;
};
includeDetailed: {
type: string;
description: string;
default: boolean;
};
maxRecentItems: {
type: string;
description: string;
default: number;
};
};
};
};
//# sourceMappingURL=get-server-context-tool.d.ts.map