Help us shape the future of Go! Take the 2026 Go Developer Survey

mcp

package
v1.233.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter adapts existing Atmos AI tools for use with MCP SDK. It provides a bridge between Atmos's tool system and the MCP protocol.

func NewAdapter

func NewAdapter(registry *tools.Registry, executor *tools.Executor) *Adapter

NewAdapter creates a new tool adapter.

func (*Adapter) ExecuteTool

func (a *Adapter) ExecuteTool(ctx context.Context, name string, arguments map[string]interface{}) (*tools.Result, error)

ExecuteTool executes a tool and returns the result.

type Server

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

Server wraps the MCP SDK server with Atmos-specific functionality.

func NewServer

func NewServer(adapter *Adapter) *Server

NewServer creates a new MCP server using the MCP SDK.

func (*Server) Run

func (s *Server) Run(ctx context.Context, transport mcpsdk.Transport) error

Run starts the server with the given transport.

func (*Server) SDK

func (s *Server) SDK() *mcpsdk.Server

SDK returns the underlying SDK server instance.

func (*Server) ServerInfo

func (s *Server) ServerInfo() mcpsdk.Implementation

ServerInfo returns the server implementation information.

Directories

Path Synopsis
Package config parses `atmos mcp add` inputs into schema.MCPServerConfig values and reads/writes them under mcp.servers in atmos.yaml, backing the `atmos mcp add`/`remove` commands.
Package config parses `atmos mcp add` inputs into schema.MCPServerConfig values and reads/writes them under mcp.servers in atmos.yaml, backing the `atmos mcp add`/`remove` commands.
Package install writes configured MCP servers into supported client config files.
Package install writes configured MCP servers into supported client config files.
Package router provides smart MCP server selection using a fast AI model to determine which servers are relevant to a user's question.
Package router provides smart MCP server selection using a fast AI model to determine which servers are relevant to a user's question.

Jump to

Keyboard shortcuts

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