izawa-mcp-server

izawa-mcp-server

3.1

If you are the rightful owner of izawa-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Izawa MCP Server is a Model Context Protocol server built with TypeScript and Express, providing profile information and blog articles.

Izawa MCP Server

TypeScriptとExpressで構築されたModel Context Protocol (MCP) サーバーです。プロフィール情報とブログ記事を提供します。

機能

  • プロフィール情報の提供
  • ブログ記事リストの提供
  • 特定のブログ記事本文の提供

必要条件

  • Node.js v20.18.0以上
  • npm または yarn

インストール

# リポジトリをクローン
git clone https://github.com/yourusername/izawa-mcp-server.git
cd izawa-mcp-server

# 依存関係のインストール
npm install

使用方法

開発サーバーの起動

npm run dev

サーバーは http://localhost:3000 で実行されます。

本番用ビルドと実行

# TypeScriptからJavaScriptへのコンパイル
npm run build

# ビルドされたサーバーを起動
npm start

MCPエンドポイント

1. MCP メタデータエンドポイント

GET /.well-known/model-context-protocol.json

このエンドポイントは、サーバーのメタデータと利用可能なコンテキストのリストを返します。

2. コンテキストデータエンドポイント

POST /mcp
Content-Type: application/json

{
  "context_id": "profile" 
}

あるいは

POST /mcp
Content-Type: application/json

{
  "context_id": "blog_post_content",
  "params": {
    "post_id": "post-1"
  }
}

カスタマイズ

  • プロフィール情報: src/server.ts ファイル内の userProfile オブジェクトを編集します。
  • ブログ記事: getBlogPostsgetBlogPostContent 関数を実際のデータソースを使用するように実装します。

ライセンス

MIT