Skip to main content
Glama

repost

Share another user's Bluesky post to your own feed using the post's URI and CID identifiers.

Instructions

Repost another user's post.

Args:
    ctx: MCP context
    uri: URI of the post to repost
    cid: CID of the post to repost

Returns:
    Status of the repost operation

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
uriYes
cidYes

Implementation Reference

  • Implementation of the 'repost' tool handler. Uses the atproto Client's repost method to repost a post given its URI and CID, returning success with repost_uri and repost_cid or error.
    @mcp.tool()
    def repost(
        ctx: Context,
        uri: str,
        cid: str,
    ) -> Dict:
        """Repost another user's post.
    
        Args:
            ctx: MCP context
            uri: URI of the post to repost
            cid: CID of the post to repost
    
        Returns:
            Status of the repost operation
        """
        try:
            bluesky_client = get_authenticated_client(ctx)
            repost_response = bluesky_client.repost(uri, cid)
            return {
                "status": "success",
                "message": "Post reposted successfully",
                "repost_uri": repost_response.uri,
                "repost_cid": repost_response.cid,
            }
        except Exception as e:
            error_msg = f"Failed to repost: {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