@theronap/agnoclast-mcp 0.9.287 → 0.9.289
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/lib/editors/claude.mjs +1 -1
- package/lib/release_gate.mjs +1 -1
- package/lib/server.mjs +52 -1
- package/package.json +1 -1
package/lib/editors/claude.mjs
CHANGED
|
@@ -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',
|
package/lib/release_gate.mjs
CHANGED
|
@@ -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') {
|
|
@@ -6200,6 +6200,42 @@ function renderNudge(payload) {
|
|
|
6200
6200
|
},
|
|
6201
6201
|
)
|
|
6202
6202
|
|
|
6203
|
+
server.registerTool(
|
|
6204
|
+
'setup_status',
|
|
6205
|
+
{
|
|
6206
|
+
title: 'Set up Agnoclast',
|
|
6207
|
+
description: 'Use when the person asks you to set up Agnoclast, or asks what is left to set up. It says which step is next and whether you do it or they do, through a link. Call it again after each step. Pass use_case and goals only to record what they told you, which changes nothing but their own first steps.',
|
|
6208
|
+
inputSchema: {
|
|
6209
|
+
use_case: z.string().optional().describe('what they want it for; the checklist lists the choices'),
|
|
6210
|
+
goals: z.array(z.string()).optional().describe('where to start; the checklist lists the choices'),
|
|
6211
|
+
ai_app: z.string().optional().describe('optional: the AI they use'),
|
|
6212
|
+
ai_where: z.string().optional().describe('optional: where they use it'),
|
|
6213
|
+
ai_reach: z.string().optional().describe('optional: how much they let it do'),
|
|
6214
|
+
together: z.string().optional().describe('optional: solo or team'),
|
|
6215
|
+
},
|
|
6216
|
+
},
|
|
6217
|
+
async ({ use_case, goals, ai_app, ai_where, ai_reach, together }) => {
|
|
6218
|
+
const saving = use_case !== undefined || goals !== undefined
|
|
6219
|
+
let res
|
|
6220
|
+
try {
|
|
6221
|
+
res = await fetchCortex(`${BASE}/api/setup-status`, saving
|
|
6222
|
+
? {
|
|
6223
|
+
method: 'POST',
|
|
6224
|
+
headers: { Authorization: `Bearer ${TOKEN}`, 'Content-Type': 'application/json' },
|
|
6225
|
+
body: JSON.stringify({ useCase: use_case, goals, together, ai: { app: ai_app, where: ai_where, reach: ai_reach } }),
|
|
6226
|
+
}
|
|
6227
|
+
: { headers: { Authorization: `Bearer ${TOKEN}` } })
|
|
6228
|
+
} catch (e) {
|
|
6229
|
+
return toolError(`Could not read setup: ${e.message}`)
|
|
6230
|
+
}
|
|
6231
|
+
if (!res.ok) {
|
|
6232
|
+
const d = classify(res.status, res.headers.get('content-type'), await res.text(), res.headers.get('x-vercel-id'))
|
|
6233
|
+
return toolError(`Could not read setup: ${d.message}`)
|
|
6234
|
+
}
|
|
6235
|
+
return { content: [{ type: 'text', text: (await res.json()).text }] }
|
|
6236
|
+
},
|
|
6237
|
+
)
|
|
6238
|
+
|
|
6203
6239
|
server.registerTool(
|
|
6204
6240
|
'token_activity',
|
|
6205
6241
|
{
|
|
@@ -6286,6 +6322,21 @@ function renderNudge(payload) {
|
|
|
6286
6322
|
},
|
|
6287
6323
|
)
|
|
6288
6324
|
|
|
6325
|
+
server.registerTool(
|
|
6326
|
+
'tasks_waiting',
|
|
6327
|
+
{
|
|
6328
|
+
title: 'How many tasks are waiting',
|
|
6329
|
+
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.',
|
|
6330
|
+
inputSchema: {},
|
|
6331
|
+
},
|
|
6332
|
+
async () => {
|
|
6333
|
+
try {
|
|
6334
|
+
const { waiting } = await tasksCall('?box=count')
|
|
6335
|
+
return { content: [{ type: 'text', text: `waiting: ${waiting}` }] }
|
|
6336
|
+
} catch (e) { return toolError(`Could not count your tasks: ${e.message}`) }
|
|
6337
|
+
},
|
|
6338
|
+
)
|
|
6339
|
+
|
|
6289
6340
|
server.registerTool(
|
|
6290
6341
|
'finish_task',
|
|
6291
6342
|
{
|
package/package.json
CHANGED