delete_post
Remove a specific post from Bluesky Social MCP by providing its URI. This tool ensures users can delete their content when needed, maintaining control over their social media presence.
Instructions
Delete a post created by the authenticated user.
Args:
ctx: MCP context
uri: URI of the post to delete
Returns:
Status of the delete operation
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uri | Yes |
Implementation Reference
- server.py:1002-1027 (handler)The delete_post tool handler function. Registered via @mcp.tool() decorator. Retrieves authenticated Bluesky client and calls delete_post on the given URI, returning success or error status.@mcp.tool() def delete_post( ctx: Context, uri: str, ) -> Dict: """Delete a post created by the authenticated user. Args: ctx: MCP context uri: URI of the post to delete Returns: Status of the delete operation """ try: bluesky_client = get_authenticated_client(ctx) # Delete the post bluesky_client.delete_post(uri) return { "status": "success", "message": "Post deleted successfully", } except Exception as e: error_msg = f"Failed to delete post: {str(e)}" return {"status": "error", "message": error_msg}