mcpserver

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ToolPrefix = "llm_clarification_"

ToolPrefix is the prefix for all llm-clarification tools

Variables

View Source
var BinaryPath = "llm-clarification"

BinaryPath is the path to the llm-clarification binary Defaults to "llm-clarification" (PATH lookup), falls back to /usr/local/bin

View Source
var CommandTimeout = 120 * time.Second

CommandTimeout is the default timeout for command execution

Functions

func ExecuteHandler

func ExecuteHandler(toolName string, args map[string]interface{}) (string, error)

ExecuteHandler executes the appropriate command for a tool

Types

type ToolDefinition

type ToolDefinition struct {
	Name        string
	Description string
	InputSchema json.RawMessage
}

ToolDefinition defines a tool for the MCP SDK

func GetToolDefinitions

func GetToolDefinitions() []ToolDefinition

GetToolDefinitions returns tool definitions for the official MCP SDK

Jump to

Keyboard shortcuts

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