claude-simone
claude-simone copied to clipboard
fix(mcp): Missing Handlebars helper 'or' causes template rendering errors
Description
The MCP server fails to render activity reports due to a missing Handlebars helper function. When attempting to use the check_activity command, the following error occurs:
Template rendering error: Error: Missing helper: "or"
Environment
- Simone Version: MCP Server (early access)
- Operating System: Linux (WSL2)
- Node.js Version: v20.19.3
- MCP Usage: Via Claude Code integration
Steps to Reproduce
- Set up Simone MCP server with proper configuration
- Log activities using the activity logging functionality (this works correctly)
- Attempt to use
/simone:check_activitycommand - Error occurs during template rendering
Expected Behavior
The check_activity command should render a formatted report of logged activities using Handlebars templates.
Actual Behavior
Template rendering fails with "Missing helper: or" error, preventing activity report generation.
Analysis
- The Handlebars template system is trying to use an
{{#if (or condition1 condition2)}}pattern - The "or" helper is not registered in the current Handlebars configuration
- This appears to be missing from the core MCP server, not user configuration
- User's local
.simone/directory contains no custom Handlebars templates that could cause this
Workaround
Activity data can be accessed directly via SQLite:
sqlite3 .simone/simone.db "SELECT * FROM activity_log ORDER BY id DESC LIMIT 10;"
Additional Context
- The MCP logging functionality works correctly (activities are being stored)
- This appears to be specific to the template rendering system
- The error suggests the Handlebars helpers are not properly initialized in the MCP server
- User configuration follows documented patterns and doesn't contain problematic templates
Suggested Fix
Register the missing "or" helper in the Handlebars configuration, or refactor templates to use built-in Handlebars conditionals.
Thanks for the great work on Simone! The MCP version is really promising despite this template issue.