Back to Home
vitorcalvi icon

cog-mcp

by vitorcalvi

Overview

Provides AI assistants with semantic code search and code structure analysis using local Metal GPU acceleration on Apple Silicon.

Installation

Run Command
npx ts-node dreams-mcp.ts

Security Notes

The server uses `child_process.exec` to run Python scripts constructed from user input. While `query` and `text` inputs are partially escaped (single quotes), the `file_path` argument in the `get_file_structure` tool is directly interpolated into the Python script without proper escaping. This creates a critical path traversal vulnerability, allowing an attacker to potentially read arbitrary files on the system by providing a path like `../../../../etc/passwd`.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-18

Tags

semantic searchcode analysisApple SiliconAI toolsMCP