mcp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mcp implements the MCP controller layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller handles MCP tool registration and execution.

func New

func New(schemaSvc *schema.Service, toolSvc *tool.Service, checker func(method, path string) bool, enableTOON bool) *Controller

New creates a Controller with the given dependencies.

func (*Controller) RegisterAllTools

func (c *Controller) RegisterAllTools(ctx context.Context, server *mcpsdk.Server) error

RegisterAllTools registers all OpenAPI operations as MCP tools.

Jump to

Keyboard shortcuts

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