I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

MCP-TS-Simple-Template
Eine leichte, ausgebrachte TypeScript-Vorlage zum Erstellen von MCP-Servern (Modellkontextprotokoll). Diese Vorlage bietet das wesentliche Gerüst, um benutzerdefinierte KI -Tools zu erstellen, die nahtlos in große Sprachmodelle integriert werden können.
3 years
Works with Finder
1
Github Watches
2
Github Forks
3
Github Stars
MCP TypeScript Simple Template
A simple TypeScript template for building Model Context Protocol (MCP) servers. This project provides a foundation for creating custom MCP tools that can be integrated with AI systems.
Overview
This template implements a basic MCP server with a sample BMI calculator tool. It demonstrates how to:
- Set up an MCP server in TypeScript
- Define and implement MCP tools with input validation using Zod
- Connect the server to standard I/O for communication
Prerequisites
- Node.js (v20 or higher recommended)
- npm or yarn
Installation
- Clone this repository
- Install dependencies:
npm install
Project Structure
-
index.ts
- Main server implementation with sample tool -
package.json
- Project dependencies and scripts -
tsconfig.json
- TypeScript configuration
Usage
Building and Running
Build and start the server:
npm start
This will compile the TypeScript code and start the MCP server.
Development
For development, you can:
- Modify
index.ts
to add your own tools - Run the build command to compile:
npm run build
Creating Custom Tools
To create a new tool, follow this pattern in index.ts
:
server.tool(
"your-tool-name",
{
// Define input schema using Zod
paramName: z.string(),
// Add more parameters as needed
},
async ({ paramName }) => ({
content: [{
type: "text",
text: "Your tool's response"
}]
})
);
Dependencies
-
@modelcontextprotocol/sdk
- Core MCP SDK -
zod
- Schema validation -
dotenv
- Environment variable management -
typescript
- TypeScript compiler
License
ISC
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
相关推荐
Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.
Confidential guide on numerology and astrology, based of GG33 Public information
Converts Figma frames into front-end code for various mobile frameworks.
Advanced software engineer GPT that excels through nailing the basics.
Therapist adept at identifying core issues and offering practical advice with images.
Take an adjectivised noun, and create images making it progressively more adjective!
Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.
Ein einheitliches API-Gateway zur Integration mehrerer Ethercan-ähnlicher Blockchain-Explorer-APIs mit Modellkontextprotokoll (MCP) für AI-Assistenten.
Mirror ofhttps: //github.com/bitrefill/bitrefill-mcp-server
MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.
Reviews

user_83dhyPBh
I recently started using the mcp-ts-simple-template by ChenReuven and I'm thoroughly impressed! The template is straightforward and easy to use, making TypeScript project setup a breeze. The comprehensive welcome information ensures a smooth start, and the provided starting URL is incredibly helpful for swift project initialization. A must-have for any TypeScript developer looking for simplicity and efficiency. Highly recommended!