readmaterial

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Definition = &mcp.Tool{
	Name:        "read_material",
	Description: "Read a course material (longread/seminar) from GitLab and return its markdown content",
}

Functions

Types

type GitLabClient

type GitLabClient interface {
	GetRawFile(ctx context.Context, project, ref, filePath string) ([]byte, error)
}

type Input

type Input struct {
	Course string `json:"course" jsonschema:"Course name or ID"`
	Week   int    `json:"week" jsonschema:"Week number"`
	Type   string `json:"type,omitempty" jsonschema:"Material type: longread or seminar (optional — returns all markdown links)"`
}

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)
}

Jump to

Keyboard shortcuts

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