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.

36 lines (35 loc) 1.53 kB
import { SystempromptBlockResponse } from "../types/systemprompt.js"; import { JSONSchema7 } from "json-schema"; export declare const RESOURCE_TYPES: { readonly POST: "reddit_post"; readonly COMMENT: "reddit_comment"; readonly INSTRUCTIONS: "reddit_instructions"; readonly ANALYSIS: "reddit_subreddit_analysis"; readonly MESSAGE: "reddit_message"; }; export declare const ACTIONS: { readonly CREATE_REDDIT_POST: "create_reddit_post"; readonly CREATE_REDDIT_COMMENT: "create_reddit_comment"; readonly CREATE_REDDIT_MESSAGE: "create_reddit_message"; readonly DELETE_REDDIT_CONTENT: "delete_reddit_content"; readonly CONFIGURE_REDDIT_INSTRUCTIONS: "configure_reddit_instructions"; readonly SEND_REDDIT_POST: "send_reddit_post"; readonly SEND_REDDIT_COMMENT: "send_reddit_comment"; readonly SEND_REDDIT_MESSAGE: "send_reddit_message"; readonly VIEW_REDDIT_ANALYSIS: "view_reddit_analysis"; }; interface RedditPostArgs { subreddit: string; title: string; content?: string; } interface RedditReplyArgs { id: string; content: string; } export declare const getRedditSchemas: (resourceType: string) => Record<string, JSONSchema7>; export declare const getAvailableActions: (resourceType: string) => string[]; export declare const isRedditResource: (block: SystempromptBlockResponse) => boolean; export declare const assertRedditPostArgs: (args: unknown) => RedditPostArgs; export declare const assertRedditReplyArgs: (args: unknown) => RedditReplyArgs; export {};