Skip to main content

open_course

Function open_course 

Source
pub async fn open_course(
    state: &McpState,
    ctx: &RequestContext,
    course_id: Uuid,
) -> Result<CourseView, ToolError>
Expand description

Authorizes the course argument and loads the course as the user sees it. The connection goes back to the pool before the tool’s own work; handlers that query again take one with connection.