deepsource-mcp-server
Version:
Model Context Protocol server for DeepSource
29 lines (28 loc) • 1.26 kB
TypeScript
/**
* @fileoverview Backward compatibility layer for deprecated functions
*
* This module provides backward compatibility for code that uses
* deprecated functions from older versions of the DeepSource MCP Server.
*
* @deprecated This entire module is deprecated and will be removed in v2.0.0
* Please migrate to the new APIs as documented in MIGRATION.md
*
* @packageDocumentation
*/
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { ToolRegistry } from './server/tool-registry.js';
import type { BaseHandlerDeps } from './handlers/base/handler.interface.js';
/**
* Validates that required environment variables are set
* @deprecated Use getConfig() from config/index.js instead
* @returns true if environment is valid, false otherwise
*/
export declare function validateEnvironment(): boolean;
/**
* Creates and configures a tool registry with all DeepSource tools
* @deprecated Use DeepSourceMCPServer.create() from server/mcp-server.js instead
* @param server - The MCP server instance
* @param handlerDeps - Optional custom handler dependencies
* @returns Configured tool registry
*/
export declare function createAndConfigureToolRegistry(server: McpServer, handlerDeps?: BaseHandlerDeps): ToolRegistry;