Aura MCP Server
The Official Model Context Protocol (MCP) Adapter for Aura Platform
This package allows AI agents (like Claude Desktop, Cursor, or custom LLM apps) to natively discover and interact with the Aura Negotiation Platform. It acts as a Smart Client that handles cryptographic signing, so the LLM can focus on reasoning.
🎯 Features
Zero-Config Security: Automatically generates an Ed25519 session wallet on startup.
Protocol Translation: Converts simple MCP tool calls into signed HTTP requests for the Aura Gateway.
Toolbox:
search_hotels(query): Semantic search powered by Vector DB.negotiate_price(id, bid): Complex negotiation logic with polymorphic responses.
Cross-Platform: Distributable via PyPI /
uvx.
🚀 Quick Start (No Installation Required)
If you have uv installed, you can run the server directly from the source without cloning the repo.
Connecting to Claude Desktop
Add this to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
(Note: If you are developing locally, replace the URL with the local path to the adapters/mcp-server directory).
🛠️ Local Development
If you are contributing to Aura or running the platform locally.
1. Prerequisites
Python 3.10+
uvpackage managerAura Platform running (
docker-compose upin root)
2. Installation
Navigate to the adapter directory:
3. Running
You can run the server in development mode (with hot reload capabilities provided by fastmcp if configured, or just standard run):
🤖 Usage with LLMs
Once connected, the LLM will see two tools. Here is how it interacts with them:
search_hotels
search_hotelsUser Prompt: "Find me a cheap hostel in Bali." LLM Call: search_hotels(query="cheap hostel bali", limit=3) MCP Response:
negotiate_price
negotiate_priceUser Prompt: "Try to get it for $40." LLM Call: negotiate_price(item_id="hostel_beta", bid=40.0) MCP Response:
🧩 Configuration
The server is configured via Environment Variables.
AURA_GATEWAY_URL
http://localhost:8000
URL of the Aura API Gateway
LOG_LEVEL
INFO
Logging verbosity (DEBUG, INFO, ERROR)
🏗️ Architecture
This adapter follows the Hexagonal Architecture of the Aura Platform.
The MCP Server is a Driving Adapter that translates User Intent (via LLM) into Protocol Actions.
🧪 Testing
To test the logic without an LLM, you can use the mcp-cli inspector or a simple python script:
Or run a manual test script:
Run with: uv run test_flow.py
📄 License
MIT License. See LICENSE in the root directory.
Последнее обновление