mcp

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 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 Runner

type Runner interface {
	Run(ctx context.Context, prompt string) (string, error)
}

Runner defines the interface for running prompts through providers

type Server

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

Server represents an MCP server that uses MPT's runner to fulfill MCP requests

func NewServer

func NewServer(r Runner, opts ServerOptions) *Server

NewServer creates a new MCP server using MPT's runner

func (*Server) Start

func (s *Server) Start() error

Start starts the MCP server using stdio transport (standard input/output)

type ServerOptions

type ServerOptions struct {
	Name    string
	Version string
}

ServerOptions contains configuration options for the MCP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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