AI Skill Hub 强烈推荐:UTCP工具 是一款优质的MCP工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。
UTCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
UTCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/universal-tool-calling-protocol/go-utcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"utcp--": {
"command": "npx",
"args": ["-y", "go-utcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 UTCP工具 执行以下任务... Claude: [自动调用 UTCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"utcp__": {
"command": "npx",
"args": ["-y", "go-utcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效

go-utcp is a Go client for the Universal Tool Calling Protocol (UTCP). It discovers tools from configured providers, keeps their metadata in a local repository, and exposes one API for searching, calling, and streaming tool results across different transports.
$VAR and ${VAR} substitution from explicit values, .env files, or the process environment.go get github.com/universal-tool-calling-protocol/go-utcp@latest
Create providers.json with a local text-template provider. This transport needs no external service:
{
"providers": [
{
"provider_type": "text",
"name": "greetings",
"templates": {
"hello": "Hello, {{.name}}!"
}
}
]
}
Load the provider, inspect its tools, and call greetings.hello:
package main
import (
"context"
"fmt"
"log"
utcp "github.com/universal-tool-calling-protocol/go-utcp"
)
func main() {
ctx := context.Background()
client, err := utcp.NewUTCPClient(ctx, &utcp.UtcpClientConfig{
ProvidersFilePath: "providers.json",
}, nil, nil)
if err != nil {
log.Fatal(err)
}
tools, err := client.SearchTools("", 10)
if err != nil {
log.Fatal(err)
}
for _, tool := range tools {
fmt.Printf("%s: %s\n", tool.Name, tool.Description)
}
result, err := client.CallTool(ctx, "greetings.hello", map[string]any{
"name": "UTCP",
})
if err != nil {
log.Fatal(err)
}
fmt.Println(result)
}
go run .
Tools are qualified as <provider>.<tool>, which prevents collisions when several providers expose the same tool name.
The examples directory contains standalone modules for each client and transport. Run an example from its directory with workspace mode disabled so that Go uses the example's own module:
cd examples/text_client
GOWORK=off go run -mod=mod .
Some network examples start an in-process demo server; others require the matching transport example or another local dependency. See the source in each directory for its setup.
CodeMode executes a constrained Go-like snippet with helpers for calling registered UTCP tools. It is useful for loops, branching, multi-tool composition, and processing intermediate results without serializing every step as a separate tool request.
import "github.com/universal-tool-calling-protocol/go-utcp/src/plugins/codemode"
cm := codemode.NewCodeModeUTCP(client, nil)
result, err := cm.Execute(ctx, codemode.CodeModeArgs{
Code: `
value, err := codemode.CallTool("greetings.hello", map[string]any{
"name": "CodeMode",
})
if err != nil {
__out = err
return
}
__out = value
`,
Timeout: 5_000,
})
Snippets can use codemode.CallTool, codemode.CallToolStream, and codemode.SearchTools. CodeModeResult contains the resulting value plus captured standard output and standard error.
ProvidersFilePath accepts any of these JSON root shapes:
providers array or object.Every provider needs a provider_type. The built-in values are:
| Provider type | Transport |
|---|---|
http | HTTP/HTTPS, including OpenAPI discovery |
cli | Local command-line process |
sse | Server-Sent Events |
http_stream | Streamable HTTP |
websocket | WebSocket |
grpc | gRPC and gNMI |
graphql | GraphQL queries and subscriptions |
tcp | Raw TCP |
udp | UDP |
webrtc | WebRTC data channel |
mcp | MCP over stdio or HTTP |
text | Local Go text templates |
Provider-specific fields and complete client/server pairs are available in examples/.
| Method | Purpose |
|---|---|
RegisterToolProvider | Discover and store the tools exposed by a provider. |
DeregisterToolProvider | Remove a provider and its tools. |
SearchTools | List all tools or filter them by provider prefix. |
CallTool | Invoke a tool and return its result. |
CallToolStream | Invoke a streaming tool and return a StreamResult. |
GetTransports | Access the client's registered transport implementations. |
Pass an empty prefix to SearchTools to list every registered tool, or pass a provider name to restrict the result to that provider.
高质量的MCP工具,Go语言实现
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MPL 2.0 — 文件级 Copyleft,修改的文件需开源,但可与闭源代码结合使用。
总体来看,UTCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | go-utcp |
| Topics | mcpaigolang |
| GitHub | https://github.com/universal-tool-calling-protocol/go-utcp |
| License | MPL-2.0 |
| 语言 | Go |
收录时间:2026-07-13 · 更新时间:2026-07-13 · License:MPL-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端