sad-mcp 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tools.js +4 -2
- package/package.json +1 -1
package/dist/tools.js
CHANGED
|
@@ -418,9 +418,11 @@ export function registerToolHandlers(server) {
|
|
|
418
418
|
}
|
|
419
419
|
const lines = filtered.map(e => {
|
|
420
420
|
const hasSolution = e.solutionFile ? "✓ פתרון" : "✗ ללא פתרון";
|
|
421
|
-
|
|
421
|
+
const examLink = e.examFile ? `https://drive.google.com/file/d/${e.examFile.id}/view` : "";
|
|
422
|
+
const solutionLink = e.solutionFile ? `https://drive.google.com/file/d/${e.solutionFile.id}/view` : "";
|
|
423
|
+
return `- ${e.id} (שנה: ${e.year}, סמסטר: ${e.semester}, מועד: ${e.moed}) [${hasSolution}]\n Exam: ${examLink}${solutionLink ? `\n Solution: ${solutionLink}` : ""}`;
|
|
422
424
|
});
|
|
423
|
-
const responseText = `Available exams (${filtered.length}):\n\n${lines.join("\n")}\n\
|
|
425
|
+
const responseText = `Available exams (${filtered.length}):\n\n${lines.join("\n\n")}\n\nPresent the list to the student and for each exam, ask what they'd like to do:\n- Download the exam or solution file (share the link)\n- Ask questions about the exam content\n- Practice the exam (use practice_exam with the exam ID)`;
|
|
424
426
|
trackToolCall(name, toolArgs, { resultCount: filtered.length, success: true, responseChars: responseText.length }, Date.now() - startTime);
|
|
425
427
|
return { content: [{ type: "text", text: responseText }] };
|
|
426
428
|
}
|