bc-geographical-names-web-service---rest-api
0
This project is a server utilizing the Multi-Agent Conversation Protocol (MCP) designed for interaction with a specified OpenAPI. It supports various configurations and testing environments, focusing on development efficiency with tools like ruff and pytest.
MCP Server
This project is an MCP (Multi-Agent Conversation Protocol) Server designed for a specific OpenAPI URL. It is auto-generated using AG2's MCP builder and utilizes Python 3.9+.
Features
- Utilizes
ruff
for linting and formatting,mypy
for type checking, andpytest
for testing. - Supports different transport modes such as
stdio
andsse
. - Configurable via environment variables for custom server configurations.
Installation
- Clone the repository and navigate to the directory.
- Install dependencies using the
.devcontainer/setup.sh
script or manually viapip
oruv
.
Development and Testing
- Pre-commit hooks ensure code quality.
- Static analysis includes checks with
mypy
,bandit
, andsemgrep
. - Run tests with coverage using provided scripts.
Building and Publishing
- Uses Hatch for build and publish processes.
Running the Server
- Execute
mcp_server/main.py
with desired mode, configuring via environment variables.