What are the prerequisites for Code Context MCP Server?
Node.js v16 or later, Git, and Ollama with an embedding model (recommended: `unclemusclez/jina-embeddings-v2-base-code`).
@fkesheh
基本信息
A Model Context Protocol (MCP) server for providing code context from git repositories
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"code-context-mcp": {
"command": "node",
"args": [
"-p",
"process.arch"
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
A Model Context Protocol (MCP) server that provides code context from local git repositories. It clones repositories locally, processes branches and files, generates embeddings for code chunks using Ollama, and performs semantic search over code. Designed for developers who need to search and understand codebases offline.
Install Node.js v16+, Git, and Ollama with an embedding model. Clone the repository, install dependencies (npm install), and build (npm run build). Set DATA_DIR and REPO_CACHE_DIR environment variables. Configure with Claude Desktop by adding the server entry in claude_desktop_config.json. Use the queryRepo tool with parameters like repoUrl, branch, query, keywords, filePatterns, excludePatterns, and limit.
Node.js v16 or later, Git, and Ollama with an embedding model (recommended: `unclemusclez/jina-embeddings-v2-base-code`).
If you encounter incompatible architecture errors with `better-sqlite3`, rebuild it from source: `npm rebuild better-sqlite3 --build-from-source`. Ensure your Node.js architecture (`process.arch`) matches the binary, and set `npm_config_arch=arm64` and `npm_config_target_arch=arm64` in your shell profile if needed.
Use `curl` to send a test embed request: `curl http://localhost:11434/api/embed -d '{"model":"unclemusclez/jina-embeddings-v2-base-code","input":"Llamas are members of the camelid family"}'`. Try the localhost, 127.0.0.1, or IPv6 address if one fails.
The `branch` parameter is optional. If not provided, the tool automatically uses the repository's default branch.
Yes. The optional `keywords` parameter filters chunks that contain at least one of the specified keywords (case‑insensitive). The `filePatterns` and `excludePatterns` parameters accept glob patterns (e.g., `**/*.ts`) to include or exclude files.
Gives AI agents public URLs (tunnels) for localhost, live HTTP traffic inspection, snapshot publishing, and access control. Part of LocalCan, the ngrok alternative for Mac, Windows and Linux. Free plan.

Know when your AI agents, cron jobs and CI pipelines fail, stall or go quiet. Your agent sets up monitors from a plain description, tells you what is broken and why, reads run history and traces, and writes notes on inci

Turn Perfex CRM into an AI-ready workspace. This MCP server exposes your full REST API to Claude, ChatGPT and any AI agent, so leads, invoices and tasks are one prompt away.

Build custom POS apps with your AI agent. Final's MCP server lets developers scaffold checkout flows, adapt vetted screen blueprints for counter POS, self-checkout kiosks, restaurant ordering and payment terminals, previ

评论