mute_user
Block unwanted interactions by muting specific users on Bluesky Social MCP. Input the user's handle or DID to execute the mute operation and manage your online experience.
Instructions
Mute a user.
Args:
ctx: MCP context
actor: Handle or DID of the user to mute
Returns:
Status of the mute operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | Yes |
Implementation Reference
- server.py:701-734 (handler)The handler function for the 'mute_user' tool, decorated with @mcp.tool() for automatic registration. It mutes the specified user (by handle or DID) using the Bluesky client and returns success/error status.@mcp.tool() def mute_user( ctx: Context, actor: str, ) -> Dict: """Mute a user. Args: ctx: MCP context actor: Handle or DID of the user to mute Returns: Status of the mute operation """ try: bluesky_client = get_authenticated_client(ctx) # The mute method returns a boolean success = bluesky_client.mute(actor) if success: return { "status": "success", "message": f"Muted user {actor}", } else: return { "status": "error", "message": "Failed to mute user", } except Exception as e: error_msg = f"Failed to mute user: {str(e)}" return {"status": "error", "message": error_msg}
- server.py:701-701 (registration)The @mcp.tool() decorator registers the mute_user function as an MCP tool.@mcp.tool()