check_deprecated_code
Identify deprecated features in code or dependencies to maintain compatibility and prevent issues. Specify the technology context for accurate analysis.
Instructions
Check if code or dependencies might be using deprecated features
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The code snippet or dependency to check | |
| technology | No | The technology or framework context (e.g., 'React', 'Node.js') |
Implementation Reference
- index.ts:347-363 (handler)The handler for the 'check_deprecated_code' tool. It extracts the 'code' snippet and optional 'technology' from the input arguments, constructs a search query for deprecated usage, calls the Perplexity '/search' API, and returns the response data as a formatted text content block.case "check_deprecated_code": { const { code, technology = "" } = request.params.arguments as { code: string; technology?: string; }; const response = await this.axiosInstance.post('/search', { query: `deprecated code ${code} ${technology}` }); return { content: [ { type: "text", text: JSON.stringify(response.data, null, 2), }, ], }; }
- index.ts:185-204 (schema)The input schema definition for the 'check_deprecated_code' tool, specifying required 'code' parameter and optional 'technology'.{ name: "check_deprecated_code", description: "Check if code or dependencies might be using deprecated features", inputSchema: { type: "object", properties: { code: { type: "string", description: "The code snippet or dependency to check", }, technology: { type: "string", description: "The technology or framework context (e.g., 'React', 'Node.js')", }, }, required: ["code"], }, },
- index.ts:102-206 (registration)The tool is registered by including its definition (name, description, inputSchema) in the list returned by the ListTools handler.{ name: "chat_perplexity", description: "Maintains ongoing conversations with Perplexity AI. Creates new chats or continues existing ones with full history context.", inputSchema: { type: "object", properties: { message: { type: "string", description: "The message to send to Perplexity AI", }, chat_id: { type: "string", description: "Optional: ID of an existing chat to continue. If not provided, a new chat will be created.", }, }, required: ["message"], }, }, { name: "search", description: "Perform a general search query to get comprehensive information on any topic", inputSchema: { type: "object", properties: { query: { type: "string", description: "The search query or question", }, detail_level: { type: "string", description: "Optional: Desired level of detail (brief, normal, detailed)", enum: ["brief", "normal", "detailed"], }, }, required: ["query"], }, }, { name: "get_documentation", description: "Get documentation and usage examples for a specific technology, library, or API", inputSchema: { type: "object", properties: { query: { type: "string", description: "The technology, library, or API to get documentation for", }, context: { type: "string", description: "Additional context or specific aspects to focus on", }, }, required: ["query"], }, }, { name: "find_apis", description: "Find and evaluate APIs that could be integrated into a project", inputSchema: { type: "object", properties: { requirement: { type: "string", description: "The functionality or requirement you're looking to fulfill", }, context: { type: "string", description: "Additional context about the project or specific needs", }, }, required: ["requirement"], }, }, { name: "check_deprecated_code", description: "Check if code or dependencies might be using deprecated features", inputSchema: { type: "object", properties: { code: { type: "string", description: "The code snippet or dependency to check", }, technology: { type: "string", description: "The technology or framework context (e.g., 'React', 'Node.js')", }, }, required: ["code"], }, }, ], }));