mcpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package mcpserver exposes the VoIP.ms API to MCP clients.

The API has 226 methods, which is far too many to advertise as individual tools without swamping a model's context. Instead there are three: one to list the catalogue, one to describe a method's parameters, and one to invoke it. Discovery costs a tool call rather than a permanent context tax.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(client *voipms.Client, opts Options) *mcp.Server

New builds an MCP server backed by client.

Types

type Options

type Options struct {
	// AllowWrites permits methods that create, update or delete configuration.
	AllowWrites bool
	// AllowBillable permits methods that cost money, and implies AllowWrites.
	AllowBillable bool
	// Version is reported to MCP clients. Empty means the build did not stamp
	// one, which is the case for `go run` and tests.
	Version string
}

Options control which methods the server is willing to invoke.

type Server

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

Server serves the VoIP.ms catalogue over MCP.

Jump to

Keyboard shortcuts

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