mcp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(name, version, instructions string) *server.MCPServer

NewServer creates a new MCP server with standard capabilities.

func UserIDFromContext

func UserIDFromContext(ctx context.Context) int

UserIDFromContext returns the user ID from the context, defaulting to 1.

func WithUserID

func WithUserID(ctx context.Context, userID int) context.Context

WithUserID stores the user ID in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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