实验场
STDIO基于TypeScript的MCP服务器实验平台
基于TypeScript的MCP服务器实验平台
This repository is a playground for experimenting with an MCP Server built with TypeScript. It is a personalized version of the tutorial and video on building an MCP Server, and it is intended both as a learning resource and a platform to test integrations with Calude Desktop and Cursor IDE.
This project is based on the material from:
The original tutorial provided a foundation which I have extended. Alongside the examples from the tutorial, I plan to add additional tools and functionalities to evolve this code into a robust playground for MCP Server experiments.
To install MCP Server Playground for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install mcp-server-playground --client claude
git clone <repo_url> cd mcp-server-playground
npm install
npm run build
This project uses environment variables. Create a .env file to set your configuration options. If an example file (.env.example) is provided in the future, use it as a template.
mcp-server-playground/
├── src/                # Source code directory
│   └── index.ts       # Main server implementation
├── build/             # Compiled JavaScript files
├── package.json       # Project dependencies and scripts
├── tsconfig.json     # TypeScript configuration
└── README.md         # Project documentation
npm run build - Compiles TypeScript code and sets proper permissionsnpm run prepare - Runs build script (useful for git hooks)npm run watch - Watches for changes in TypeScript filesnpm run inspector - Runs the MCP inspector toolContributions are welcome! If you have suggestions, improvements, or new integrations, please fork the repository and create a pull request with your changes.
This project is licensed under the MIT License - see the LICENSE file for details.
This project is a sandbox environment aimed at testing various adaptations and integrations for an MCP Server. Updates and expansions will be made as new tools and ideas are developed.