gchat_broadcast_text_payload
Facilitate the transmission of textual artifacts into designated Google Chat communication venues via webhook mechanisms. This utility abstracts away complex authorization protocols like OAuth, ensuring straightforward implementation for MCP-compliant operational frameworks.
Author

KaranThink41
Quick Info
Actions
Tags
Google Chat MCP Service Adapter
A Model Context Protocol (MCP) compliant service adapter engineered for interfacing with the Google Chat API through outbound webhook conduits. This component is specialized in dispatching plain text announcements into specified Chat rooms.
Core Capabilities
- Transmit unformatted textual content to Google Chat rooms utilizing webhooks.
- Streamlined, secure integration pathway based entirely on webhooks.
- Eliminates the prerequisite for explicit OAuth credential configuration.
- Optimized for seamless operation within MCP-aware environments.
Deployment Procedures
Utilizing Smithery (Preferred Method)
Invoke Smithery's command-line interface for server installation:
npx spinai-mcp install @KaranThink41/gchat_post_text_message --provider smithery
On-Premises Development Setup
- Obtain the source code repository:
git clone https://github.com/KaranThink41/google_chat_mcp_server.git
cd google_chat_mcp_server
- Fetch necessary package dependencies:
npm install
- Compile the application assets:
npm run build
- Initiate the service runtime:
node build/index.js
Containerized Execution (Docker)
Execution via Docker containers can be managed as follows:
- Construct the Docker image:
docker build -t google-chat-mcp-server .
- Launch the container instance, supplying required configuration parameters:
docker run -e GOOGLE_CHAT_SPACE_ID=your_space_identifier
-e GOOGLE_CHAT_API_KEY=your_access_key
-e GOOGLE_CHAT_TOKEN=your_session_key
google-chat-mcp-server
Execution Exemplar
To dispatch a message to a Google Chat destination, structure your invocation request as follows:
{
"method": "tools/call",
"params": {
"name": "post_text_message",
"arguments": {
"space_id": "your_space_identifier",
"key": "your_access_key",
"token": "your_session_key",
"text": "Greetings! This is a transmitted communication test!"
}
}
}
Necessary Configuration Parameters
The server necessitates the following environment variables for operational continuity:
GOOGLE_CHAT_SPACE_ID: Identifies the target Google Chat communication area.GOOGLE_CHAT_API_KEY: The credential key sourced from the Google Cloud project.GOOGLE_CHAT_TOKEN: The essential authorization credential for the Chat service.
If not utilizing Docker, establish a .env file containing:
GOOGLE_CHAT_SPACE_ID=your_space_identifier
GOOGLE_CHAT_API_KEY=your_access_key
GOOGLE_CHAT_TOKEN=your_session_key
Security Posture
- Webhook endpoints are received directly within the transmission payload.
- No sensitive access credentials are persistently retained within the application source code.
- Comprehensive input validation precedes all outbound service interactions.
Collaboration Guidelines
- Fork the primary repository structure.
- Establish a dedicated feature branch (e.g.,
git checkout -b feature/enhanced-functionality). - Commit modifications (
git commit -m 'Implement feature enhancement X'). - Submit changes to the remote branch (
git push origin feature/enhanced-functionality). - Initiate a formal Pull Request.
Project Licensing
This software is governed under the terms of the MIT License; refer to the [LICENSE] file for comprehensive particulars.
