Test_aaa MCP Server
README.md
# ๐ง Test_aaa MCP Server
This module implements the **MCP protocol bindings** for the `Test_aaa` agent.
It auto-generates MCP compliant tools or data models and server code.
The server acts as a wrapper over the agent's async call loop and translates standard input/output formats.
---
## ๐ Overview
- **Description**: MCP server generated from OpenAPI by Backstage
- **Version**: 0.1.0
- **Author**: Platform Engineering
---
## ๐ Module Structure
```
mcp_test_aaa/
โโโ __init__.py
โโโ server.py
โโโ api/
โ โโโ __init__.py
โ โโโ client.py
โโโ models/
โ โโโ __init__.py
โ โโโ base.py
โโโ tools/
โโโ __init__.py
โโโ pet_findbystatus.py
โโโ pet_findbytags.py
โโโ pet_petid_uploadimage.py
โโโ pet_petid.py
โโโ pet.py
โโโ store_inventory.py
โโโ store_order_orderid.py
โโโ store_order.py
โโโ user_createwitharray.py
โโโ user_createwithlist.py
โโโ user_login.py
โโโ user_logout.py
โโโ user_username.py
โโโ user.py
```
---
## ๐ Running the MCP Server
Make sure dependencies are installed and environment variables are configured. Then run:
```bash
poetry run mcp_test_aaa
```
Or directly with Python:
```bash
uv run python -m mcp_test_aaa.server
```
---
## ๐ API Endpoints
- `MCP /mcp` โ Streamable HTTP endpoint for MCP clients
You can test with:
```bash
curl -i http://localhost:8000/mcp
```
---
## โ๏ธ Environment Variables
| Variable | Description |
|----------------------|------------------------------------------|
| `TEST_AAA_API_URL` | Base URL of the upstream API |
| `TEST_AAA_TOKEN` | Token used to authenticate against the API |
| `MCP_MODE` | Transport mode (stdio, http) |
| `MCP_HOST` | Host to bind the MCP server |
| `MCP_PORT` | Port to run the MCP server (default: 8000) |
---
## ๐งฐ Available Tools
The following tools are exposed by this agent via the MCP protocol. These are defined in the `tools/` directory and registered at runtime.
- `pet_petid_uploadimage.post_upload_file`
- `pet.post_add_pet`
- `pet.put_upd_pet`
- `pet_findbystatus.get_find_pets_status`
- `pet_findbytags.get_find_pets_tags`
- `pet_petid.get_pet_id`
- `pet_petid.post_upd_pet_form`
- `pet_petid.del_pet`
- `store_inventory.get_inventory`
- `store_order.post_place_order`
- `store_order_orderid.get_order_id`
- `store_order_orderid.del_order`
- `user_createwithlist.post_new_users_ls_input`
- `user_username.get_user_name`
- `user_username.put_upd_user`
- `user_username.del_user`
- `user_login.get_login_user`
- `user_logout.get_logout_user`
- `user_createwitharray.post_new_users_array_input`
- `user.post_new_user`
---
## ๐งช Testing
To test locally:
```bash
uv run python -m mcp_test_aaa.server
```
Or with the MCP Inspector:
```bash
npx @modelcontextprotocol/inspector uv run python -m mcp_test_aaa.server
```
---
## ๐ References
- [OpenAPI MCP Codegen](https://github.com/cnoe-io/openapi-mcp-codegen)
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo issues