编码助手服务器
编码助手服务器是一个 MCP(模型上下文协议)服务器,可增强 Cline 编码代理的功能。它提供智能代码建议,减少幻觉,并通过利用项目文档并检测代码库中使用的技术来记录知识库。
特征
代码建议:根据您的代码片段和项目文档提供上下文感知的代码建议。
文档集成:从
docs目录或提供的 URL 加载并矢量化文档文件。技术检测:自动检测项目中使用的编程语言、框架和库。
自动文档检索:查找检测到的技术的官方文档链接并将其添加到知识库。
项目路径自动化:从
project_path.txt读取项目路径,以便与 Cline 中的当前项目无缝集成。多种文档来源:接受多种文档和链接以丰富知识库。
安装
通过 Smithery 安装
要通过Smithery自动安装 Cline 编码助手服务器:
先决条件
Node.js v14 或更高版本
npm v6 或更高版本
OpenAI API 密钥
步骤
克隆存储库
git clone [repository-url]导航到项目目录
cd coding-assistant-server安装依赖项
npm install设置环境变量
在根目录中创建一个
.env文件。添加您的 OpenAI API 密钥:
OPENAI_API_KEY=your_openai_api_key_here
构建项目
npm run build
用法
启动服务器
启动编码助手 MCP 服务器:
与 Cline 集成
更新 MCP 设置
编辑您的 MCP 设置配置文件(例如
cline_mcp_settings.json)以包含编码助手服务器:{ "mcpServers": { "coding-assistant": { "command": "node", "args": ["/path/to/coding-assistant-server/build/index.js"], "env": { "OPENAI_API_KEY": "your_openai_api_key_here" } } } }
设置项目路径
使用当前项目的绝对路径创建或更新
coding-assistant-server目录中的project_path.txt文件:/path/to/your/project
重启Cline
重新启动Cline或重新加载MCP设置以连接编码助手服务器。
使用工具
get_suggestions工具
根据提供的代码上下文提供代码建议。
用法示例:
Cline 使用了coding-assistant MCP 服务器上的一个工具:
获取建议
根据提供的代码上下文获取代码建议
参数
回复
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
增强 Cline 编码代理功能的服务器。它提供智能代码建议,减少幻觉,并通过利用项目文档并检测代码库中使用的技术来记录知识库。
Related MCP Servers
- AsecurityFlicenseAqualityThe server facilitates natural language interactions for exploring and understanding codebases, providing insights into data models and system architecture using a cost-effective, simple setup with support for existing Claude Pro subscriptions.Last updated -420
- -securityFlicense-qualityThis server enables AI assistants (CLINE, Cursor, Windsurf, Claude Desktop) to share a common knowledge base through Retrieval Augmented Generation (RAG), providing consistent information access across multiple tools.Last updated -4
- -securityAlicense-qualityAn intelligent codebase processing server that provides agentic RAG capabilities for code repositories, enabling semantic search and contextual understanding through self-evaluating retrieval loops.Last updated -MIT License
- -securityFlicense-qualityA local server that provides powerful code analysis and search capabilities for software projects, helping AI assistants and development tools understand codebases for tasks like code generation and refactoring.Last updated -4