mcpserver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 9 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 exposes the Webmaster service over the Model Context Protocol. This is an unofficial server built on Seznam's REST API; it shares wm.Service with the CLI, so limits, quotas and safety checks are identical.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(o Options) *mcp.Server

New builds the server. Read-only mode leaves the write tool out entirely, so a client cannot even see it.

func Serve

func Serve(ctx context.Context, s *mcp.Server) error

Serve runs the server on stdio until the client disconnects.

Types

type Options

type Options struct {
	Version  string
	ReadOnly bool
	Service  func(profile string) (*wm.Service, error)
	Profiles func() ([]map[string]any, error)
}

Options configure the server.

type ToolInfo

type ToolInfo struct {
	Name        string `json:"name"`
	Description string `json:"description"`
	ReadOnly    bool   `json:"read_only"`
}

ToolInfo documents a tool for `szwm schema`.

func Catalog

func Catalog() []ToolInfo

Catalog returns every tool the server can register.

Jump to

Keyboard shortcuts

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