greeter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 1 Imported by: 0

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