UNPKG

systemprompt-mcp-reddit

Version:

A specialized Model Context Protocol (MCP) server that enables you to search, read, and interact with Reddit content, leveraging an AI Agent to help with each operation.

18 lines 725 B
import { updateBlocks } from "../notifications.js"; import { formatToolResponse } from "./types.js"; import { RedditError } from "../../types/reddit.js"; export const handleDeleteContent = async (args, { systemPromptService }) => { try { await systemPromptService.deleteBlock(args.id); updateBlocks(); return formatToolResponse({ message: `Successfully deleted content for ${args.id}`, type: "api", title: "Delete Content", }); } catch (error) { throw new RedditError(`Failed to delete content for ${args.id}: ${error instanceof Error ? error.message : "Unknown error"}`, "API_ERROR"); } }; //# sourceMappingURL=delete-content.js.map