internaltool-mcp 1.5.1 → 1.5.2

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.
Files changed (2) hide show
  1. package/index.js +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -473,7 +473,7 @@ Use this when a developer says "start task", "brief me on", or "what do I need t
473
473
  .replace(/[^a-z0-9]+/g, '-')
474
474
  .slice(0, 40)}`
475
475
 
476
- const hasReadme = !!(task.readmeMarkdown && task.readmeMarkdown.trim().length > 0)
476
+ const hasReadme = typeof task.readmeMarkdown === 'string' && task.readmeMarkdown.trim().length > 0
477
477
  const subtasks = (task.subtasks || []).map(s => ({
478
478
  title: s.title,
479
479
  done: s.done,
@@ -797,10 +797,9 @@ Use this at the start of a session or when switching tasks.`,
797
797
  const res = await api.get('/api/users/me/tasks')
798
798
  if (!res?.success) return errorText('Could not fetch tasks')
799
799
 
800
- const PRIORITY_ORDER = { critical: 0, high: 1, medium: 2, low: 3 }
800
+ // Server already sorts by priority (critical low) then updatedAt just filter and annotate
801
801
  const tasks = (res.data.tasks || [])
802
802
  .filter(t => includeColumns.includes(t.column))
803
- .sort((a, b) => (PRIORITY_ORDER[a.priority] ?? 99) - (PRIORITY_ORDER[b.priority] ?? 99))
804
803
  .map(t => {
805
804
  let suggestedAction = null
806
805
  if (t.column === 'todo') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internaltool-mcp",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
4
4
  "description": "MCP server for InternalTool — connect AI assistants (Claude Code, Cursor) to your project and task management platform",
5
5
  "type": "module",
6
6
  "main": "index.js",