Skip to main content
Glama
sweetwisdom

MCP Project Query Server

by sweetwisdom

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sweetwisdom/mcp-demo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server