Back to Home
PatrickSys icon

codebase-context

Verified Safe

by PatrickSys

Overview

An MCP server providing real-time codebase context (patterns, libraries, architecture, momentum) to AI coding agents to improve code quality and adherence to team standards.

Installation

Run Command
npx codebase-context /path/to/your/project

Environment Variables

  • EMBEDDING_PROVIDER
  • EMBEDDING_MODEL
  • OPENAI_API_KEY
  • CODEBASE_ROOT
  • CODEBASE_CONTEXT_DEBUG

Security Notes

The server executes `git log` via `child_process.exec` to gather file commit dates for pattern momentum analysis. While `exec` can be risky, its usage here is limited to a specific, non-user-controlled command (`git log`) and wrapped with error handling, reducing the direct arbitrary command injection risk. It can be configured to use OpenAI embeddings, which requires an `OPENAI_API_KEY` that should be managed securely. The `apiEndpoint` for OpenAI is configurable; using an untrusted endpoint could compromise the API key. There are no obvious hardcoded secrets or malicious patterns (e.g., `eval` of user input) detected. The tool runs locally, limiting external attack surface.

Similar Servers

Stats

Interest Score48
Security Score8
Cost ClassLow
Avg Tokens500
Stars20
Forks3
Last Update2026-01-16

Tags

mcpai-coding-agentcodebase-analysissemantic-searchdeveloper-tools