fix!: Remove MCP server mode (#275)
* BREAKING CHANGE: Remove MCP server mode * Add changeset file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@googleworkspace/cli": minor
|
||||
---
|
||||
|
||||
Remove `mcp` command
|
||||
@@ -161,7 +161,6 @@ Use these labels to categorize pull requests and issues:
|
||||
- `area: docs` — README, contributing guides, documentation
|
||||
- `area: tui` — Setup wizard, picker, input fields
|
||||
- `area: distribution` — Nix flake, cargo-dist, npm packaging, install methods
|
||||
- `area: mcp` — Model Context Protocol server/tools
|
||||
- `area: auth` — OAuth, credentials, multi-account, ADC
|
||||
- `area: skills` — AI skill generation and management
|
||||
|
||||
|
||||
@@ -34,7 +34,6 @@ npm install -g @googleworkspace/cli
|
||||
- [Why gws?](#why-gws)
|
||||
- [Authentication](#authentication)
|
||||
- [AI Agent Skills](#ai-agent-skills)
|
||||
- [MCP Server](#mcp-server)
|
||||
- [Advanced Usage](#advanced-usage)
|
||||
- [Environment Variables](#environment-variables)
|
||||
- [Architecture](#architecture)
|
||||
@@ -258,39 +257,6 @@ The `gws-shared` skill includes an `install` block so OpenClaw auto-installs the
|
||||
|
||||
Installing this extension gives your Gemini CLI agent direct access to all `gws` commands and Google Workspace agent skills. Because `gws` handles its own authentication securely, you simply need to authenticate your terminal once prior to using the agent, and the extension will automatically inherit your credentials.
|
||||
|
||||
## MCP Server
|
||||
|
||||
`gws mcp` starts a [Model Context Protocol](https://modelcontextprotocol.io) server over stdio, exposing Google Workspace APIs as structured tools that any MCP-compatible client (Claude Desktop, Gemini CLI, VS Code, etc.) can call.
|
||||
|
||||
```bash
|
||||
gws mcp -s drive # expose Drive tools
|
||||
gws mcp -s drive,gmail,calendar # expose multiple services
|
||||
gws mcp -s all # expose all services (many tools!)
|
||||
```
|
||||
|
||||
Configure in your MCP client:
|
||||
|
||||
```json
|
||||
{
|
||||
"mcpServers": {
|
||||
"gws": {
|
||||
"command": "gws",
|
||||
"args": ["mcp", "-s", "drive,gmail,calendar"]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
> [!TIP]
|
||||
> Each service adds roughly 10–80 tools. Keep the list to what you actually need
|
||||
> to stay under your client's tool limit (typically 50–100 tools).
|
||||
|
||||
| Flag | Description |
|
||||
| ----------------------- | -------------------------------------------- |
|
||||
| `-s, --services <list>` | Comma-separated services to expose, or `all` |
|
||||
| `-w, --workflows` | Also expose workflow tools |
|
||||
| `-e, --helpers` | Also expose helper tools |
|
||||
|
||||
## Advanced Usage
|
||||
|
||||
### Multipart Uploads
|
||||
|
||||
@@ -31,7 +31,6 @@ mod formatter;
|
||||
mod fs_util;
|
||||
mod generate_skills;
|
||||
mod helpers;
|
||||
mod mcp_server;
|
||||
mod oauth_config;
|
||||
mod schema;
|
||||
mod services;
|
||||
@@ -133,11 +132,6 @@ async fn run() -> Result<(), GwsError> {
|
||||
return auth_commands::handle_auth_command(&auth_args).await;
|
||||
}
|
||||
|
||||
// Handle the `mcp` command
|
||||
if first_arg == "mcp" {
|
||||
return mcp_server::start(&args[1..]).await;
|
||||
}
|
||||
|
||||
// Parse service name and optional version override
|
||||
let (api_name, version) = parse_service_and_version(&args, &first_arg)?;
|
||||
|
||||
|
||||
-1151
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user