tool

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package tool dispatches MCP tool list and call requests to the appropriate handler functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchCall

func DispatchCall(
	h *handler.Handler, req proto.Request,
) *proto.Response

DispatchCall unmarshals tool call params and dispatches to the appropriate handler function.

Parameters:

  • h: handler for domain logic and session tracking
  • req: the MCP request containing tool name and arguments

Returns:

  • *proto.Response: tool result or error

func DispatchList

func DispatchList(req proto.Request) *proto.Response

DispatchList returns all available tools.

Parameters:

  • req: the MCP request

Returns:

  • *proto.Response: tool list response

Types

This section is empty.

Jump to

Keyboard shortcuts

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