follow_user
Enable users to follow another account on Bluesky Social by specifying the target handle. Returns the status of the follow action.
Instructions
Follow a user.
Args:
ctx: MCP context
handle: Handle of the user to follow
Returns:
Status of the follow operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handle | Yes |
Implementation Reference
- server.py:1030-1063 (handler)The primary handler for the 'follow_user' MCP tool. It resolves the provided handle to a DID and uses the Bluesky client to follow the user, returning success with follow URI/CID or error details.@mcp.tool() def follow_user( ctx: Context, handle: str, ) -> Dict: """Follow a user. Args: ctx: MCP context handle: Handle of the user to follow Returns: Status of the follow operation """ try: bluesky_client = get_authenticated_client(ctx) # First resolve the handle to a DID resolved = bluesky_client.resolve_handle(handle) did = resolved.did # Now follow the user - follow method expects the DID as subject parameter follow_response = bluesky_client.follow(did) return { "status": "success", "message": f"Now following {handle}", "follow_uri": follow_response.uri, "follow_cid": follow_response.cid, } except Exception as e: error_msg = f"Failed to follow user: {str(e)}" return {"status": "error", "message": error_msg}