greeter

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package greeter is a tiny example of tools exposed via mcp-toolify. Add `// mcp:tool` to a function's godoc and run `go generate` to expose it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNumbers

func AddNumbers(a int, b int) (sum int)

AddNumbers 返回两个整数之和(演示多返回值按变量名打包)。

param: a — 第一个加数 param: b — 第二个加数

mcp:tool

func Greet

func Greet(name string, excited bool) (string, error)

Greet 生成一句问候语。

param: name — 要问候的名字 param: excited — 是否在结尾加感叹号

mcp:tool mcp:tags=read

Types

This section is empty.

Jump to

Keyboard shortcuts

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