mcp

package
v0.26.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSkillsPrompt added in v0.23.6

func BuildSkillsPrompt(user *model.User) string

BuildSkillsPrompt returns a skills section to append to the system prompt, or an empty string if the user has no accessible active skills.

Skills are fetched directly from the database (not via the management API) so that both global and user-owned skills are included, zone restrictions are enforced, and group-based access control is applied.

func CreateAuthProvider added in v0.23.0

func CreateAuthProvider(remoteServer config.MCPRemoteServerConfig) mcp.AuthProvider

CreateAuthProvider creates an MCP authentication provider from configuration

func FromToml added in v0.23.0

func FromToml(tomlStr string) ([]mcppkg.Parameter, error)

FromToml parses a TOML schema definition and returns MCP parameters

func InitializeMCPServer

func InitializeMCPServer(routes *http.ServeMux, enableWebEndpoint bool, mcpConfig *config.MCPConfig) *mcp.Server

func NewScriptToolsProvider added in v0.23.0

func NewScriptToolsProvider(user *model.User) *scriptToolsProvider

NewScriptToolsProvider creates a new script tools provider for a user Returns all tools (native and discoverable) with their visibility set

Types

This section is empty.

Jump to

Keyboard shortcuts

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