clear_project
Remove all generated files and reset the current Maven project to its initial state, allowing for a clean restart of project generation.
Instructions
Vider le 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": "clear_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:474-488 (handler)The actual implementation of the clear_project logic which resets the currentProject object and returns a success message.
async function clearProject() { currentProject = { groupId: "", artifactId: "", version: "1.0.0", files: {}, }; return { content: [ { type: "text", text: "Projet vide avec succes! Vous pouvez maintenant creer un nouveau projet.", }, ], - src/index.ts:184-190 (registration)Registration of the clear_project tool definition for the MCP server.
name: "clear_project", description: "Vider le projet en cours", inputSchema: { type: "object", properties: {}, }, },