get_user_profile
Retrieve authenticated user profile details including email, display name, and account information from the Restream MCP Server.
Instructions
Get the authenticated user profile information including email, display name, and account details
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/restream-client.ts:78-85 (handler)Core handler function that fetches the user profile from the Restream API via HTTP GET request.async getUserProfile(): Promise<UserProfile> { try { const response = await this.axiosInstance.get<UserProfile>('/user/profile'); return response.data; } catch (error) { throw this.handleError(error, 'Failed to fetch user profile'); } }
- src/index.ts:42-50 (registration)MCP tool registration defining the tool name, description, and input schema (no parameters required).{ name: 'get_user_profile', description: 'Get the authenticated user profile information including email, display name, and account details', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/index.ts:193-203 (handler)MCP CallToolRequestSchema handler case that invokes the RestreamClient.getUserProfile() and returns JSON-formatted response.case 'get_user_profile': { const profile = await restreamClient.getUserProfile(); return { content: [ { type: 'text', text: JSON.stringify(profile, null, 2), }, ], }; }
- src/types.ts:27-33 (schema)TypeScript interface defining the structure of the UserProfile returned by the tool.export interface UserProfile { id: string; email: string; displayName: string; username?: string; createdAt?: string; }