Coding Assistant Server
编码助手服务器
编码助手服务器是一个 MCP(模型上下文协议)服务器,可增强 Cline 编码代理的功能。它提供智能代码建议,减少幻觉,并通过利用项目文档并检测代码库中使用的技术来记录知识库。
特征
代码建议:根据您的代码片段和项目文档提供上下文感知的代码建议。
文档集成:从
docs目录或提供的 URL 加载并矢量化文档文件。技术检测:自动检测项目中使用的编程语言、框架和库。
自动文档检索:查找检测到的技术的官方文档链接并将其添加到知识库。
项目路径自动化:从
project_path.txt读取项目路径,以便与 Cline 中的当前项目无缝集成。多种文档来源:接受多种文档和链接以丰富知识库。
Related MCP server: AgenticRAG MCP Server
安装
通过 Smithery 安装
要通过Smithery自动安装 Cline 编码助手服务器:
npx -y @smithery/cli install coding-assistant-server --client 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 服务器:
node build/index.js与 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 服务器上的一个工具:
获取建议
根据提供的代码上下文获取代码建议
参数
{
"codeContext": {
"code": "function helloWorld() { console.log('Hello, world!'); }",
"language": "JavaScript"
}
}回复
{
"suggestions": [
{
"source": "example.txt",
"content": "# Coding Assistant Documentation\n\nThis is a sample documentation file for the coding assistant server. You can add more documentation files here for the server to use.\n"
}
]
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared memory for coding agents. Stop re-explaining your codebase every session.
Serves your design system and coding standards to coding agents, so they stop guessing.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Project memory, documentation and controlled secret access for AI coding agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceThis 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.4MIT
- AlicenseNot gradedqualityDmaintenanceAn intelligent codebase processing server that provides agentic RAG capabilities for code repositories, enabling semantic search and contextual understanding through self-evaluating retrieval loops.2MIT
- FlicenseNot gradedqualityDmaintenanceA 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.4-
- AlicenseBqualityDmaintenanceA centralized Model Context Protocol server that provides common development tools (like formatting and translation) across all your Cline projects without needing to install them individually.8ISC