Metadata-Version: 2.4
Name: barie-google-chat-mcp
Version: 0.1.0
Summary: Google Chat MCP Server for managing spaces and messages via the Model Context Protocol
Author-email: Barie <support@barie.ai>
License: MIT
Keywords: google-api,google-chat,mcp,model-context-protocol
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Requires-Dist: google-api-python-client>=2.130.0
Requires-Dist: google-auth-oauthlib>=1.2.0
Requires-Dist: google-auth>=2.29.0
Requires-Dist: mcp>=0.9.0
Requires-Dist: pydantic>=2.0.0
Description-Content-Type: text/markdown

# Google Chat MCP Server

An MCP server for managing Google Chat spaces and messages, integrating seamlessly with AI assistants using the Model Context Protocol.

## Features

- **List Spaces**: List Google Chat spaces the user is a member of.
- **Get Space**: Retrieve details about a specific space.
- **Create Message**: Send messages to spaces (supports threading).
- **List Messages**: Retrieve message history from a space.
- **Get Message**: Get details about a specific message.
- **Update Message**: Edit existing messages.
- **Delete Message**: Remove messages.
- **List Memberships**: List members of a space.

## Installation

### Prerequisites

- Python 3.9 or higher.
- A Google Cloud Project with the Google Chat API enabled.
- OAuth2 credentials (Client ID and Client Secret).

### Local Setup

1. Install dependencies:
   ```bash
   pip install -e .
   ```

2. Run the server:
   ```bash
   python main.py --access-token <TOKEN> --refresh-token <REFRESH_TOKEN> --client-id <CLIENT_ID> --client-secret <CLIENT_SECRET>
   ```

## Configuration

Add the following to your MCP host configuration (e.g., `mcp-config.json`):

```json
{
  "mcpServers": {
    "barie-google-chat-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "/path/to/google_chat",
        "barie-google-chat-mcp",
        "--access-token",
        "YOUR_ACCESS_TOKEN",
        "--refresh-token",
        "YOUR_REFRESH_TOKEN",
        "--client-id",
        "YOUR_CLIENT_ID",
        "--client-secret",
        "YOUR_CLIENT_SECRET"
      ]
    }
  }
}
```

## Tools

- `list_spaces`: List spaces.
- `get_space`: Get space details.
- `create_message`: Send a message.
- `list_messages`: List messages in a space.
- `get_message`: Get message details.
- `update_message`: Update a message.
- `delete_message`: Delete a message.
- `list_memberships`: List space members.

## License

MIT
