mcp

package
v1.209.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 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 official MCP SDK server with Atmos-specific functionality.

func NewServer

func NewServer(adapter *Adapter) *Server

NewServer creates a new MCP server using the official 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.

Jump to

Keyboard shortcuts

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