mcpserver

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MCPServer added in v0.2.0

type MCPServer struct {
	// Tool definitions (tools, prompts, resources, resource templates)
	definitions.MCPToolDefinitions

	// Server configuration (runtime, etc.)
	//nolint:govet
	serverconfig.MCPServerConfig
}

MCPServer defines the metadata and capabilities of an MCP server. It embeds MCPToolDefinitions for tool definitions and MCPServerConfig for server configuration.

func (*MCPServer) Instructions added in v0.2.0

func (m *MCPServer) Instructions() string

Instructions returns the instructions from tool definitions

func (*MCPServer) InvocationBases added in v0.2.0

func (m *MCPServer) InvocationBases() map[string]*invocation.InvocationConfigWrapper

InvocationBases returns invocation bases from tool definitions

func (*MCPServer) Name added in v0.2.0

func (m *MCPServer) Name() string

Name returns the server name from tool definitions

func (*MCPServer) Validate added in v0.2.0

func (s *MCPServer) Validate(invocationValidator definitions.InvocationValidator) error

Validate validates the MCPServer configuration

func (*MCPServer) Version added in v0.2.0

func (m *MCPServer) Version() string

Version returns the server version from tool definitions

Jump to

Keyboard shortcuts

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