mcp-ai-agent-guidelines
Version:
A comprehensive Model Context Protocol server providing advanced tools, resources, and prompts for implementing AI agent best practices
30 lines • 872 B
TypeScript
/**
* Deprecation warning utility
* Emits warnings once per tool per session to avoid spam
*/
/**
* Options for deprecation warning
*/
export interface DeprecationOptions {
/** Name of the deprecated tool */
tool: string;
/** Name of the replacement tool */
replacement: string;
/** Version when the tool was deprecated */
deprecatedIn: string;
/** Version when the tool will be removed */
removedIn: string;
}
/**
* Emit a deprecation warning for a tool
* Warning is emitted only once per tool per session
*
* @param options - Deprecation configuration
*/
export declare function emitDeprecationWarning(options: DeprecationOptions): void;
/**
* Reset deprecation warnings (for testing)
* This clears the set of warned tools
*/
export declare function resetDeprecationWarnings(): void;
//# sourceMappingURL=deprecation.d.ts.map