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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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