Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions core/src/org/labkey/core/CoreMcp.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,22 @@ public ReadResourceResult getRDataAnalysisGuide() throws IOException
)
));
}

@McpResource(
uri = "resource://org/labkey/core/Reports.md",
mimeType = "application/markdown",
name = "LabKey Reports: Converting a Script Guide",
description = "Required reading before converting an R or Python/Jupyter analysis script into a saved LabKey Report. Covers data-bound vs standalone reports, the R substitution-token/knitr model, the Jupyter report_config.json/ReportConfig model, report authorization, and UI-saved vs file-based module reports.")
public ReadResourceResult getReportsGuide() throws IOException
{
incrementResourceRequestCount("Reports");
String markdown = IOUtils.resourceToString("org/labkey/core/Reports.md", null, CoreModule.class.getClassLoader());
return new ReadResourceResult(List.of(
new McpSchema.TextResourceContents(
"resource://org/labkey/core/Reports.md",
"application/markdown",
markdown
)
));
}
}
Loading