tasktools

package
v0.52.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tasktools registers the task MCP tools. The per-agent config MCP and the external MCP server both call Register, so den agents and outside harnesses (Claude Code) see the same tool names, inputs and results. Only who the caller is differs, and the Authorizer supplies that.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(srv *mcp.Server, svc *task.Service, auth Authorizer)

Register adds the six task tools to srv.

Types

type Authorizer

type Authorizer func(ctx context.Context, write bool) (actor string, denied *mcp.CallToolResult)

Authorizer returns the member ID a call acts as, or a tool result that refuses the call. write is true for tools that change tasks.

Jump to

Keyboard shortcuts

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