kick_player
Kicks a player from the CloudNet network, using their identifier and a reason message to remove them from all connected nodes.
Instructions
Kicks a given player from the entire network
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | The name or unique id of the player | |
| message | Yes | The kick message/reason |
Implementation Reference
- src/cloudnet_mcp/server.py:113-124 (schema)Schema registration for the 'kick_player' tool, defining input parameters: identifier (player name/ID) and message (kick reason).
types.Tool( name="kick_player", description="Kicks a given player from the entire network", inputSchema={ "type": "object", "properties": { "identifier": {"type": "string", "description": "The name or unique id of the player"}, "message": {"type": "string", "description": "The kick message/reason"} }, "required": ["identifier", "message"], }, ), - src/cloudnet_mcp/server.py:194-198 (handler)Handler for 'kick_player' — extracts identifier and message from arguments, then sends a POST request to the CloudNet API at /player/online/{identifier}/kick with the kick message.
elif name == "kick_player": identifier = arguments.get("identifier") msg = arguments.get("message") data = await client.request("POST", f"player/online/{identifier}/kick", json={"kickMessage": msg}) return [types.TextContent(type="text", text=str(data))]