manage_dependencies
Check FSP dependency compatibility and list versions for a target Renesas MCU platform.
Instructions
Manage FSP dependencies, versions, and compatibility matrix
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | ||
| platform | No | Target MCU platform |
Implementation Reference
- src/handlers/dependencies.ts:6-80 (handler)The main handler function for the manage_dependencies tool. It supports three actions: 'list' (lists available FSP versions), 'check_compatibility' (shows compatibility matrix for platforms), and 'get_versions' (shows supported versions for a platform).
export const dependencyManagerHandler = async (args?: any) => { const action = args?.action || 'list'; const platform = args?.platform || ''; // FSP version history const versionHistory: Record<string, string> = { 'v6.4.0': 'December 2025 - Latest stable release', 'v6.3.0': 'October 2025 - Security fixes included', 'v6.2.0': 'August 2025 - New peripheral drivers', 'v6.1.0': 'June 2025 - RTOS improvements', 'v6.0.0': 'April 2025 - Major architecture update' }; // Platform compatibility matrix const compatibilityMatrix: Record<string, string[]> = { 'RA6M3': ['v6.4.0', 'v6.3.0', 'v6.2.0'], 'RA4E1': ['v6.4.0', 'v6.3.0', 'v6.1.0'], 'RA8D1': ['v6.4.0', 'v6.2.0', 'v6.0.0'], 'RA0E1': ['v6.3.0', 'v6.2.0', 'v6.1.0'] }; const result: any = {}; switch (action) { case 'list': result.action = action; result.title = 'Available FSP Versions'; result.data = Object.entries(versionHistory).map(([version, release]) => ({ version, release_date: release })); break; case 'check_compatibility': result.action = action; result.title = `Compatibility Matrix for ${platform || 'All Platforms'}`; const platforms = Object.keys(compatibilityMatrix); const versions = [...new Set(Object.values(compatibilityMatrix).flat())]; result.data = { headers: ['Platform', ...versions], rows: platforms.map(p => [ p, ...versions.map(v => compatibilityMatrix[p]?.includes(v) ? '✅' : '❌') ]) }; break; case 'get_versions': result.action = action; result.title = `Version Information for ${platform || 'All Platforms'}`; const platformVersions = compatibilityMatrix[platform] || Object.values(compatibilityMatrix)[0]; result.data = { platform, supported_versions: platformVersions, latest_version: 'v6.4.0', minimum_e2_studio: '2025-12.1+' }; break; default: return { content: [ { type: "text", text: `Unknown action: ${action}. Available actions: list, check_compatibility, get_versions` } ] }; } return result; }; - src/index.ts:105-121 (schema)Input schema definition for the manage_dependencies tool, defining 'action' (enum: list, check_compatibility, get_versions) and 'platform' (string) as input properties.
{ name: "manage_dependencies", description: "Manage FSP dependencies, versions, and compatibility matrix", inputSchema: { type: "object", properties: { action: { type: "string", enum: ["list", "check_compatibility", "get_versions"] }, platform: { type: "string", description: "Target MCU platform" } } } }, - src/index.ts:163-164 (registration)Registration of the manage_dependencies tool in the CallToolRequestSchema handler, routing to dependencyManagerHandler.
case "manage_dependencies": return await dependencyManagerHandler(args); - src/index.ts:14-14 (helper)Import statement for dependencyManagerHandler from the handlers/dependencies module.
import { apiReferenceHandler } from "./handlers/api-reference.js";