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 ¶
BuildServer constructs the MCP server with all tools and widgets registered. Exported for tests.
func NewHandler ¶
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 ¶
type Deps struct {
OAuth *service.OAuthService
Users *service.UserService
Recipes *service.RecipeService
Search *service.SearchService
Import *service.ImportService
MultiResolver *service.MultiRecipeResolver
Subs *service.SubscriptionService
}
Deps carries the service-layer dependencies for the MCP tools. The tools are thin adapters over the same services the REST handlers use.