Simple MCP Server

by 3eer

Integrations

  • Integrates with Biome for code formatting and linting within the project.

シンプルなMCPサーバー

fastMCP を使用して構築され、「hello」応答を返す最小限の TypeScript MCP サーバー。

特徴

  • fastMCPを使用したシンプルなMCPサーバーの実装
  • TypeScriptサポート
  • フォーマットとリンティングのためのバイオーム
  • パッケージマネージャーとしてのpnpm

はじめる

前提条件

  • Node.js 18歳以上
  • pnpm

インストール

pnpm install

発達

# Build the project pnpm build # Run the development server with fastMCP CLI pnpm mcp:dev # Use the MCP Inspector with a web UI pnpm mcp:inspect # Format code pnpm format # Lint code pnpm lint

プロジェクト構造

  • src/server.ts - メインのMCPサーバーの実装
  • biome.json - リンティングとフォーマットのためのバイオーム設定
  • tsconfig.json - TypeScript 設定

サーバーについて

これは「hello」ツールを提供するシンプルなMCP(Model Context Protocol)サーバーです。fastMCP TypeScriptフレームワークを使用して、サーバーの実装を簡素化しています。

既知の問題

  • クライアント機能に関する警告pnpm mcp:devまたは直接サーバーを実行すると、 [warning] FastMCP could not infer client capabilitiesのような警告が表示される場合があります。これは正常な動作であり、クライアントが機能情報を提供しない場合に発生します。サーバーは正常に動作します。

Claude Desktopの使い方

この MCP サーバーを Claude Desktop で使用するには、次の構成を追加します。

{ "mcpServers": { "Simple Hello Server": { "url": "http://localhost:3000/mcp" } } }

ライセンス

ISC

-
security - not tested
F
license - not found
-
quality - not tested

fastMCP フレームワークを使用して「hello」ツールを提供する最小限の TypeScript MCP サーバー。

  1. Features
    1. Getting Started
      1. Prerequisites
      2. Installation
      3. Development
    2. Project Structure
      1. About the Server
        1. Known Issues
        2. How to Use with Claude Desktop
      2. License
        ID: mycfvk4mph