mcpserver

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mcpserver exposes the llmbox box operations as MCP tools. It is deliberately decoupled from the HTTP server: every box operation it needs is reached through the Backend interface, so the tool layer can be built and tested in isolation from Docker, the session store, and the cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(b Backend, name, version string) *mcp.Server

NewServer builds an MCP server exposing the box tools backed by b.

@arg b The backend providing the box operations the tools invoke. @arg name The MCP server implementation name. @arg version The MCP server implementation version. @return *mcp.Server An MCP server with the create/get/list/destroy tools registered.

@testcase TestToolsRegistered checks all tools are registered.

Types

type Backend

type Backend = api.Backend

Backend is everything the MCP tool layer needs from the box-control backend.

type BoxSession

type BoxSession = api.BoxSession

BoxSession is the subset of a box's state the tools surface.

type ProxyInfo added in v0.0.42

type ProxyInfo = api.ProxyInfo

ProxyInfo describes one enabled HTTP proxy surfaced by the proxy tools.

type SpokeStatus

type SpokeStatus = api.SpokeStatus

SpokeStatus describes one cluster spoke and its health for the list_spokes tool.

Jump to

Keyboard shortcuts

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