onemcp
by gdinesh012
Overview
Aggregates various Multiple Control Protocol (MCP) tools, providing a unified interface for semantic search and execution, primarily intended for AI agents or automated workflows.
Installation
go build -o onemcp-server ./cmd/one-mcp && ./onemcp-serverEnvironment Variables
- MCP_LOG_FILE
- MCP_LOG_LEVEL
- MCP_SERVER_NAME
- MCP_SERVER_VERSION
- ONEMCP_CONFIG
- PATH
Security Notes
1. Arbitrary Command Execution from Configuration: The `mcpServers` configuration allows defining external MCP servers via a `command` field, which is executed via `os/exec.Command`. If the `.onemcp.json` configuration file can be modified by an unauthorized entity, it presents a critical arbitrary command execution vulnerability. 2. Dangerous LLM CLI Flags: The `internal/llmsearch` package invokes external LLM CLIs (`claude`, `codex`) with explicitly 'dangerous' flags: `--dangerously-skip-permissions` (for `claude`) and `--dangerously-bypass-approvals-and-sandbox` (for `codex`). These flags disable important security safeguards of the underlying CLIs, increasing the risk of command injection, privilege escalation, or unintended side effects if the LLM output or prompts are not perfectly contained/sanitized. 3. External Dependency Risk: Reliance on external `claude`, `codex`, `copilot` CLIs introduces a dependency chain risk. Vulnerabilities in these external tools, or unexpected behavior from their LLM responses, could be amplified by the 'dangerous' flags. 4. No obvious hardcoded secrets or direct `eval` usage was found.
Similar Servers
klavis
Develop and deploy AI agents that interact with a wide array of web services (e.g., Gmail, YouTube, LinkedIn, Supabase, Salesforce, Kubernetes) through a standardized Model Context Protocol (MCP), often orchestrated by an intelligent routing layer like Strata.
mcp-omnisearch
Provides a unified interface for various search, AI response, content processing, and enhancement tools via Model Context Protocol (MCP).
mcp-devtools
A high-performance MCP server providing a unified interface to essential developer tools, featuring OAuth 2.0/2.1 authorization and a multi-layered security framework.
Polymcp
A comprehensive TypeScript framework for building and orchestrating Model Context Protocol (MCP) servers and AI agents, enabling LLMs to intelligently discover, select, and execute external tools.