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

mcpserver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package mcpserver exposes the request outbox to agents over MCP (Streamable HTTP) with bearer-token authentication.

Index

Constants

View Source
const AgentGuide = `` /* 2975-byte string literal not displayed */

AgentGuide is the serving manual exposed as an MCP resource, used by the `serve` prompt, and embedded in the installable Claude Code skill.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the MCP endpoint.

func New

func New(svc *core.Service, log *slog.Logger) *Server

New builds the MCP server and registers tools, prompts and resources.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP authenticates the bearer token and dispatches to the transport.

Jump to

Keyboard shortcuts

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