mcpserver

package
v0.0.0-...-df419cd Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2026 License: AGPL-3.0 Imports: 18 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 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