Borrowing it
Nothing to install: this file belongs to laltaffer/google-workspace-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/laltaffer/google-workspace-mcp/main/AGENTS.mdgit clone --depth 1 https://github.com/laltaffer/google-workspace-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/laltaffer/google-workspace-mcp/agents-md)<a href="https://agentmods.dev/instructions/laltaffer/google-workspace-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/laltaffer/google-workspace-mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/laltaffer/google-workspace-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/laltaffer/google-workspace-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00416 | $0.00416 |
| Opus 5.5 | $0.00166 | $0.00166 |
| Sonnet 5.5 | $0.00083 | $0.00083 |
| Haiku 4.5 | $0.00042 | $0.00042 |
Grade B, and why
google-workspace-mcp AGENTS.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
- Never put `GOOGLE_CLIENT_SECRET` in a client config (`~/.claude.json`, `~/.codex/config.toml`). The server reads it from the Keychain (service `google-workspace-mcp`, account `client-secret`), and an env value override What it actually says
google-workspace-mcp — agent context
TypeScript MCP server: read/write Google Docs, Sheets, Drive, Calendar, and file comments, across multiple Google accounts. Public repo; notes files stay local via exclude. Exists because official Google MCP servers still cannot edit Docs/Sheets in place.
Must-nots / privacy
- Never commit OAuth client secrets or tokens. Tokens live in the macOS Keychain (service
google-workspace-mcp, accounttokens) or~/.google-workspace-mcp/tokens.jsonelsewhere. - Do not commit
_brain.md/CLAUDE.mdinto the public tree. - Never put
GOOGLE_CLIENT_SECRETin a client config (~/.claude.json,~/.codex/config.toml). The server reads it from the Keychain (servicegoogle-workspace-mcp, accountclient-secret), and an env value overrides the Keychain, so a stale copy breaks auth. - Every client config that spawns one server per thread or chat (Codex) must set
MCP_IDLE_EXIT_MINUTES(30 today) so idle servers exit instead of piling up on stale builds. Claude Code spawns one per session and needs no value. The server always exits when its client closes stdin. - After rebuilding
dist, kill running servers so clients respawn on the new build:pkill -f 31_google-workspace-mcp/dist/index.js, then restart or reconnect the client.
Build / run / test
npm install
npm run build
npm test # vitest suite (mocked googleapis)
node dist/index.js # stdio MCP; needs GOOGLE_CLIENT_ID (secret from Keychain); registered user-scope in Claude Code and in ~/.codex/config.toml as google-workspace
Re-auth via the authorize MCP tool when refresh tokens expire (invalid_grant): open the URL it returns and approve.
Durable status and open items: _brain.md.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 26d ago Changed · +2 lines · +161 tokens per session scan A → B 5891cb750b9e
- 29d ago Changed · +23 tokens per session fd16ae1d5a69
- 1mo ago Changed · +30 tokens per session b84e7c311e27
- 1mo ago First seen · 20 lines · 202 tokens per session scan A 7c585a6d5d0a
google-workspace-mcp AGENTS.md is an instructions file published in the GitHub repository laltaffer/google-workspace-mcp (0 stars, last pushed 18d ago), licensed MIT. It adds 416 tokens to every session, about $0.0017 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-18.
google-workspace-mcp AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| google-workspace-mcp AGENTS.mdlaltaffer/google-workspace-mcp | Instructions file | 0 | 18d ago | MIT | B | 416 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,649 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |