{"type":"mcp_server","name":"mcp-ts-template","description":"This repository provides a TypeScript template for building Model Context Protocol (MCP) servers, offering utilities, type safety, security features, and example implementations to facilitate a quick start. This repository provides","category":"Developer Tools","language":"TypeScript","stars":145,"forks":0,"owner":"cyanheads","github_url":"https://github.com/cyanheads/mcp-ts-template","homepage":null,"setup":"## Setup\n\n### Prerequisites\n\n- [Node.js (v18+)](https://nodejs.org/)\n- [npm](https://www.npmjs.com/) or [yarn](https://yarnpkg.com/)\n\n### Setup\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/cyanheads/mcp-ts-template.git\n   cd mcp-ts-template\n   ```\n\n2. Install dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Build the project:\n\n   ```bash\n   npm run build\n   ```","tools":"## Available Tools\n\n1.  Utilities: A set of reusable utilities for logging, error handling, ID generation, rate limiting, and request context management.\n2.  Type Safety: Strong typing with TypeScript to catch errors at compile time.\n3.  Security: Built-in security features to protect against common vulnerabilities.\n4.  Error Handling: A robust error handling system that categorizes and formats errors consistently.\n5.  Documentation: Comprehensive documentation for tools and resources, including usage examples and implementation details.\n6.  Example Implementations: Working examples of echo_message (tool) and echo://hello (resource) to help you get started quickly.\n7.  Logging: Configurable logging with file rotation and sensitive data redaction.\n8.  ID Generation: Secure unique identifier creation with prefix support.\n9.  Rate Limiting: Request throttling to prevent API abuse.\n10. Request Context: Request tracking and correlation.\n11. Sanitization: Input validation and cleaning using `validator` and `sanitize-html`.\n12. Echo Tool: Formats and echoes messages with various options.\n13. Echo Resource: Returns echo messages based on input parameters.","faq":null,"created_at":"2025-03-20T05:07:04+00:00","updated_at":"2025-03-28T04:50:15+00:00","source_url":"https://model-context-protocol.com/servers/typescript-mcp-server-template-model-context","related_articles":[]}