Chief of Staff Agent
Provides tools to read Discord channel messages via a bot for context and meeting briefings.
Provides tools to search Gmail messages and fetch email context for briefings.
Integrates with Google Workspace APIs to access Calendar, Gmail, and Drive data for meeting briefings and context.
Provides tools to list upcoming calendar events and fetch meeting context for briefings.
Provides tools to retrieve Google Drive documents for context and briefings.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Chief of Staff Agent
AI agent for meeting briefings, context management, and to-do tracking. Integrates with Google Workspace (Calendar, Gmail, Drive), Discord, and uses Claude or Ollama for summarization.
Quick Start
# 1. Install
pip install -e .
# 2. Create directories
mkdir -p credentials data
# 3. Set up credentials (see sections below)
# 4. Run
python -m src.mcp_server.serverRelated MCP server: mcp-google-calendar
Getting API Keys
Anthropic (Required)
Create an API key
Add to
.env:COS_ANTHROPIC_API_KEY=sk-ant-...
Google Workspace (Required)
Go to Google Cloud Console
Create a new project (or select existing)
Enable APIs:
Google Calendar API
Gmail API
Google Drive API
Go to APIs & Services > Credentials
Click Create Credentials > OAuth 2.0 Client ID
Select Desktop application
Download JSON and save as
credentials/google_credentials.json
Discord (Optional)
Create a new application
Go to Bot tab, create bot
Copy token to
.env:COS_DISCORD_BOT_TOKEN=...Add channel IDs:
COS_DISCORD_CHANNEL_IDS=["123456789","987654321"]
Ollama (Optional, for local LLM)
# Install from https://ollama.ai
ollama pull llama3.1:8bStoring Secrets
Create a .env file in the project root:
# Required
COS_USER_ID=your.email@gmail.com
COS_ANTHROPIC_API_KEY=sk-ant-api03-...
# LLM Provider ("anthropic" or "ollama")
COS_LLM_PROVIDER=anthropic
# Optional: Discord
COS_DISCORD_BOT_TOKEN=MTI...
COS_DISCORD_CHANNEL_IDS=["123456789"]
# Optional: Ollama (if using local LLM)
COS_OLLAMA_HOST=http://localhost:11434
COS_OLLAMA_MODEL=llama3.1:8b
# Optional: Database encryption
COS_DATABASE_ENCRYPTION_KEY=your-secret-key
# Optional: Scheduling (default: 8:00 AM)
COS_DAILY_BRIEFING_HOUR=8
COS_DAILY_BRIEFING_MINUTE=0File structure (credentials/ and data/ are git-ignored):
gws-mcp/
├── credentials/
│ ├── google_credentials.json # OAuth client from Google Console
│ └── google_token.json # Auto-generated after first auth
├── data/
│ └── cos.db # SQLite database (auto-created)
└── .env # Your secretsGoogle OAuth tokens are stored securely in your OS keyring (macOS Keychain, Windows Credential Manager, or Linux Secret Service).
Running the Agent
As MCP Server (for Claude Desktop/Code)
python -m src.mcp_server.serverAdd to Claude's MCP config (~/.claude/claude_desktop_config.json or similar):
{
"mcpServers": {
"chief-of-staff": {
"command": "python",
"args": ["-m", "src.mcp_server.server"],
"cwd": "/path/to/gws-mcp"
}
}
}First Run
On first run, a browser window opens for Google OAuth consent. Grant read access to Calendar, Gmail, and Drive.
Force Run Now (Bypass Scheduler)
Create a script run_briefing.py:
#!/usr/bin/env python3
"""Run a meeting briefing immediately, bypassing the scheduler."""
import asyncio
from src.core.config import get_settings
from src.agents.briefing import BriefingAgent
from src.google_client.auth import GoogleAuth
from src.google_client.calendar import GoogleCalendarClient
from src.google_client.gmail import GoogleGmailClient
from src.google_client.drive import GoogleDriveClient
from src.discord_client.client import DiscordBotClient
from src.storage.database import Database
from src.storage.repository import SQLiteRepository
from src.storage.migrations import run_migrations
from src.llm.factory import create_llm_client
from src.document_processor.processor import DocumentProcessor
async def main():
settings = get_settings()
# Initialize storage
db = Database(settings.database_path)
run_migrations(db)
storage = SQLiteRepository(db)
# Initialize Google clients
auth = GoogleAuth(settings.user_id)
creds = await auth.get_credentials()
calendar = GoogleCalendarClient(credentials=creds)
gmail = GoogleGmailClient(credentials=creds)
drive = GoogleDriveClient(credentials=creds)
# Initialize Discord (optional)
discord = None
if settings.discord_bot_token:
discord = DiscordBotClient(settings.discord_bot_token)
# Initialize LLM and processor
llm = create_llm_client(settings)
processor = DocumentProcessor(llm=llm, settings=settings)
# Create briefing agent
agent = BriefingAgent(
llm=llm,
calendar=calendar,
gmail=gmail,
drive=drive,
discord=discord,
storage=storage,
processor=processor,
settings=settings,
)
# Generate briefing
print("Generating briefing for next meeting...")
briefing = await agent.generate_briefing_for_next_meeting()
if briefing:
print(f"\n{'='*60}")
print(f"BRIEFING: {briefing.event_title}")
print(f"{'='*60}\n")
print(briefing.content)
else:
print("No upcoming meetings with attendees found.")
if __name__ == "__main__":
asyncio.run(main())Run it:
python run_briefing.pyAvailable MCP Tools
Tool | Description |
| List todos (optionally filter by status) |
| Add a new todo item |
| Update todo status |
| List upcoming calendar events |
| Search Gmail messages |
| Get a Google Drive document |
| Read Discord channel messages |
| Generate a meeting briefing |
Configuration Reference
Variable | Default | Description |
| required | User identifier (email) |
| - | Anthropic API key |
|
|
|
|
| Claude model |
|
| Ollama server URL |
|
| Ollama model |
|
| OAuth client file |
|
| SQLite database path |
| - | Optional SQLCipher key |
| - | Discord bot token |
|
| JSON array of channel IDs |
|
| Days ahead to fetch events |
|
| Days back to search emails |
|
| Hour for daily briefing (24h) |
|
| Minute for daily briefing |
|
| Seconds to wait for write consent |
Development
# Install with dev tools
pip install -e ".[dev]"
# Run static analysis (required before commits)
python tools/analyzers/static_rigor.py src/
python tools/analyzers/contracts.py src/ --strict
python tools/analyzers/scaling.py src/
python tools/analyzers/callgraph.py src/ --format=summarySee docs/DESIGN.md for architecture details.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Cross-tool persistent memory and context for AI assistants over MCP.
Shared memory for your AI tools: tasks, notes and context every tool can read and write over MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI agents and users to manage workspace files, monitor system metrics, take persistent notes, and retrieve weather data via MCP tools and resources.-
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to manage Google Calendar events and Google Tasks through a set of MCP tools.18 npm2MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to list Google Drive files, read/write Google Sheets, and query external REST APIs through MCP tools.-
- AlicenseNot gradedqualityCmaintenanceProvides calendar, email, meeting transcription and summarization, and weather tools via MCP, enabling users to manage schedules, handle correspondence, capture meeting insights, and check conditions through natural language.MIT