mcp

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder helps to construct an MCP server with defined tools.

func New

func New() *Builder

New creates a new MCP server builder.

func (*Builder) Build

func (b *Builder) Build() (Server, error)

Build finalizes the MCP server construction.

func (*Builder) Cmd

func (*Builder) Conduit

func (b *Builder) Conduit(c *conduit.Conduit) *Builder

Conduit configures the MCP server with the given conduit (workflow).

func (*Builder) Run

func (b *Builder) Run(ctx context.Context, srv *conduit.Conduit) error

Run starts the MCP server and exposes the defined tool.

func (*Builder) Server

func (b *Builder) Server(name string) *Builder

Server sets up the MCP server with the given name.

func (*Builder) UnsafeCmd

func (b *Builder) UnsafeCmd(ctx context.Context, ctr *mcp.CallToolRequest) (*mcp.CallToolResult, error)

type Server

type Server interface {
	Run(context.Context, *conduit.Conduit) error
}

Server represents an MCP server exposing defined tools.

Jump to

Keyboard shortcuts

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