mcpserver

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 6 Imported by: 0 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

Overview

Package mcpserver serves mqx's read-only broker tools over the Model Context Protocol, so MCP clients such as Claude Code, Claude Desktop or Cursor can query one context. It reuses the tools of the TUI assistant and, like them, never changes broker state.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(info Info, tools []assistant.Tool, timeout time.Duration) *mcp.Server

New returns an MCP server offering tools. Each call is bounded by timeout (0 means no bound beyond the client's own cancellation).

Types

type Info

type Info struct {
	Version  string
	Context  string
	Broker   string
	ReadOnly bool
}

Info describes the server and the context it is bound to.

Jump to

Keyboard shortcuts

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