Skip to main content
Glama

Coding Assistant Server

by AviOfLagos

编码助手服务器

编码助手服务器是一个 MCP(模型上下文协议)服务器,可增强 Cline 编码代理的功能。它提供智能代码建议,减少幻觉,并通过利用项目文档并检测代码库中使用的技术来记录知识库。

特征

  • 代码建议:根据您的代码片段和项目文档提供上下文感知的代码建议。
  • 文档集成:从docs目录或提供的 URL 加载并矢量化文档文件。
  • 技术检测:自动检测项目中使用的编程语言、框架和库。
  • 自动文档检索:查找检测到的技术的官方文档链接并将其添加到知识库。
  • 项目路径自动化:从project_path.txt读取项目路径,以便与 Cline 中的当前项目无缝集成。
  • 多种文档来源:接受多种文档和链接以丰富知识库。

安装

通过 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" } ] }
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

增强 Cline 编码代理功能的服务器。它提供智能代码建议,减少幻觉,并通过利用项目文档并检测代码库中使用的技术来记录知识库。

  1. 特征
    1. 安装
      1. 通过 Smithery 安装
      2. 先决条件
      3. 步骤
    2. 用法
      1. 启动服务器
      2. 与 Cline 集成
      3. 使用工具

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      A server that enhances AI assistants with the ability to update your JSON Resume by analyzing your coding projects, automatically extracting skills and generating professional descriptions.
      Last updated -
      3
      32
      39
      TypeScript
      The Unlicense
      • Apple
      • Linux
    • -
      security
      F
      license
      -
      quality
      An MCP server that connects to your Notion knowledge base, allowing you to query and retrieve information directly from VSCode using the Cline extension.
      Last updated -
      Python
      • Apple
    • -
      security
      F
      license
      -
      quality
      A server that connects AI coding assistants like Cursor and Cline to Apifox API definitions, allowing developers to implement API interfaces through natural language commands.
      Last updated -
      832
      1
      • Apple
      • Linux
    • -
      security
      A
      license
      -
      quality
      An MCP server that implements Claude Code-like functionality, allowing the AI to analyze codebases, modify files, execute commands, and manage projects through direct file system interactions.
      Last updated -
      179
      Python
      MIT License
      • Apple
      • Linux

    View all related MCP servers

    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