mcpserver

package
v0.0.0-...-68e840a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 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 serves the tool catalogue over the Model Context Protocol (design/agents.md, W2): /mcp in Streamable HTTP, stateless, with JSON answers. A call answers from the request's viewer: a bearer token's, the trusted proxy's, or the public view; never a browser's session cookie.

Index

Constants

View Source
const Path = "/mcp"

Path is the endpoint: POST, and GET and DELETE answered 405 by the stateless transport.

Variables

This section is empty.

Functions

func Routes

func Routes(o Options) []httpapi.Route

Routes is /mcp.

Types

type Options

type Options struct {
	Catalogue   *tools.Catalogue
	Version     string // the release, in initialize's serverInfo
	PublicURL   string // the portal's origin; a browser Origin other than it is refused
	RequireAuth bool   // no public view: a call without a token or the proxy's identity is refused
	Log         *slog.Logger
}

Options configures the endpoint.

Jump to

Keyboard shortcuts

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