ai-api
by pwnies-peru
Overview
An AI-powered e-commerce sales agent that uses product search tools to assist users with queries, recommendations, and purchase guidance.
Installation
docker-compose up -dEnvironment Variables
- AI_GATEWAY_API_KEY
- TYPESENSE_HOST
- TYPESENSE_PORT
- TYPESENSE_PROTOCOL
- TYPESENSE_API_KEY
Security Notes
The `docker-compose.yml` file explicitly sets the Typesense API key to 'xyz' (and this is the default in `typesense_service.py` if not overridden by an environment variable). This hardcoded default API key is a severe security vulnerability, especially if the Typesense instance is exposed externally. Additionally, the FastAPI application uses `CORSMiddleware` with `allow_origins=["*"]`, which permits cross-origin requests from any domain, posing a potential security risk in a production environment by allowing unauthorized access if not properly secured otherwise. The direct passing of AI-generated arguments to internal functions, while currently constrained by simple types, is a pattern to watch for in more complex scenarios.
Similar Servers
typingmind-mcp
A server for managing and integrating Model Context Protocol (MCP) servers with TypingMind, enabling custom AI model connections.
mcp-framework-server
A Python-based server for a Model Context Protocol (MCP) enabling interactive career orientation (proforientation) dialogues via a REST API, designed to integrate with a Telegram bot.
fastsearch-mcp
Provides lightning-fast file search capabilities on Windows by directly accessing the NTFS Master File Table, integrated with Claude Desktop.
ai-mcp-server-base
Provides a base server for building AI Microservice Orchestration applications using FastMCP and FastAPI, featuring tools and resources for AI agents.