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
| Name | Required | Description | Default |
|---|---|---|---|
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!` }, })
- src/index.ts:128-140 (handler)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!` },
- src/index.ts:127-127 (schema)Zod schema for 'test_reddit_mcp_server' tool parameters: empty object (no input parameters required).parameters: z.object({}),