mcp

package
v3.60.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPContextFunc

func HTTPContextFunc(ctx context.Context, r *http.Request) context.Context

HTTPContextFunc extracts JWT/admin token from HTTP request and injects user into context. Used as WithHTTPContextFunc callback for Streamable HTTP transport.

func NewHTTPHandler

func NewHTTPHandler() http.Handler

NewHTTPHandler creates a Streamable HTTP handler for the MCP server.

func NewServer

func NewServer() *mcpserver.MCPServer

NewServer creates an MCP server with all alist tools registered.

func NewStdioServer

func NewStdioServer(username string) (*mcpserver.MCPServer, *model.User, error)

NewStdioServer creates an MCP server configured for STDIO mode with a fixed user.

func ServeStdio

func ServeStdio(username string) error

ServeStdio starts the MCP server in STDIO mode.

Types

This section is empty.

Jump to

Keyboard shortcuts

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