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.
25 lines (24 loc) • 1.38 kB
TypeScript
import { GetPromptResult, ListResourcesResult, ListPromptsResult, ReadResourceResult } from "@modelcontextprotocol/sdk/types.js";
import type { SystempromptPromptResponse, SystempromptBlockResponse, SystempromptAgentResponse } from "../types/systemprompt.js";
/**
* Maps a single prompt to the MCP GetPromptResult format.
* Used when retrieving a single prompt's details.
*/
export declare function mapPromptToGetPromptResult(prompt: SystempromptPromptResponse): GetPromptResult;
/**
* Maps an array of prompts to the MCP ListPromptsResult format.
* Used when listing multiple prompts.
*/
export declare function mapPromptsToListPromptsResult(prompts: SystempromptPromptResponse[]): ListPromptsResult;
/**
* Maps a single block to the MCP ReadResourceResult format.
* Used when retrieving a single block's details.
*/
export declare function mapBlockToReadResourceResult(block: SystempromptBlockResponse): ReadResourceResult;
export declare function mapAgentToReadResourceResult(agent: SystempromptAgentResponse): ReadResourceResult;
/**
* Maps an array of blocks to the MCP ListResourcesResult format.
* Used when listing multiple blocks.
*/
export declare function mapBlocksToListResourcesResult(blocks: SystempromptBlockResponse[]): ListResourcesResult;
export declare function mapAgentsToListResourcesResult(agents: SystempromptAgentResponse[]): ListResourcesResult;