VOOZH about

URL: https://glama.ai/mcp/servers/AviOfLagos/MCP-coding-assistant?locale=zh-CN

⇱ 编码助手服务器 by AviOfLagos | Glama


编码助手服务器

👁 铁匠徽章

编码助手服务器是一个 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 密钥

步骤

  1. 克隆存储库

    git clone [repository-url]
  2. 导航到项目目录

    cd coding-assistant-server
  3. 安装依赖项

    npm install
  4. 设置环境变量

    • 在根目录中创建一个.env文件。

    • 添加您的 OpenAI API 密钥:

      OPENAI_API_KEY=your_openai_api_key_here
  5. 构建项目

    npm run build

用法

启动服务器

启动编码助手 MCP 服务器:

node build/index.js

与 Cline 集成

  1. 更新 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"
       }
       }
       }
      }
  2. 设置项目路径

    • 使用当前项目的绝对路径创建或更新coding-assistant-server目录中的project_path.txt文件:

      /path/to/your/project
  3. 重启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"
 }
 ]
}
F
license - not found
-
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AviOfLagos/MCP-coding-assistant'

If you have feedback or need assistance with the MCP directory API, please join our Discord server