casefile-repository-mcp-server
Version:
Vessel casefile management system with MCP integration for maritime operations
59 lines (53 loc) • 2.15 kB
JavaScript
// Prompt Definitions
export const promptList = [
{
name: "casefile_tools_instructions",
description: "Instructions for using the casefile management tools - should always be referred before using the tools available in the casefile repository server.",
arguments: []
}
];
// Prompt Handlers
export function getCasefileToolsInstructions() {
const messages = [
{
role: "user",
content: {
type: "text",
text: `# Casefile Repository Tools - Quick Guide
## 🚢 VESSEL WORKFLOW:
**Always start with vessel name → IMO conversion:**
1. Use \`get_vessel_details\` to get IMO from vessel name (⚡ FULLY AVAILABLE)
2. Pass IMO to other tools for vessel-specific results
## 🔍 MAIN SEARCH TOOL:
**\`smart_casefile_search\`** - Universal search with filters:
- Search types: "semantic" (concepts) or "hybrid" (combines semantic + keyword matching)
- Filters: imo, category, importance ("High"/"Medium"/"Low"), date range
- Sort: "relevance" (search score, default), "recent", "oldest", "importance_score_desc"
- **Production-Ready**: Comprehensive input validation with user-friendly error messages
Example:
\`\`\`
smart_casefile_search({
query: "engine issues",
filters: { imo: 9321483, importance: "High" }
})
\`\`\`
**Important**:
- Date format: dd/mm/yyyy (e.g., 15/03/2024)
- Category values: Must match exact enum values
- Importance values: "Low", "Medium", or "High" (case-sensitive)
## 📋 CASEFILE OPERATIONS:
- **Read**: \`get_casefile_index\`, \`get_casefile_pages\`, \`get_latest_plan\`
## 💡 SEARCH TIPS:
1. Try semantic search first, then hybrid if needed
2. Remove filters if no results found
3. Always include clickable links in responses if available
4. Show vessel info (name, IMO) when relevant
5. **Input Validation**: Tool returns clear error messages for invalid inputs
6. **Date Format**: Always use dd/mm/yyyy (validated before search)
7. **Enum Values**: Tool validates category/importance values and shows available options`
}
}
];
return { messages };
}
//# sourceMappingURL=index.js.map