goose-with-mcp-servers について
Goose を使う開発者向けの Docker 開発コンテナイメージです。LLM の設定方法と、GitHub MCP Server の追加例を記載しています。
主な機能
- 01Docker 開発コンテナの設定
- 02Goose の自動インストール
- 03GitHub MCP Server の設定
活用シーン
- 01開発コンテナ内での Goose 設定
- 02Goose の LLM 接続設定
- 03GitHub MCP Server の Goose への接続
MCP 対応
Goose に GitHub MCP Server を設定する方法を説明していますが、イメージに含まれる MCP サーバーの詳細は記載されていません。
設定
ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。
このサーバーのパッケージやリモートエンドポイントはまだ取得できていません。プロジェクトの README の手順に従ってください。
ツール
ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。
詳細
goose-with-mcp-servers
MCP サーバーを備えた Goose の Docker イメージ
Goose の設定
goose configure を実行して、Goose と LLM の接続を設定します。
Ollama の出力例(Docker のネットワークでは localhost の代わりに host.docker.internal を使用します)
Welcome to goose! Let's get you set up with a provider.
you can rerun this command later to update your configuration
┌ goose-configure
│
◇ Which model provider should we use?
│ Ollama
│
◇ Provider Ollama requires OLLAMA_HOST, please enter a value
│ host.docker.internal
│
◇ Enter a model from that provider:
│ qwen2.5
│
◓ Checking your configuration... └ Configuration saved successfully
Tip: Run 'goose configure' again to adjust your config or add extensions
Goose の自動インストール
Devcontainer には、postCreateCommand による Goose のインストールが含まれています。
curl -fsSL https://github.com/block/goose/releases/download/stable/download_cli.sh | CONFIGURE=false bash
依存関係
Goose には libdbus が必要です。これは Devcontainer にも追加されています。
sudo apt-get update && sudo apt-get install -y libdbus-1-3
Goose に GitHub MCP Server を追加する
GitHub の個人用アクセストークンは https://github.com/settings/personal-access-tokens/ から追加します。
node ➜ /workspaces/goose-with-mcp-servers (main) $ goose configure
This will update your existing config file
if you prefer, you can edit it directly at /home/node/.config/goose/config.yaml
┌ goose-configure
│
◇ What would you like to configure?
│ Add Extension
│
◇ What type of extension would you like to add?
│ Command-line Extension
│
◇ What would you like to call this extension?
│ GitHub
│
◇ What command should be run?
│ npx -y @modelcontextprotocol/server-github
│
◇ Would you like to add environment variables?
│ Yes
│
◇ Environment variable name:
│ GITHUB_PERSONAL_ACCESS_TOKEN
│
◇ Environment variable value:
│ ▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪
│
◇ Add another environment variable?
│ No
│
└ Added GitHub extension
コメント
AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。