@theronap/agnoclast-mcp 0.9.287 → 0.9.288

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.
@@ -40,7 +40,7 @@ export function mergeClaudeMcp(existing, spec, token) {
40
40
  export const ALLOWED_TOOL_NAMES = [
41
41
  // read surface
42
42
  'grep', 'read_page', 'my_context', 'project_status', 'session_context', 'search_org',
43
- 'list_records', 'read_record', 'page_history', 'page_diff', 'timeline_pull', 'my_brains', 'my_sessions', 'token_activity', 'hand_task', 'my_tasks', 'finish_task', 'handed_tasks', 'writing_style',
43
+ 'list_records', 'read_record', 'page_history', 'page_diff', 'timeline_pull', 'my_brains', 'my_sessions', 'token_activity', 'hand_task', 'my_tasks', 'tasks_waiting', 'finish_task', 'handed_tasks', 'writing_style',
44
44
  'code_graph_query', 'my_retier_notices', 'list_page_grants', 'list_project_members', 'file_requests',
45
45
  // the questions agents used to answer with SQL (2026-10-07) — read-only, the caller's own view
46
46
  'record_status', 'my_connectors', 'brain_stats', 'my_sends', 'find_arrivals',
@@ -5,7 +5,7 @@
5
5
  // that web/lib/engine/release.test.ts pins to the server's registry.
6
6
 
7
7
  /** Tools any release flag gates — hidden when the server cannot be asked. Mirror of allGatedTools(). */
8
- export const GATED_FALLBACK = ['arrivals', 'attach_document', 'document_diff', 'export_page', 'file_arrival', 'file_document', 'find_documents', 'finish_task', 'get_document', 'hand_task', 'handed_tasks', 'import_document_as_page', 'intake_shadow', 'list_documents', 'my_messages', 'my_tasks', 'pin_document', 'read_conversation', 'read_document', 'send_message', 'set_manager', 'upload_document_version']
8
+ export const GATED_FALLBACK = ['arrivals', 'attach_document', 'document_diff', 'export_page', 'file_arrival', 'file_document', 'find_documents', 'finish_task', 'get_document', 'hand_task', 'handed_tasks', 'import_document_as_page', 'intake_shadow', 'list_documents', 'my_messages', 'my_tasks', 'pin_document', 'read_conversation', 'read_document', 'send_message', 'set_manager', 'tasks_waiting', 'upload_document_version']
9
9
 
10
10
  export const RELEASE_FETCH_TIMEOUT_MS = 2500
11
11
 
package/lib/server.mjs CHANGED
@@ -543,7 +543,7 @@ export async function runServer(version) {
543
543
  // The header stamps page revisions, so a new id here keeps a log joined to the pages it wrote.
544
544
  if (rotated) setSessionKey(rotated)
545
545
  const result = await handler(...args)
546
- const taskLine = name === 'my_tasks' || name === 'handed_tasks' ? null : await taskNotice()
546
+ const taskLine = name === 'my_tasks' || name === 'handed_tasks' || name === 'tasks_waiting' ? null : await taskNotice()
547
547
  if (taskLine && Array.isArray(result?.content)) result.content = [...result.content, { type: 'text', text: taskLine }]
548
548
  if (!result?.isError) {
549
549
  if (name === 'log_session') {
@@ -6286,6 +6286,21 @@ function renderNudge(payload) {
6286
6286
  },
6287
6287
  )
6288
6288
 
6289
+ server.registerTool(
6290
+ 'tasks_waiting',
6291
+ {
6292
+ title: 'How many tasks are waiting',
6293
+ description: 'Just the count of open tasks handed to this token, as `waiting: N`. It marks nothing as picked up, so a cheap poller can call it as often as it likes and wake an agent only when N is above zero. To read the tasks, use my_tasks.',
6294
+ inputSchema: {},
6295
+ },
6296
+ async () => {
6297
+ try {
6298
+ const { waiting } = await tasksCall('?box=count')
6299
+ return { content: [{ type: 'text', text: `waiting: ${waiting}` }] }
6300
+ } catch (e) { return toolError(`Could not count your tasks: ${e.message}`) }
6301
+ },
6302
+ )
6303
+
6289
6304
  server.registerTool(
6290
6305
  'finish_task',
6291
6306
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.287",
3
+ "version": "0.9.288",
4
4
  "description": "Connect your AI assistant to Cortex — your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {