Back to Home
iarwain1 icon

ErgoAI-MCP-server

by iarwain1

Overview

Enables AI coding agents to interact with the ErgoAI reasoning engine for logic programming, query execution, and knowledge representation.

Installation

Run Command
npx ergoai-mcp-server

Environment Variables

  • ERGOAI_PATH

Security Notes

Critical shell injection vulnerability identified: The `run_ergo_query` tool directly uses user-provided `query` strings in a `spawn` command where `shell: true` is enabled for Windows (via `spawn` options). This allows malicious shell metacharacters (e.g., `&`, `|`, `&&`, `||`) within the query to execute arbitrary commands via `cmd.exe` on Windows systems. On Linux/macOS, direct command injection into `runergo` itself (if it supports such escapes within its '-e' argument) is also a concern. While `run_ergo_code` and `check_ergo_syntax` write code to temporary files, `run_ergo_file` directly uses `file_path` as an argument, which could still be vulnerable to shell injection depending on the path's content. The overall lack of input sanitization for user-provided query strings and file paths before executing external processes makes this server unsafe to run without modifications.

Similar Servers

Stats

Interest Score0
Security Score2
Cost ClassHigh
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-10

Tags

MCPErgoAILogic ProgrammingAI Agent ToolKnowledge Representation