mcp

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

package mcp Provides an MCP server and argument structures for MCP client calls.

Index

Constants

View Source
const (
	ListDomains          = "list_domains"
	ListDomainClasses    = "list_domain_classes"
	CreateGoalsGraph     = "create_goals_graph"
	CreateNeighborsGraph = "create_neighbors_graph"
)
View Source
const (
	StreamablePath = "/mcp"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainParams

type DomainParams struct {
	Domain string `json:"domain" jsonschema:"Name of the domain to list"`
}

type GoalParams

type GoalParams = rest.Goals

type NeighborParams added in v0.9.0

type NeighborParams = rest.Neighbors

type Server

type Server struct {
	*mcp.Server
	Engine *engine.Engine
}

func NewServer

func NewServer(e *engine.Engine) *Server

func (*Server) HTTPHandler

func (s *Server) HTTPHandler() http.Handler

HTTPHandler a handler for the Streaming MCP protocol.

func (*Server) ServeStdio

func (s *Server) ServeStdio(ctx context.Context) error

ServeStdio runs an MCP server, it returns when the client disconnects or the context is canceled.

Jump to

Keyboard shortcuts

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