Cocode-Precise
Verified Safeby L0stInFades
Overview
An MCP server for precise code symbol retrieval, returning exact source code for functions, classes, and methods by name, and offering semantic search capabilities.
Installation
python -m src.serverEnvironment Variables
- COCOINDEX_DATABASE_URL
- OPENAI_API_KEY
- JINA_API_KEY
- MISTRAL_API_KEY
Security Notes
The server employs robust security practices, including parameterized SQL queries to prevent injection, path validation (resolving absolute paths, checking for symlinks, verifying directory existence, and ensuring files are within the repository) to prevent directory traversal attacks, and strict environment variable usage for API keys instead of hardcoding secrets. Input length limits (e.g., symbol_name, file size) are also enforced to prevent resource exhaustion. No 'eval' or malicious patterns were identified in the provided source code. The HTTP clients for external APIs use timeouts to prevent hangs.
Similar Servers
mcp
This MCP server assists developers by identifying inefficient or outdated npm packages in install commands and source files, providing migration documentation.
MCP_SERVER
Provides a Micro-Agent Control Plane (MCP) server to expose smart meter data, usage calculations, and billing information as callable tools.
mcp-server-yt
Cannot determine use case as the source code was not provided for analysis.
mcp-client-and-server
An MCP server that provides AI-agent callable tools and resources for managing guitar product inventory and customer orders, integrated with a product catalog and fulfillment API.