tools

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ToolScopes = map[string][]string{
	"list_spaces":             {"spark:rooms_read"},
	"get_space_history":       {"spark:messages_read"},
	"send_message":            {"spark:messages_write"},
	"reply_to_thread":         {"spark:messages_write"},
	"get_users":               {"spark:memberships_read"},
	"get_user_profile":        {"spark:people_read"},
	"search_messages":         {"spark:messages_read", "spark:rooms_read"},
	"send_adaptive_card":      {"spark:messages_write"},
	"share_file":              {"spark:messages_write"},
	"get_space_analytics":     {"spark:messages_read", "spark:rooms_read", "spark:memberships_read"},
	"listener_control":        {"spark:messages_read"},
	"list_meetings":           {"meeting:schedules_read"},
	"get_meeting_transcript":  {"meeting:transcripts_read"},
	"get_digest":              {"spark:messages_read", "spark:rooms_read"},
	"get_cross_space_context": {"spark:messages_read", "spark:rooms_read"},
}

ToolScopes maps each MCP tool to its minimum required OAuth scopes. Tools that only read from local state (buffer, config) have no scope requirements.

Functions

func Register

func Register(s *mcpserver.MCPServer, client *webex.Client, buf *buffer.RingBuffer, rtr *router.Router, lst *listener.Listener, tri *triage.Store)

Register adds all MCP tools to the server.

func ValidateScopes added in v0.7.0

func ValidateScopes(configuredScopes string) []string

ValidateScopes checks that configuredScopes covers all tool requirements. Returns warnings for tools whose scopes are not covered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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