Back to Home
shark8848 icon

ontology-mcp-server-RL-Stable-Baselines3

Verified Safe

by shark8848

Overview

An AI agent for e-commerce, integrating ontology-based reasoning, business logic, memory systems, and a Gradio UI to simulate a complete shopping experience, enhanced with Reinforcement Learning capabilities for continuous self-improvement in tool orchestration strategies.

Installation

Run Command
docker-compose up -d

Environment Variables

  • OPENAI_API_KEY
  • MCP_BASE_URL
  • ONTOLOGY_DATA_DIR
  • LLM_PROVIDER

Security Notes

The project uses `eval` in `src/ontology_mcp_server/ecommerce_ontology.py` to evaluate rule conditions loaded from local `.ttl` files. While attempts are made to validate the Abstract Syntax Tree (`_validate_condition_ast`), modification of these trusted local `.ttl` files by an attacker could lead to arbitrary code execution. Another instance of `eval` in `src/agent/mcp_adapter.py` for mathematical expressions is tightly constrained to basic arithmetic operations and poses minimal risk. Overall, the project is relatively safe assuming local configuration and ontology files are trusted and cannot be tampered with by external actors.

Similar Servers

Stats

Interest Score35
Security Score8
Cost ClassHigh
Avg Tokens1200
Stars2
Forks1
Last Update2025-12-01

Tags

e-commerceAI AgentReinforcement LearningOntologyLLMFastAPIGradio