get_project_all
Retrieve all projects managed by the MCP Project Query Server to view and organize project data for management and query purposes.
Instructions
获取全部项目
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/main/index.ts:55-63 (registration)Registration of the 'get_project_all' MCP tool. Defines input schema (empty), description, and inline handler that delegates to ProjectController.getAllProjects().server.tool( 'get_project_all', '获取全部项目', {}, async () => { return projectController.getAllProjects(); } );
- Handler logic in ProjectController: fetches all projects from service and formats as MCP response with JSON stringified content.getAllProjects(): { content: Array<{ type: "text"; text: string }> } { const projects = this.projectService.getAllProjects(); return { content: [ { type: 'text', text: JSON.stringify(projects), }, ], }; }
- Helper method in ProjectService that delegates getAllProjects to the repository.getAllProjects(): Project[] { return this.projectRepository.getAllProjects();
- Core implementation in ProjectRepository: returns the in-memory array of loaded projects from JSON file.getAllProjects(): any[] { return this.projects;