Coding Assistant

by avioflagos

11 stars
Not rated
GitHub

About

Enhances coding capabilities by providing context-aware suggestions and documentation integration through code analysis, technology detection, and intelligent completion.

Details

Author
avioflagos
Repository
AviOfLagos/MCP-coding-assistant
GitHub stars
11
License
MIT License
Categories
Developer Tools, Design, Workplace, File Management, AI, Search, Knowledge Base, Frontend, API, Other
Tags
#integration

Code Suggestions : Offers context-aware code suggestions based on your code snippets and project documentation.
Documentation Integration : Loads and vectorizes documentation files from the docs directory or from provided URLs.
Technology Detection : Automatically detects programming languages, frameworks, and libraries used in your project.
Automatic Documentation Retrieval : Finds and adds official documentation links for detected technologies to the knowledge base.
Project Path Automation : Reads the project path from project_path.txt to seamlessly integrate with your current project in Cline.
Multiple Documentation Sources : Accepts multiple documents and links to enrich the knowledge base.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Coding Assistant
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/coding-assistant-server/build/index.js
    Environment
    • OPENAI_API_KEY your_openai_api_key_here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To install Coding Assistant Server for Cline automatically via Smithery:

npx -y @smithery/cli install coding-assistant-server --client cline

get_suggestions

Provides code suggestions based on the provided code context. Arguments: codeContext (object) containing code (string) and language (string).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "coding assistant": {
            "env": {
                "OPENAI_API_KEY": "your_openai_api_key_here"
            },
            "args": [
                "/path/to/coding-assistant-server/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "/path/to/coding-assistant-server/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "/path/to/coding-assistant-server/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "OPENAI_API_KEY": "your_openai_api_key_here"
    },
    "args": [
        "/path/to/coding-assistant-server/build/index.js"
    ],
    "command": "node"
}

Coding Assistant Server

smithery badge

The Coding Assistant Server is an MCP (Model Context Protocol) server that enhances the capabilities of the Cline coding agent. It provides intelligent code suggestions, reduces hallucinations, and documents the knowledge base by leveraging your project's documentation and detecting the technologies used in your codebase.

Features

Code Suggestions : Offers context-aware code suggestions based on your code snippets and project documentation.
Documentation Integration : Loads and vectorizes documentation files from the docs directory or from provided URLs.
Technology Detection : Automatically detects programming languages, frameworks, and libraries used in your project.
Automatic Documentation Retrieval : Finds and adds official documentation links for detected technologies to the knowledge base.
Project Path Automation : Reads the project path from project_path.txt to seamlessly integrate with your current project in Cline.
Multiple Documentation Sources : Accepts multiple documents and links to enrich the knowledge base.

Installation

Installing via Smithery

To install Coding Assistant Server for Cline automatically via Smithery:

npx -y @smithery/cli install coding-assistant-server --client cline

Prerequisites

Node.js v14 or higher
npm v6 or higher
OpenAI API Key

Steps

1. Clone the Repository

   git clone [repository-url]

2. Navigate to the Project Directory
   cd coding-assistant-server

3. Install Dependencies
   npm install

4. Set Up Environment Variables
Create a .env file in the root directory.
Add your OpenAI API key:
     OPENAI_API_KEY=your_openai_api_key_here

5. Build the Project
   npm run build

Usage

Starting the Server

Start the Coding Assistant MCP server:

node build/index.js

Integrating with Cline

1. Update MCP Settings
Edit your MCP settings configuration file (e.g., cline_mcp_settings.json) to include the coding assistant server:

     {
"mcpServers": {
"coding-assistant": {
"command": "node",
"args": ["/path/to/coding-assistant-server/build/index.js"],
"env": {
"OPENAI_API_KEY": "your_openai_api_key_here"
}
}
}
}

2. Set the Project Path
Create or update the project_path.txt file in the coding-assistant-server directory with the absolute path to your current project:
     /path/to/your/project

3. Restart Cline
Restart Cline or reload the MCP settings to connect the coding assistant server.

Using the Tools

get_suggestions Tool

Provides code suggestions based on the provided code context.

Example Usage :

<iframe></iframe>

Cline used a tool on the coding-assistant MCP server:

get_suggestions

Get code suggestions based on provided code context

Arguments

{
    "codeContext": {
      "code": "function helloWorld() { console.log('Hello, world!'); }",
      "language": "JavaScript"
    }
  }

<iframe></iframe>

Response

{
  "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"
    }
  ]
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.