Documentation
¶
Index ¶
- func Close(session ClientSession) error
- func ErrorResult(msg string) any
- func New(name string, version string) *mcp.Server
- func Required(schema any, names []string) any
- func Schema(props []SchemaProperty) map[string]any
- func Serve(server *mcp.Server) error
- func TextResult(text string) any
- func Tool(server *mcp.Server, name string, description string, schema any, ...)
- type CallToolResult
- type ClientSession
- type ClientTool
- type SchemaProperty
- type ToolHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Close ¶ added in v0.0.31
func Close(session ClientSession) error
func ErrorResult ¶
func Schema ¶
func Schema(props []SchemaProperty) map[string]any
func TextResult ¶
Types ¶
type CallToolResult ¶ added in v0.0.31
func CallTool ¶ added in v0.0.31
func CallTool(ctx context.Context, session ClientSession, name string, args map[string]any) (CallToolResult, error)
type ClientSession ¶ added in v0.0.31
type ClientSession struct {
// contains filtered or unexported fields
}
type ClientTool ¶ added in v0.0.31
func ListTools ¶ added in v0.0.31
func ListTools(ctx context.Context, session ClientSession) ([]ClientTool, error)
type SchemaProperty ¶
Click to show internal directories.
Click to hide internal directories.