Skip to main content

The Nexlify MCP Server is a lightweight Python package designed to integrate GitHub Copilot with the Nexlify AI system.

Project description

Nexlify MCP Server Package

Overview

The Nexlify MCP Server is a lightweight Python package designed to integrate GitHub Copilot with the Nexlify AI system. It acts as a bridge, allowing developers to send queries from their IDE directly to the Nexlify API server—a CrewAI-based agentic AI service. This server executes queries against a vector database (powered by Qdrant) for internal documentation and performs restricted searches on whitelisted URLs (e.g., GitHub, StackOverflow) to retrieve relevant results. The package implements the Model Context Protocol (MCP) for seamless communication with GitHub Copilot, enhancing developer productivity by providing RAG-based (Retrieval-Augmented Generation) responses within the IDE.

Key features include:

  • Simple query forwarding to the Nexlify CrewAI microservice.
  • Support for semantic searches using embeddings stored in Qdrant.
  • Restriction to whitelisted URLs for safe and targeted internet searches.
  • Easy setup for local running and IDE integration.

This package is part of the Nexlify MVP, which leverages technologies like FastAPI, CrewAI, and Gemini AI for embedding generation.

Installation

To install the latest version of the Nexlify MCP package, use pip. It is published on PyPI for easy access.

pip install nexlify-mcp-server

Requirements

  • Python 3.10 or higher.
  • Dependencies: requests (automatically installed via pip).

Configuration

Before using the package, configure your environment and IDE.

Environment Variables

Create a .env file in your project root with the following (take reference from .env.example):

NEXLIFY_API_BASE_URI=<your_api_base_uri>
MCP_TIMEOUT=500 # Timeout in seconds

Load these variables using python-dotenv if needed in custom scripts.

IDE Setup

  • VS Code: Add the MCP server configuration to .vscode/mcp.json or settings.json. Enable MCP discovery with "chat.mcp.discovery.enabled": true and specify the local server URL (e.g., http://localhost:8000).
  • IntelliJ IDEA: Configure via the Tools menu. Add the MCP server endpoint and enable integration for GitHub Copilot queries.

Ensure the Nexlify CrewAI microservice is running and accessible (e.g., via Docker Compose or AWS EC2 deployment).

Add this JSON configuration in your current workspace, file -> .vscode/mcp.json

{
  "servers": {
    "nexlify-mcp-server": {
      "type": "stdio",
      "command": "nexlify_mcp_server",
      "env": {
        "NEXLIFY_API_BASE_URI": "${input:nexlify-app-uri}",
      }
      
    }
  },
  "inputs": [
    {
      "id": "nexlify-app-uri",
      "type": "promptString",
      "description": "Enter the URL of your Netlify app.",
      "default": "http://0.0.0.0:8000",
    },
  ],
}

Usage

Running the MCP Server

To run the MCP server, execute this command:

nexlify-mcp-server

This starts a lightweight server that listens for MCP requests and forwards them to the configured CrewAI URL.

Querying from IDE

Once running and configured in your IDE:

  1. Open GitHub Copilot chat in VS Code or IntelliJ.
  2. Submit a query (e.g., "How do I fix this Python error?").
  3. The MCP server forwards the query to the CrewAI microservice.
  4. The CrewAI service:
    • Queries the vector database for internal results.
    • Searches whitelisted URLs for external insights.
  5. Consolidated results are returned and displayed in the IDE.

Publishing the Package

To publish the package, create a PyPI token using this URL: (https://pypi.org/manage/account/token/)

Package Details

To check the package details, follow this link: (https://pypi.org/project/nexlify-mcp-server/)

Make Commands

Command Description Usage Example
run Run the application make run
build Build the application make build
install Install the local build package (For Development only) make install PYTHON_PATH=""
publish Publish the application make publish

Limitations

  • Relies on the availability of the Nexlify CrewAI microservice.
  • Queries are limited to text-based inputs; no support for file uploads in MVP.
  • Internet searches are restricted to whitelisted URLs for safety.

License

This package is licensed under the MIT License. See the LICENSE file in the repository for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nexlify_mcp_server-0.1.2.tar.gz (33.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nexlify_mcp_server-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nexlify_mcp_server-0.1.2.tar.gz.

File metadata

  • Download URL: nexlify_mcp_server-0.1.2.tar.gz
  • Upload date:
  • Size: 33.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for nexlify_mcp_server-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ee27af267fd35d4a61c894826959e568b36f634c2fd18b6894d725378066224c
MD5 580326e6673e41a9bf8b1043490e816c
BLAKE2b-256 cd302d927aca096c831b18c55de2d72f4958ed2a2af4dd9b76665df77607a901

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexlify_mcp_server-0.1.2.tar.gz:

Publisher: nexlify-mcp-server-publish.yml on DeepakPant93/nexlify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nexlify_mcp_server-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nexlify_mcp_server-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ab31596c6985f0df8dd2eb58b585048e465c73beefccff279bdcf9b2cec78288
MD5 f8ce3d9b1dd345feb3a82dcf8ec85f25
BLAKE2b-256 6dedfb3ab34ca7c6db641d4964baa7b5f17c87f685bf7c023c5ebc02a457a193

See more details on using hashes here.

Provenance

The following attestation bundles were made for nexlify_mcp_server-0.1.2-py3-none-any.whl:

Publisher: nexlify-mcp-server-publish.yml on DeepakPant93/nexlify

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page