关于 goose-with-mcp-servers
基于 Docker 的 Goose 开发容器镜像,包含 Goose 与 MCP 服务配置示例,面向使用 Goose 的开发者。README 说明了 LLM 配置及 GitHub MCP Server 接入方式。
主要功能
- 01Docker 开发容器配置
- 02自动安装 Goose
- 03添加 GitHub MCP Server
适用场景
- 01在开发容器中配置 Goose
- 02为 Goose 配置 LLM 连接
- 03将 GitHub MCP Server 接入 Goose
MCP 相关
项目提供在 Goose 中配置 GitHub MCP Server 的说明;未具体说明镜像预装了哪些 MCP 服务。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
暂未收录安装方式
我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。
工具
还没有获取到工具列表
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
goose-with-mcp-servers
包含 MCP 服务的 Codename goose Docker 镜像
配置 Goose
运行 goose configure,设置 Goose 与大模型的连接。
Ollama 的输出示例(由于 Docker 网络配置,请使用 host.docker.internal,而不是 localhost)
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
将 GitHub MCP 服务添加到 Goose
通过 https://github.com/settings/personal-access-tokens/ 添加 GitHub 个人访问令牌。
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
评论
支持 Markdown
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。