### Installing mcp-gsuite via Smithery (Bash) Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Command to install the mcp-gsuite MCP server automatically using the Smithery CLI tool for the Claude client. Requires npx to be available. ```bash npx -y @smithery/cli install mcp-gsuite --client claude ``` -------------------------------- ### Run MCP Server with Custom Paths - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Example command demonstrating how to run the `mcp-gsuite` server using `uv run` and specifying custom paths for the OAuth client file, accounts file, and credentials directory via command-line options. ```bash uv run mcp-gsuite --gauth-file /path/to/custom/.gauth.json --accounts-file /path/to/custom/.accounts.json --credentials-dir /path/to/custom/credentials ``` -------------------------------- ### Sync Dependencies and Update Lockfile - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Uses the `uv sync` command to synchronize project dependencies and update the lockfile, ensuring the project has the correct package versions installed. ```bash uv sync ``` -------------------------------- ### Configure MCP Server for Published (Custom Paths) - JSON Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Configures the Claude Desktop application to run the published `mcp-gsuite` server using `uvx`, specifying custom paths for accounts and credentials files. This configuration is for using a globally installed or published version. ```json { "mcpServers": { "mcp-gsuite": { "command": "uvx", "args": [ "mcp-gsuite", "--accounts-file", "/path/to/custom/.accounts.json", "--credentials-dir", "/path/to/custom/credentials" ] } } } ``` -------------------------------- ### Configure MCP Server for Development (Basic) - JSON Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Configures the Claude Desktop application to run the `mcp-gsuite` server using `uv` from a local directory. This is a basic configuration for development or unpublished servers. ```json { "mcpServers": { "mcp-gsuite": { "command": "uv", "args": [ "--directory", "/mcp-gsuite", "run", "mcp-gsuite" ] } } } ``` -------------------------------- ### Build Package Distributions - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Uses the `uv build` command to create source and wheel distributions of the package, preparing it for publication. The output files are placed in the `dist/` directory. ```bash uv build ``` -------------------------------- ### Publish Package to PyPI - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Uses the `uv publish` command to upload the built package distributions to PyPI. Requires PyPI credentials to be set via environment variables or command-line flags. ```bash uv publish ``` -------------------------------- ### Configure MCP Server for Development (Custom Paths) - JSON Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Configures the Claude Desktop application to run the `mcp-gsuite` server using `uv` from a local directory, specifying custom paths for accounts and credentials files. Useful for testing with different configurations. ```json { "mcpServers": { "mcp-gsuite": { "command": "uv", "args": [ "--directory", "/mcp-gsuite", "run", "mcp-gsuite", "--accounts-file", "/path/to/custom/.accounts.json", "--credentials-dir", "/path/to/custom/credentials" ] } } } ``` -------------------------------- ### Launch MCP Inspector for Debugging - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Launches the MCP Inspector tool using `npx` to debug the `mcp-gsuite` server running via `uv`. The inspector provides a web interface for debugging stdio-based servers. ```bash npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-gsuite run mcp-gsuite ``` -------------------------------- ### Account Information Configuration (.accounts.json) Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md JSON configuration file (.accounts.json) structure for defining the Google accounts the MCP server should manage. Allows specifying multiple accounts, their type, and optional extra_info to provide context to the AI. ```json { "accounts": [ { "email": "alice@bob.com", "account_type": "personal", "extra_info": "Additional info that you want to tell Claude: E.g. 'Contains Family Calendar'" } ] } ``` -------------------------------- ### Watch MCP Server Logs - Bash Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md Uses the `tail` command to display the last 20 lines of the `mcp-gsuite` server log file and continuously follow new entries. Useful for monitoring server activity and errors. ```bash tail -n 20 -f ~/Library/Logs/Claude/mcp-server-mcp-gsuite.log ``` -------------------------------- ### OAuth2 Credentials Configuration (.gauth.json) Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md JSON configuration file (.gauth.json) structure for storing Google OAuth2 client credentials. Replace $your_client_id and $your_client_secret with your actual values obtained from the Google Cloud Console. Includes redirect URIs and auth/token endpoints. ```json { "web": { "client_id": "$your_client_id", "client_secret": "$your_client_secret", "redirect_uris": ["http://localhost:4100/code"], "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token" } } ``` -------------------------------- ### Required OAuth2 Scopes (JSON) Source: https://github.com/markuspfundstein/mcp-gsuite/blob/main/README.md JSON array listing the necessary OAuth2 scopes required for the mcp-gsuite server to access Gmail and Calendar APIs, as well as user information. ```json [ "openid", "https://mail.google.com/", "https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/userinfo.email" ] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.