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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:330-348 (handler)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: {}, }, },
- src/index.ts:135-137 (helper)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; }
- src/index.ts:187-190 (schema)Input schema for 'get_current_user' tool: empty object (no parameters required).inputSchema: { type: "object", properties: {}, },