Skip to main content
Glama

Reddit MCP Tool

config.cpython-310.pyc1.15 kB
o �]�h��@s:dZddlZddlmZddlmZeGdd�d��ZdS)z(Configuration management for Reddit MCP.�N)� dataclass)� load_dotenvc@s8eZdZUdZeed<eed<eed<ed dd��ZdS) � RedditConfigz.Reddit API configuration for read-only access.� client_id� client_secret� user_agent�returncCsFt�t�d�}t�d�}t�d�}|r|r|std��||||d�S)z.Load configuration from environment variables.ZREDDIT_CLIENT_IDZREDDIT_CLIENT_SECRETZREDDIT_USER_AGENTzsMissing required Reddit API configuration. Please set REDDIT_CLIENT_ID, REDDIT_CLIENT_SECRET, and REDDIT_USER_AGENT)rrr)r�os�getenv� ValueError)�clsrrr�r �3/Users/lige/Desktop/reddit-mcp/reddit_mcp/config.py�from_envs    ��zRedditConfig.from_envN)rr)�__name__� __module__� __qualname__�__doc__�str�__annotations__� classmethodrr r r rr s r)rr � dataclassesr�dotenvrrr r r r�<module>s   

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/GeLi2001/reddit-mcp'

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