MCP Test
A test repository for MCP (Model Context Protocol) functionality with TypeScript support.
Features
TypeScript-based MCP server implementation
Example configurations and usage
Jest-based test cases
Development tools setup (ts-node, ts-node-dev)
Project Structure
├── src/
│ ├── server.ts # Main server implementation
│ └── types/ # TypeScript definitions
├── examples/
│ └── basic-server.ts # Example usage
├── test/
│ └── server.test.ts # Test cases
└── package.json # Project configuration
Getting Started
Clone the repository
git clone https://github.com/zgh2hh/mcp-test.git
cd mcp-test
Install dependencies
npm install
Build the project
npm run build
Run examples
# Run the basic server example
npm run example
# Development mode with auto-reload
npm run dev
Run tests
npm test
Development
npm run build- Compile TypeScript to JavaScriptnpm run dev- Start development mode with auto-reloadnpm test- Run test casesnpm run example- Run the example server
License
This project is licensed under the MIT License - see the LICENSE file for details.