materials

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 17, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Definition = &mcp.Tool{
	Name:        "get_materials",
	Description: "List course materials: PDF files and external links (without downloading)",
}

Definition is the MCP tool definition.

Functions

func NewHandler

NewHandler creates the tool handler.

Types

type Input

type Input struct {
	Course string `json:"course" jsonschema:"Course name or ID"`
	Week   int    `json:"week,omitempty" jsonschema:"Week number (optional — omit for all weeks)"`
}

Input for the tool.

type LMSClient

type LMSClient interface {
	ResolveCourse(ctx context.Context, query string) (int, string, error)
	GetCourseOverview(ctx context.Context, courseID int) (*cuGw.CourseOverview, error)
	GetLongReadContent(ctx context.Context, longReadID int) (*cuGw.MaterialsResponse, error)
}

LMSClient defines dependencies for this tool.

Jump to

Keyboard shortcuts

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