like_post
Like posts on Bluesky Social by providing the post URI and CID. This tool enables users to engage with content through likes within the Bluesky Social platform.
Instructions
Like a post.
Args:
ctx: MCP context
uri: URI of the post to like
cid: CID of the post to like
Returns:
Status of the like operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes | ||
| cid | Yes |
Implementation Reference
- server.py:237-265 (handler)The main handler function for the 'like_post' tool. It authenticates via get_authenticated_client, calls bluesky_client.like(uri, cid), and returns success or error details.@mcp.tool() def like_post( ctx: Context, uri: str, cid: str, ) -> Dict: """Like a post. Args: ctx: MCP context uri: URI of the post to like cid: CID of the post to like Returns: Status of the like operation """ try: bluesky_client = get_authenticated_client(ctx) like_response = bluesky_client.like(uri, cid) return { "status": "success", "message": "Post liked successfully", "like_uri": like_response.uri, "like_cid": like_response.cid, } except Exception as e: error_msg = f"Failed to like post: {str(e)}" return {"status": "error", "message": error_msg}