Skip to main content
Glama

follow_user

Follow a user on Bluesky Social by entering their handle to connect with their content and updates.

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
NameRequiredDescriptionDefault
handleYes

Implementation Reference

  • The handler function for the 'follow_user' tool. It resolves the handle to a DID and calls the Bluesky client's follow method. Decorated with @mcp.tool() for automatic registration.
    @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}
  • server.py:1075-1075 (registration)
    The 'follow_user' tool is listed in the profiles category within the tools info resource.
    "profiles": ["get_profile", "get_follows", "get_followers", "follow_user"],

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/gwbischof/bluesky-social-mcp'

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