mcpserver

package
v0.0.0-...-b32e876 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package mcpserver exposes SaltyBytes as a remote MCP server: OAuth-protected tools over Streamable HTTP at /mcp, with MCP Apps widgets rendered in-chat by hosts like Claude and ChatGPT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildServer

func BuildServer(cfg *config.Config, deps *Deps) *mcp.Server

BuildServer constructs the MCP server with all tools and widgets registered. Exported for tests.

func NewHandler

func NewHandler(cfg *config.Config, deps *Deps) http.Handler

NewHandler returns the /mcp endpoint: a stateless Streamable HTTP handler (safe behind a load balancer with multiple instances) wrapped in bearer-token auth against the OAuth service. 401s carry the RFC 9728 resource-metadata pointer so MCP hosts can discover the authorization server automatically.

Types

type Deps

Deps carries the service-layer dependencies for the MCP tools. The tools are thin adapters over the same services the REST handlers use.

Jump to

Keyboard shortcuts

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