Skip to main content
Glama

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

Implementation Reference

  • 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}

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