Skip to main content
Glama

vrchat_get_current_user

Retrieve your VRChat user information to access your profile details through the VRChat MCP Server.

Instructions

Retrieve your own VRChat user information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'vrchat_get_current_user' tool. It authenticates the VRChat client, fetches the current user data via the API, and returns it as a JSON-formatted text block. Includes error handling.
    async () => { try { await vrchatClient.auth() const response = await vrchatClient.authApi.getCurrentUser() const user = response.data return { content: [{ type: 'text', text: JSON.stringify(user, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to retrieve user: ' + error }] } } }
  • Direct registration of the 'vrchat_get_current_user' tool with the MCP server inside the createUsersTools function, including name, description, empty input schema, and inline handler.
    server.tool( 'vrchat_get_current_user', 'Retrieve your own VRChat user information', {}, // No parameters async () => { try { await vrchatClient.auth() const response = await vrchatClient.authApi.getCurrentUser() const user = response.data return { content: [{ type: 'text', text: JSON.stringify(user, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to retrieve user: ' + error }] } } } )
  • src/main.ts:29-29 (registration)
    Invocation of createUsersTools in the main server setup, which registers the users tools including 'vrchat_get_current_user'.
    createUsersTools(server, vrchatClient)

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/sawa-zen/vrchat-mcp'

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