
mcp nodejs server
基于 NLX 框架的 Node.js 实现,用于处理工具请求并与 NLX 应用通信。
Repository Info
About This Server
基于 NLX 框架的 Node.js 实现,用于处理工具请求并与 NLX 应用通信。
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP NLX Node.js Server
Project Description
This project is a Node.js server implementation for the Model Context Protocol (MCP) using the NLX framework. It provides a server that can handle tool requests and communicate with an NLX application via API calls.
Configuration
Claude Desktop
-
Open your Claude Desktop configuration:
open ~/Library/Application\ Support/Claude/claude_desktop_config.json -
Add the NLX Application configuration:
{ "mcpServers": { "nlx": { "command": "npx", "args": ["-y", "@nlxai/mcp-nodejs-server"], "env": { "NLX_API_KEY": "", "NLX_APP_URL": "" } } } }
Setup
Prerequisites
- Node.js (version 18 or later)
- npm (Node Package Manager)
Installation
- Clone the repository:
git clone <repository-url> - Navigate to the project directory:
cd nlx-mcp-server - Install the dependencies:
npm install
Usage
Environment Variables
NLX_APP_URL: The base URL of your NLX application.NLX_API_KEY: The API key for authenticating requests to your NLX application.
Running the Server
To start the server, run the following command:
npm run start
The server will start and listen for requests via standard input/output.
Troubleshooting
Common Issues
- Module Not Found Errors: Ensure that all dependencies are correctly installed and that the paths in the import statements are correct.
- Environment Variables: Make sure that
NLX_APP_URLandNLX_API_KEYare set correctly in your environment.
Linter Errors
- Cannot find module: Verify that the module paths are correct and that the modules are installed.
- Implicit 'any' type: Consider adding TypeScript type definitions to avoid implicit 'any' types.
Release Management
Automated Releases with Semantic Release
This project uses semantic-release to automate the versioning and release process. Semantic Release ensures that the version number and changelog are automatically updated based on the commit messages.
Commit Message Format
Semantic Release uses the Angular commit message conventions. Here is a brief overview of the format:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing or correcting existing tests
- chore: Changes to the build process or auxiliary tools and libraries such as documentation generation
How to Release
To create a new release, simply push your changes to the main branch. The CI/CD pipeline will automatically run semantic-release to determine the next version number, update the changelog, and publish the release.
Ensure your commit messages follow the Angular conventions to trigger the correct version updates.
In dire cicd situations, you can manually trigger a release by running the following command:
npx semantic-release --no-ci
Quick Start
Clone the repository
git clone https://github.com/nlxai/mcp-nodejs-serverInstall dependencies
cd mcp-nodejs-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.