Back to Home
sach91 icon

showcase

Verified Safe

by sach91

Overview

A prototype AI-powered customer support chatbot for TechGear Electronics, demonstrating integration with an MCP server for real-time product, customer, and order management.

Installation

Run Command
python app.py

Environment Variables

  • HF_TOKEN
  • MCP_SERVER_URL

Security Notes

The code effectively uses environment variables for sensitive tokens (`HF_TOKEN`) and avoids direct `eval()` or `exec()` calls. Input validation for tool arguments relies on the LLM's generated JSON, which is then parsed safely with `json.loads()`. The primary security consideration is the LLM's behavior in tool selection; while the system prompt emphasizes `verify_customer_pin` for sensitive operations, a sophisticated prompt injection could theoretically attempt to bypass this. However, the client code itself passes these tool calls to a backend MCP server, which would ideally enforce its own access controls. The `MCP_SERVER_URL` is configurable, preventing hardcoded external dependencies, but controlling this environment variable is crucial for security. Overall, the client-side code demonstrates good security practices for an LLM agent.

Similar Servers

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-12-10

Tags

chatbotcustomer supportLLM agenttool-useGradio