list_files
Lists all files in the current Maven project to review structure and contents for project management and organization.
Instructions
Lister tous les fichiers du projet en cours
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": "list_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:400-419 (handler)The listFiles function which implements the logic for listing files in the current project.
async function listFiles() { if (Object.keys(currentProject.files).length === 0) { return { content: [ { type: "text", text: "Aucun projet en cours. Creez d'abord un projet avec 'create_maven_project'.", }, ], }; } const filesList = Object.keys(currentProject.files) .sort() .map(file => `- ${file}`) .join('\n'); return { content: [ { - src/index.ts:192-198 (registration)The MCP tool registration for list_files.
name: "list_files", description: "Lister tous les fichiers du projet en cours", inputSchema: { type: "object", properties: {}, }, },