Skip to main content
Glama
jhanglim
by jhanglim

get_current_user

Retrieve your own Mattermost user information including profile details and account settings to verify identity and access permissions.

Instructions

현재 토큰 소유자(나)의 정보를 조회합니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler for 'get_current_user' tool: calls MattermostClient.getMe() and formats/returns current user info as JSON text content.
    case "get_current_user": { const me = await client.getMe(); return { content: [ { type: "text", text: JSON.stringify({ id: me.id, username: me.username, email: me.email || "", first_name: me.first_name || "", last_name: me.last_name || "", nickname: me.nickname || "", full_name: `${me.first_name} ${me.last_name}`.trim() || me.nickname || me.username, }, null, 2), }, ], }; }
  • src/index.ts:184-191 (registration)
    Registration of 'get_current_user' tool in the listTools response, including name, description, and empty input schema.
    { name: "get_current_user", description: "현재 토큰 소유자(나)의 정보를 조회합니다.", inputSchema: { type: "object", properties: {}, }, },
  • MattermostClient.getMe() helper method that fetches the current user's info via Mattermost API /users/me endpoint.
    async getMe(): Promise<MattermostUser> { return await this.request("/users/me") as MattermostUser; }
  • Input schema for 'get_current_user' tool: empty object (no parameters required).
    inputSchema: { type: "object", properties: {}, },

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/jhanglim/mattermost-mcp-server'

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