Skip to main content
Glama
VISystems

MCP Server Templates

by VISystems

MCPサーバーテンプレート

権限境界、統合テスト、評価コントラクトを備えた本番グレードのMCPサーバー用スターターテンプレート。

テンプレート

テンプレート

説明

主な機能

basic

最小限のMCPサーバー

Echo + 計算ツール、Zodバリデーション

database

読み取り専用データベースアクセス

SQLバリデーション、スキーマイントロスペクション、権限境界

api-gateway

外部APIプロキシ

レート制限、認証情報のスコープ設定、エンドポイント設定

Related MCP server: mcp-starter-kit

クイックスタート

  1. このリポジトリをクローンするか、GitHubの「Use this template」を使用してください

  2. 使用したいテンプレートに移動します: cd templates/basic

  3. 依存関係をインストールします: pnpm install

  4. サーバーを起動します: pnpm start

アーキテクチャ

各テンプレートは同じパターンに従います:

  • 権限エンジン — すべてのツール呼び出しの前に評価される宣言型ルール(許可/拒否)

  • インメモリテストクライアント — MCP SDKのInMemoryTransportを使用した統合テスト

  • 評価コントラクト — @visystems/claude-eval-runner と互換性のあるYAML評価仕様

共有ユーティリティ

shared/ ディレクトリには再利用可能なユーティリティが含まれています:

  • permissions/ — 権限ポリシーの型、エンジン、および PermissionDeniedError

  • testing/ — 統合テスト用のインメモリMCPテストクライアント

  • errors/ — 型定義されたエラークラス

開発

pnpm install
pnpm typecheck    # TypeScript type checking
pnpm test         # Run all tests
pnpm test:shared  # Run shared utility tests only
pnpm test:basic   # Run basic template tests only

ライセンス

Apache 2.0 — LICENSE を参照してください。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Production-ready MCP server starter with authentication, observability, and a plugin system for building and deploying MCP servers quickly.
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    A production-ready foundation for building secure, observable MCP servers with built-in authentication, rate limiting, and reference tools like database-query and semantic-search.
    15
    7 npm
    MIT
  • F
    license
    Not graded
    quality
    F
    maintenance
    This MCP server starter template enables developers to quickly build production-ready MCP servers with Streamable HTTP, stateless design, and OAuth 2.1 authorization. It provides a structured, capability-based architecture with Postgres audit logging and centralized scope enforcement.
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    A production-grade MCP starter server in TypeScript with example tools, resources, and integration tests. It provides a clean, extensible foundation for building custom MCP servers.
    23 npm
    MIT