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.
76 lines (75 loc) • 2.23 kB
TypeScript
import { SystempromptBlockResponse } from "../types/systemprompt.js";
export declare const RESOURCE_TYPES: {
readonly POST: "reddit_post";
readonly REPLY: "reddit_reply";
readonly MESSAGE: "reddit_message";
readonly INSTRUCTIONS: "reddit_instructions";
};
export declare const ACTIONS: {
readonly EDIT: "edit_block";
readonly DELETE: "delete_block";
readonly CREATE_POST: "create_post";
readonly CREATE_REPLY: "create_reply";
};
interface RedditPostArgs {
subreddit: string;
title: string;
kind: "link" | "self";
url?: string;
content?: string;
}
interface RedditReplyArgs {
postId: string;
content: string;
}
export declare const getRedditSchemas: () => {
create_reddit_post: {
type: string;
properties: {
subreddit: {
type: string;
description: string;
};
title: {
type: string;
description: string;
};
kind: {
type: string;
enum: string[];
description: string;
};
url: {
type: string;
description: string;
};
content: {
type: string;
description: string;
};
};
required: string[];
additionalProperties: boolean;
};
create_reddit_reply: {
type: string;
properties: {
postId: {
type: string;
description: string;
};
content: {
type: string;
description: string;
};
};
required: string[];
additionalProperties: boolean;
};
};
export declare const createResourceMetadata: (block: SystempromptBlockResponse) => Record<string, unknown>;
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 {};