MCP Server について
MCP Serverは、MCPサーバーを立ち上げるためのテンプレートパターンです。READMEには`reverse-mcp-server`という名前で作成する初期実行指示があり、claudeが確認なしのYOLOモードで動くと警告しています。
主な機能
- 01MCPサーバーの構築テンプレート
- 02初期実行手順
- 03サーバー名とツール仕様の設定
活用シーン
- 01新しいMCPサーバープロジェクトの開始
- 02サーバー名と初期ツールの定義
MCP 対応
MCPサーバーを立ち上げるためのテンプレートです。READMEには初期設定以外のサーバー機能は記載されていません。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
インストール方法は未掲載です
このサーバーのパッケージやリモートエンドポイントはまだ取得できていません。プロジェクトの README の手順に従ってください。
ツール
ツール一覧はまだ取得されていません
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
MCP サーバー
初期実行指示セット
警告:これにより、対話なしの YOLO モードで claude が実行されます。
# Define the Name of the MCP Server we are creating.
MCP_SERVER_NAME="reverse-mcp-server"
# Define the Spec for the initial tool we are making.
DETAILS=$(cat <<EOF
<mcpServerName>$MCP_SERVER_NAME</mcpServerName>
<toolSpec>
<toolsToExpose>
<tool>
<name>reverse_tool</name>
<description>String Reverse</description>
</tool>
</toolsToExpose>
</toolSpec>
EOF
)
# Define the tools that are allowed.
ALLOWED_TOOLS=(
"Bash"
"Edit"
"View"
"GlobTool"
"GrepTool"
"LSTool"
"BatchTool"
"AgentTool"
"WebFetchTool"
"Write"
)
# Establish the prompt
AI_PROMPT="
- Run git ls-files and eza --git-ignore --tree to understand the context of the project.
- Implement the Spec with:
$DETAILS
"
# Execute the Agent
claude -p $AI_PROMPT --allowedTools $ALLOWED_TOOLS --json
コメント
Markdown 対応
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。