listtools

command
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

listtools 用 in-memory transport 启动 mcp server,验证暴露给 MCP 客户端 (Cherry Studio / Claude Desktop 等)的完整元数据。

默认输出每个工具的 name + description + inputSchema + outputSchema, 让你检查描述、参数说明、required、类型是否符合预期。

用法:

go run ./cmd/listtools                             # 详细:name + desc + schema
go run ./cmd/listtools -short                      # 紧凑:每行一个工具、不打 schema
go run ./cmd/listtools -grep greet                  # name 子串过滤
go run ./cmd/listtools -enable greeter              # 包过滤
go run ./cmd/listtools -match capability=write      # label selector 过滤
go run ./cmd/listtools -json                        # 完整 JSON(含 schema)
go run ./cmd/listtools -call greeter.greet -args '{"name":"world","excited":true}'

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL