Help us shape the future of Go! Take the 2026 Go Developer Survey

server

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package server exposes tap's two-tool MCP surface over stdio and HTTP. The SDK answers tools/list and wraps every result, so tap follows whichever MCP revision each client speaks; tap supplies the tools' definitions, argument checks, results and its two JSON-RPC refusals.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(e Backend, version string, settings config.Values) (*mcp.Server, error)

New builds the static two-tool surface for stdio or HTTP, with the settings it was given.

func Serve

func Serve(ctx context.Context, e Backend, version string, settings config.Values) error

Serve runs until stdin closes; its caller closes all downstream connections. The SDK answers tools/list and wraps every result, so both follow whichever protocol revision each client speaks; tap supplies the two tools' definitions, their argument checks and their results.

Types

type Backend

Backend is the shared contract for local engines and remote relays.

Jump to

Keyboard shortcuts

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