MCPInstall
MCPGuide logo

MCPGuide

by mnaei mnaei/MCPGuide
READMEmain

MCPGuide

MCPGuide is a Node.js implementation of the Model Context Protocol (MCP) for Large Language Models (LLMs). It provides a framework for managing and providing context to LLMs through a standardized protocol.

Features

  • Implementation of the Model Context Protocol (MCP) SDK
  • Knowledge base management for LLM context
  • Event-driven architecture for real-time updates
  • TypeScript support with full type safety
  • Command-line interface for easy interaction

Prerequisites

  • Node.js (v14 or higher)
  • npm (v6 or higher)

Installation

npm install mcpguide

Usage

Command Line Interface

mcpguide [options]

Development Mode

  1. Clone the repository:
git clone https://github.com/yourusername/mcpguide.git
cd mcpguide
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Start the development server:
npm run start

Available Scripts

  • npm run build - Compiles TypeScript to JavaScript
  • npm run start - Starts the production server
  • npm run test - Runs all tests
  • npm run test:client - Runs client-specific tests
  • npm run listener - Starts the development listener

Project Structure

mcpguide/
├── src/
│   ├── config/         # Configuration files
│   ├── utils/          # Utility functions
│   ├── host.ts         # Main host implementation
│   ├── listener.ts     # Event listener implementation
│   ├── knowledgebase.ts # Knowledge base management
│   └── test-logger.ts  # Test logging utilities
├── test/              # Test files
├── dist/              # Compiled JavaScript files
└── data/              # Data files

Dependencies

  • @modelcontextprotocol/sdk: MCP SDK implementation
  • commander: Command-line interface framework
  • eventsource: Event source implementation
  • mcps-logger: Logging utilities
  • zod: Runtime type checking and validation

Development

The project uses TypeScript for type safety and better development experience. Jest is used for testing.

Running Tests

npm test

Building

npm run build

License

ISC

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.