discovery-engine-api

discovery-engine-api

0

The MCP Server project is designed for running a multi-agent conversation protocol using OpenAPI specifications, auto-generated by AG2's builder tool. It's equipped with robust development tools and testing features to aid developers in managing and automating server deployment and operations effectively.

MCP Server

This project is an MCP (Multi-Agent Conversation Protocol) Server auto-generated using AG2's MCP builder. It utilizes the OpenAPI specification from Google's Discovery Engine. Key features include compatibility with Python 3.9+, the use of ruff for linting, mypy for static analysis, pytest for testing, and utilizes pre-commit hooks. Development and configuration scripts are provided for installing dependencies, running tests, and starting the server in various modes like stdio and sse. Configuration supports loading from JSON files or environment variables.

Prerequisites

  • Python 3.9+
  • pip and uv

Installation

Clone the repository, navigate to the mcp-server directory, and run setup scripts to install dependencies.

Development

Linting and formatting are handled by ruff, static analysis by mypy, and testing by pytest. Pre-commit hooks are used to automate these checks before committing the code.

Running the Server

Start the server using the main script with configurable transport modes. Use environment variables or a JSON configuration file for setting up the server.

Building and Publishing

Utilize Hatch for building and publishing the project, with shortcuts provided in script form for efficiency.