Back to Home
Abhi-vish icon

code-buddy

by Abhi-vish

Overview

An AI-powered coding companion that functions as a Model Context Protocol (MCP) server, providing AI assistants with extensive file system and development tools.

Installation

Run Command
uv --directory /path/to/code-buddy run python -m src.server.main

Environment Variables

  • OPENAI_API_KEY
  • PROJECT_ROOT
  • ALLOW_EXTERNAL_PATHS
  • MAX_FILE_SIZE
  • MAX_DEPTH
  • LOG_LEVEL

Security Notes

The server includes a `RunCommandTool` that uses `subprocess.run` (or `asyncio.create_subprocess_shell`) to execute arbitrary shell commands based on LLM output. Additionally, the `PathValidator`'s `allow_external_paths` is `true` by default, meaning the agent can access and modify files anywhere on the file system, not just within the project root. These features, while powerful, introduce significant security risks if the LLM's command generation or file access can be exploited by malicious prompts, potentially leading to arbitrary code execution or unauthorized file manipulation outside the intended project scope. The `edit_file` tool also has a strict matching requirement, pushing agents towards `write_file` which is more destructive for broad changes.

Similar Servers

Stats

Interest Score55
Security Score4
Cost ClassMedium
Avg Tokens1500
Stars1
Forks0
Last Update2025-12-06

Tags

AIMCPCoding AgentDevelopment ToolsFile System