Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dvlpjrs/guMCP/llms.txt
Use this file to discover all available pages before exploring further.
Overview
LocalAuthClient is an implementation of BaseAuthClient that reads and writes credentials to local files. It’s designed for local development and self-hosted installations.
Source: src/auth/clients/LocalAuthClient.py:17
Class Definition
Constructor
Source:src/auth/clients/LocalAuthClient.py:25
Directory containing OAuth config files. Defaults to
GUMCP_OAUTH_CONFIG_DIR environment variable or {project_root}/local_auth/oauth_configsBase directory to store user credentials. Defaults to
GUMCP_CREDENTIALS_DIR environment variable or {project_root}/local_auth/credentialsMethods
get_oauth_config
Retrieves OAuth configuration from a local JSON file. Source:src/auth/clients/LocalAuthClient.py:56
Name of the service (e.g., “gdrive”, “github”, “slack”)
OAuth configuration loaded from
{oauth_config_base_dir}/{service_name}/oauth.jsonValueError- If OAuth config directory is not setFileNotFoundError- If config file doesn’t exist at expected path
get_user_credentials
Retrieves user credentials from a local JSON file. Source:src/auth/clients/LocalAuthClient.py:74
Name of the service
Identifier for the user
Credentials data loaded from
{credentials_base_dir}/{service_name}/{user_id}_credentials.json, or None if file doesn’t existValueError- If credentials directory is not set
save_user_credentials
Saves user credentials to a local JSON file. Source:src/auth/clients/LocalAuthClient.py:95
Name of the service
Identifier for the user
Credentials to save. Can be a dict, an object with a
to_json() method, or any JSON-serializable objectValueError- If credentials directory is not set
{credentials_base_dir}/{service_name}/{user_id}_credentials.json
File Structure
OAuth Config Files
Credentials Files
Environment Variables
Override default OAuth config directory location
Override default credentials directory location
Example Usage
See Also
- BaseAuthClient - Abstract base class
- GumloopAuthClient - Alternative cloud-based implementation
- create_auth_client() - Factory function