READMEmain
We couldn't render this README. Read it on GitHub
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
- Clone the repository:
git clone https://github.com/yourusername/mcpguide.git
cd mcpguide
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the development server:
npm run start
Available Scripts
npm run build- Compiles TypeScript to JavaScriptnpm run start- Starts the production servernpm run test- Runs all testsnpm run test:client- Runs client-specific testsnpm 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 implementationcommander: Command-line interface frameworkeventsource: Event source implementationmcps-logger: Logging utilitieszod: 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.