vrchat_join_group
Add a user to a VRChat group by specifying its unique group ID using the MCP server for direct integration with the VRChat API.
Instructions
Join a VRChat group by ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | Yes | Must be a valid group ID |
Implementation Reference
- src/tools/groups.ts:12-30 (handler)Handler function that authenticates the VRChat client, joins the group using the provided groupId, and returns the API response as JSON or an error message.async (args) => { try { await vrchatClient.auth() const response = await vrchatClient.groupsApi.joinGroup(args.groupId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to join group: ' + error }] } } }
- src/tools/groups.ts:9-11 (schema)Zod input schema defining the required 'groupId' parameter as a string.{ groupId: z.string().describe('Must be a valid group ID') },
- src/tools/groups.ts:6-31 (registration)Registration of the 'vrchat_join_group' tool using server.tool(), including name, description, input schema, and handler function.server.tool( 'vrchat_join_group', 'Join a VRChat group by ID', { groupId: z.string().describe('Must be a valid group ID') }, async (args) => { try { await vrchatClient.auth() const response = await vrchatClient.groupsApi.joinGroup(args.groupId) return { content: [{ type: 'text', text: JSON.stringify(response.data, null, 2) }] } } catch (error) { return { content: [{ type: 'text', text: 'Failed to join group: ' + error }] } } } )