Drive API

MCP Server generated by mcp.ag2.ai
  • python

0

GitHub Stars

python

Language

4 months ago

First Indexed

3 weeks ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "qingyun-wu-drive-api": {
      "command": "python",
      "args": [
        "mcp_server/main.py",
        "stdio"
      ],
      "env": {
        "CONFIG": "A JSON string containing the configuration",
        "SECURITY": "API keys or other security parameters",
        "CONFIG_PATH": "Path to a JSON configuration file (e.g., mcp_server/mcp_config.json)"
      }
    }
  }
}

You run an MCP (Multi-Agent Conversation Protocol) Server to expose a configurable endpoint that your MCP clients can connect to, enabling standardized communication with the Google Drive API v3 OpenAPI surface. This server hosts, coordinates, and transports messages between agents, making it simpler to integrate API-driven actions into your multi-agent workflows.

How to use

Start the MCP server in stdio mode to connect directly with your client processes. Use the complete runtime command to launch the server, then point your MCP client at the standard input/output streams provided by the process.

How to install

Prerequisites include Python 3.9 or higher and a Python package manager. You can also use an alternative runner tool if you prefer.

Step by step commands keep you aligned with the setup flow.

# 1) Clone the MCP server project
git clone <repository-url>
cd mcp-server

# 2) Install development dependencies
pip install -e ".[dev]"  # or use the dev container setup if you are inside it

# Alternative: use uv to install editable dev dependencies
uv pip install --editable ".[dev]"

Additional setup and running the server

Run the server in stdio mode using Python. You will interact with the server via its standard input/output streams.

python mcp_server/main.py stdio

Environment variables you can use to configure the server directly from your shell or orchestration tool:

  • CONFIG_PATH: Path to a JSON configuration file (for example, mcp_server/mcp_config.json).
  • CONFIG: A JSON string containing the configuration.
  • SECURITY: Environment variables containing security parameters (for example, API keys).
## Development and quality checks

This project uses dedicated tools for linting, static analysis, and testing to keep code quality high.

Linting and formatting

ruff check ruff format

Static analysis (example run)

./scripts/static-analysis.sh

Running tests with coverage

./scripts/test.sh ./scripts/test-cov.sh

## Pre-commit hooks

Set up pre-commit hooks to automatically check code before you commit changes.

pre-commit install

## Note on MCP transport modes

The MCP server supports multiple transport modes, including stdio, sse, and streamable-http. Choose the mode that best fits your client communication pattern.

## Available tools

### ruff

Lints and formats Python code. Use `ruff check` to find issues and `ruff format` to apply formatting.

### static\_analysis

Runs static analysis tools such as mypy, bandit, and semgrep to catch type issues and security concerns.

### tests

Executes tests with pytest and generates a coverage report. Use `./scripts/test.sh` for a quick run.

### precommit

Installs and runs pre-commit hooks before each commit to enforce code quality.
Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational