Skip to main content
Glama

test_reddit_mcp_server

Verify the functionality and connectivity of the Reddit MCP Server to ensure it can properly fetch and create Reddit content.

Instructions

Test the Reddit MCP Server

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:124-141 (registration)
    Registration of the 'test_reddit_mcp_server' tool, including its schema (empty parameters), description, and inline handler function that checks Reddit client status and returns server status information.
    server.addTool({ name: "test_reddit_mcp_server", description: "Test the Reddit MCP Server connection and configuration", parameters: z.object({}), execute: async () => { const client = getRedditClient() const hasAuth = client ? "✓" : "✗" const hasWriteAccess = process.env.REDDIT_USERNAME && process.env.REDDIT_PASSWORD ? "✓" : "✗" return `Reddit MCP Server Status: - Server: ✓ Running - Reddit Client: ${hasAuth} ${client ? "Initialized" : "Not initialized"} - Write Access: ${hasWriteAccess} ${hasWriteAccess === "✓" ? "Available" : "Read-only mode"} - Version: 1.1.0 Ready to handle Reddit API requests!` }, })
  • The execute handler for 'test_reddit_mcp_server' which tests the Reddit client connection and reports server status including write access availability.
    execute: async () => { const client = getRedditClient() const hasAuth = client ? "✓" : "✗" const hasWriteAccess = process.env.REDDIT_USERNAME && process.env.REDDIT_PASSWORD ? "✓" : "✗" return `Reddit MCP Server Status: - Server: ✓ Running - Reddit Client: ${hasAuth} ${client ? "Initialized" : "Not initialized"} - Write Access: ${hasWriteAccess} ${hasWriteAccess === "✓" ? "Available" : "Read-only mode"} - Version: 1.1.0 Ready to handle Reddit API requests!` },
  • Zod schema for 'test_reddit_mcp_server' tool parameters: empty object (no input parameters required).
    parameters: z.object({}),

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jordanburke/reddit-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server