mcpField
T
ToolChat

ToolChat

本地服务
github.com/rectalogicAI 与智能体082 周前更新

关于 ToolChat

ToolChat 是一个命令行聊天客户端,可通过 MCP 服务使用大模型。它用 YAML 配置工具服务并选择启用的服务;模型支持多模态输入时,还可在提示中加入图片或文档。

主要功能

  1. 01通过 MCP 工具与大模型聊天
  2. 02使用 YAML 配置工具服务
  3. 03启用指定工具服务
  4. 04为多模态模型加入图片和文档
  5. 05使用内置帮助与聊天命令

适用场景

  1. 01通过 MCP 服务搜索文档
  2. 02让大模型总结检索到的文档
  3. 03在聊天提示中提供图片或文档

MCP 相关

连接 YAML 配置的 MCP 工具服务,并在大模型聊天过程中提供已启用服务的工具。

配置

本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。

暂未收录安装方式

我们还没有获取到这个服务的安装包或远程地址,请按项目 README 中的说明安装。

代码仓库

工具

还没有获取到工具列表

本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。

详细介绍

ToolChat

使用 MCP 服务与大模型聊天。

在 YAML 文件中配置 MCP 工具服务,并通过 --tool-servers 提供路径, 使用 --enable-tool-server 启用特定工具。 格式请参阅 sample-tools.yml。

如果模型支持多模态,也可以在提示词中加入图片、文档等内容。 详情请参阅 /help 命令。

示例

使用 AWS 文档工具和 Gemini Pro 2.5 搜索 AWS 文档:

$ uv run toolchat --model google-gla:gemini-2.5-pro-exp-03-25 --tool-servers sample-tools.yml --enable-tool-server awslabs.aws-documentation-mcp-server
ToolChat - Ctrl-D or /quit to quit
Enter /multi to enter and exit multiline mode, /help for more commands
> look up documentation on S3 bucket naming rule. cite your sources
Okay, I can help with that. I will search for the S3 bucket naming rules
documentation and provide a summary along with the source URL.

Tool search_documentation {'search_phrase': 'S3 bucket naming rules', 'limit': 1}

Okay, I found a relevant document. I will now read the content to summarize the
S3 bucket naming rules.

Tool read_documentation {'url': 'https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html'}

Okay, here is a summary of the naming rules for Amazon S3 general purpose
buckets, based on the official AWS documentation:

S3 General Purpose Bucket Naming Rules:

 • Length: Must be between 3 and 63 characters long.
 • Characters: Can only contain lowercase letters (a-z), numbers (0-9), periods
   (.), and hyphens (-).
 • Start/End: Must begin and end with a letter or number.
 ...[elided]

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。