
aashari/boilerplate-mcp-server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
aashari/boilerplate-mcp-server는 MCP 서버 후보가 https://github.com/aashari/boilerplate-mcp-server.에서 수입되었습니다
개요
aashari/boilerplate-mcp-server는 MCP 서버 후보가 https://github.com/aashari/boilerplate-mcp-server.에서 수입되었습니다
개요(AI 번역)
TypeScript의 사용자 정의 모델 Context Protocol (MCP) 서버를 개발하는 데 필요한 생산 기반. 완전한 계층 구조 패턴, 작업 예 구현 및 종합 개발자 인프라를 제공하여 외부 API 및 데이터 소스와 AI 보조를 연결합니다.
최신 업데이트(Feb 2026): MCP SDK 1.26.0 및 Zod 4.3.6로 업데이트됨. 자세한 내용은 docs/MODERNIZATION.md를 참조하십시오.
특징
-Security First: DNS 재시동 보호, localhost-only 바인딩, 보안 오류 처리
- Dual Transport Support: STDIO 및 Streamable HTTP는 자동적인 fallback로 전송합니다.
- **Layered Architecture **: CLI, 도구, 리소스, 프롬프트, 컨트롤러, 서비스 및 유틸리티 간의 깨끗한 분리
- Type Safety: Zod v4.3.6 스키마 검증을 통한 Full TypeScript 구현
- ** 모든 MCP Primitives **: 도구, 리소스 및 프롬프트 (예: 예)
- ResourceLink 패턴: 큰 응답을 위한 토큰 효율적인 리소스 참조
- **TOON 산출 체재 **: JSON 보다는 30-60% 몇몇 토큰을 위한 토큰 오리엔테이션 목표 표기
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Boilerplate MCP Server
A production-ready foundation for developing custom Model Context Protocol (MCP) servers in TypeScript. Provides a complete layered architecture pattern, working example implementation, and comprehensive developer infrastructure to connect AI assistants with external APIs and data sources.
Latest Update (Feb 2026): Updated to MCP SDK 1.26.0 and Zod 4.3.6 with continued modern
registerToolpatterns and streamable HTTP improvements. See docs/MODERNIZATION.md for details.
Features
- Security First: DNS rebinding protection, localhost-only binding, secure error handling
- Dual Transport Support: STDIO and Streamable HTTP transports with automatic fallback
- Layered Architecture: Clean separation between CLI, tools, resources, prompts, controllers, services, and utilities
- Type Safety: Full TypeScript implementation with Zod v4.3.6 schema validation
- All MCP Primitives: Tools, resources, and prompts (with examples)
- ResourceLink Pattern: Token-efficient resource references for large responses
- TOON Output Format: Token-Oriented Object Notation for 30-60% fewer tokens than JSON
- JMESPath Filtering: Extract only needed fields from responses to reduce token costs
- Raw Response Logging: Automatic logging of large API responses to
/tmp/mcp//with truncation guidance - Modern SDK: Uses MCP SDK v1.26.0 with
registerToolAPI pattern (ready for v2 migration) - Complete IP Address Example: Tools, resources, prompts, and CLI commands for IP geolocation
- Comprehensive Testing: Unit and integration tests with coverage reporting (47 tests passing)
- Production Tooling: ESLint, Prettier, semantic-release, and MCP Inspector integration
- Error Handling: Structured error handling with
isErrorfield and contextual logging - Security Documentation: Complete SECURITY.md with authentication implementation guides
What is MCP?
Model Context Protocol (MCP) is an open standard for securely connecting AI systems to external tools and data sources. This boilerplate implements the MCP specification with a clean, layered architecture that can be extended to build custom MCP servers for any API or data source.
Prerequisites
- Node.js (>=20.x): Download
- Git: For version control
Quick Start
# Clone the repository
git clone https://github.com/aashari/boilerplate-mcp-server.git
cd boilerplate-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
# Run in different modes:
# 1. CLI Mode - Execute commands directly
npm run cli -- get-ip-details 8.8.8.8
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →