check_outdated_packages
Identify outdated dependencies in your project to maintain code security and compatibility. Scans package files to detect versions requiring updates.
Instructions
Check for outdated packages
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "check_outdated_packages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | No | Path to project root |
Implementation Reference
- src/tools/dependency-analysis.ts:150-160 (handler)Executes the tool logic by analyzing project dependencies specifically for outdated packages using DependencyAnalyzer and returns the outdated list with count.
case 'check_outdated_packages': { const report = await analyzer.analyzeDependencies(projectPath, { checkUnused: false, checkOutdated: true, checkVulnerabilities: false, }); return { outdated: report.outdated, total: report.outdated.length, }; } - Defines the tool's name, description, and input schema (projectPath parameter).
{ name: 'check_outdated_packages', description: 'Check for outdated packages', inputSchema: { type: 'object', properties: { projectPath: { type: 'string', description: 'Path to project root', }, }, }, }, - src/server.ts:18-25 (registration)Includes dependencyAnalysisTools (containing check_outdated_packages) in the complete list of tools registered with the MCP server.
const allTools = [ ...codeAnalysisTools, ...codeQualityTools, ...dependencyAnalysisTools, ...lintingTools, ...webScrapingTools, ...apiDiscoveryTools, ]; - src/server.ts:66-67 (registration)Dispatches tool calls matching dependencyAnalysisTools (including check_outdated_packages) to the specific handler function.
} else if (dependencyAnalysisTools.some((t) => t.name === name)) { result = await handleDependencyAnalysisTool(name, args || {});