Skip to main content
Glama
huseyindol

User Info MCP Server

by huseyindol

get_all_users

Retrieve a complete list of all users from the User Info MCP Server to access stored user data for management and analysis.

Instructions

Tüm kullanıcıların listesini getir

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler function that fetches all users from the service layer and returns a formatted ToolResponse.
    static async handleGetAllUsers(): Promise<ToolResponse> { try { const result = await userService.getAllUsers(); return { content: [ { type: "text", text: result.success ? JSON.stringify(result.data, null, 2) : result.error || "Bilinmeyen hata", }, ], }; } catch (error) { return { content: [ { type: "text", text: "Tool handler'da beklenmeyen hata oluştu", }, ], }; } }
  • Registers the 'get_all_users' tool with the MCP server, specifying title, description, empty input schema, and linking to the handler function.
    server.registerTool( "get_all_users", { title: "Tüm Kullanıcıları Getir", description: "Tüm kullanıcıların listesini getir", inputSchema: {}, }, UserController.handleGetAllUsers );
  • Service layer method that retrieves all users from the repository and handles errors, returning a standardized ServiceResult.
    async getAllUsers(): Promise<ServiceResult<User[]>> { try { const users = await userRepository.findAll(); return { success: true, data: users, message: `${users.length} kullanıcı bulundu` }; } catch (error) { return { success: false, error: "Kullanıcılar yüklenirken hata oluştu", data: [] }; } }

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/huseyindol/McpProjectScaffold'

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