@artyfacts/mcp-server 1.1.4 → 1.2.0

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.
@@ -0,0 +1,633 @@
1
+ // src/server.ts
2
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import {
5
+ CallToolRequestSchema,
6
+ ListToolsRequestSchema
7
+ } from "@modelcontextprotocol/sdk/types.js";
8
+ var ARTYFACTS_TOOLS = [
9
+ // Organization tools
10
+ {
11
+ name: "get_organization",
12
+ description: "Get details about the current organization",
13
+ inputSchema: {
14
+ type: "object",
15
+ properties: {},
16
+ required: []
17
+ }
18
+ },
19
+ // Project tools
20
+ {
21
+ name: "list_projects",
22
+ description: "List all projects in the organization",
23
+ inputSchema: {
24
+ type: "object",
25
+ properties: {
26
+ limit: { type: "number", description: "Max results (default 50)" },
27
+ offset: { type: "number", description: "Pagination offset" }
28
+ },
29
+ required: []
30
+ }
31
+ },
32
+ {
33
+ name: "get_project",
34
+ description: "Get details about a specific project",
35
+ inputSchema: {
36
+ type: "object",
37
+ properties: {
38
+ project_id: { type: "string", description: "Project ID" }
39
+ },
40
+ required: ["project_id"]
41
+ }
42
+ },
43
+ // Artifact tools
44
+ {
45
+ name: "list_artifacts",
46
+ description: "List artifacts, optionally filtered by project",
47
+ inputSchema: {
48
+ type: "object",
49
+ properties: {
50
+ project_id: { type: "string", description: "Filter by project" },
51
+ type: { type: "string", description: "Filter by type (goal, spec, research, etc.)" },
52
+ status: { type: "string", description: "Filter by status" },
53
+ limit: { type: "number", description: "Max results" }
54
+ },
55
+ required: []
56
+ }
57
+ },
58
+ {
59
+ name: "get_artifact",
60
+ description: "Get a specific artifact by ID",
61
+ inputSchema: {
62
+ type: "object",
63
+ properties: {
64
+ artifact_id: { type: "string", description: "Artifact ID" }
65
+ },
66
+ required: ["artifact_id"]
67
+ }
68
+ },
69
+ {
70
+ name: "create_artifact",
71
+ description: "Create a new artifact (document, goal, spec, etc.)",
72
+ inputSchema: {
73
+ type: "object",
74
+ properties: {
75
+ title: { type: "string", description: "Artifact title" },
76
+ type: { type: "string", description: "Artifact type: goal, spec, research, report, experiment, decision, doc" },
77
+ content: { type: "string", description: "Markdown content" },
78
+ goal_id: { type: "string", description: "The goal UUID this artifact belongs to \u2014 always pass this when working on a task" },
79
+ parent_id: { type: "string", description: "Parent artifact ID for nested artifacts" },
80
+ tags: { type: "array", items: { type: "string" }, description: "Tags for categorization" }
81
+ },
82
+ required: ["title", "type"]
83
+ }
84
+ },
85
+ {
86
+ name: "update_artifact",
87
+ description: "Update an existing artifact",
88
+ inputSchema: {
89
+ type: "object",
90
+ properties: {
91
+ artifact_id: { type: "string", description: "Artifact ID" },
92
+ title: { type: "string", description: "New title" },
93
+ content: { type: "string", description: "New content" },
94
+ status: { type: "string", description: "New status" }
95
+ },
96
+ required: ["artifact_id"]
97
+ }
98
+ },
99
+ // Section tools
100
+ {
101
+ name: "list_sections",
102
+ description: "List sections of an artifact",
103
+ inputSchema: {
104
+ type: "object",
105
+ properties: {
106
+ artifact_id: { type: "string", description: "Artifact ID" }
107
+ },
108
+ required: ["artifact_id"]
109
+ }
110
+ },
111
+ {
112
+ name: "get_section",
113
+ description: "Get a specific section",
114
+ inputSchema: {
115
+ type: "object",
116
+ properties: {
117
+ artifact_id: { type: "string", description: "Artifact ID" },
118
+ section_id: { type: "string", description: "Section ID" }
119
+ },
120
+ required: ["artifact_id", "section_id"]
121
+ }
122
+ },
123
+ {
124
+ name: "create_section",
125
+ description: "Create a new section on an artifact",
126
+ inputSchema: {
127
+ type: "object",
128
+ properties: {
129
+ artifact_id: { type: "string", description: "Artifact ID" },
130
+ section_id: { type: "string", description: "Section identifier (slug)" },
131
+ heading: { type: "string", description: "Section heading" },
132
+ content: { type: "string", description: "Markdown content" },
133
+ type: { type: "string", description: "Type: content, task, decision, blocker" },
134
+ position: { type: "number", description: "Order position" }
135
+ },
136
+ required: ["artifact_id", "section_id", "heading", "content"]
137
+ }
138
+ },
139
+ {
140
+ name: "update_section",
141
+ description: "Update an existing section",
142
+ inputSchema: {
143
+ type: "object",
144
+ properties: {
145
+ artifact_id: { type: "string", description: "Artifact ID" },
146
+ section_id: { type: "string", description: "Section ID" },
147
+ heading: { type: "string", description: "New heading" },
148
+ content: { type: "string", description: "New content" },
149
+ task_status: { type: "string", description: "Task status if type=task" }
150
+ },
151
+ required: ["artifact_id", "section_id"]
152
+ }
153
+ },
154
+ {
155
+ name: "delete_section",
156
+ description: "Delete a section",
157
+ inputSchema: {
158
+ type: "object",
159
+ properties: {
160
+ artifact_id: { type: "string", description: "Artifact ID" },
161
+ section_id: { type: "string", description: "Section ID" }
162
+ },
163
+ required: ["artifact_id", "section_id"]
164
+ }
165
+ },
166
+ // Task tools
167
+ {
168
+ name: "list_tasks",
169
+ description: "List tasks (sections with type=task)",
170
+ inputSchema: {
171
+ type: "object",
172
+ properties: {
173
+ artifact_id: { type: "string", description: "Filter by artifact" },
174
+ status: { type: "string", description: "Filter by status: pending, in_progress, done, blocked" },
175
+ assignee: { type: "string", description: "Filter by assignee agent" }
176
+ },
177
+ required: []
178
+ }
179
+ },
180
+ {
181
+ name: "claim_task",
182
+ description: "Claim a task for the current agent",
183
+ inputSchema: {
184
+ type: "object",
185
+ properties: {
186
+ task_id: { type: "string", description: "Task ID (section UUID)" }
187
+ },
188
+ required: ["task_id"]
189
+ }
190
+ },
191
+ {
192
+ name: "complete_task",
193
+ description: "Mark a task as complete. Always pass output_artifact_id if you created an artifact. Always pass output_references listing every entity you created or touched.",
194
+ inputSchema: {
195
+ type: "object",
196
+ properties: {
197
+ task_id: { type: "string", description: "Task ID" },
198
+ output_text: { type: "string", description: "Completion summary / what was done" },
199
+ output_url: { type: "string", description: "URL to deliverable (PR, doc, etc.)" },
200
+ output_artifact_id: { type: "string", description: "UUID of the primary artifact produced by this task" },
201
+ output_references: {
202
+ type: "array",
203
+ description: "All entities created or interacted with: artifacts, tasks, agents, goals",
204
+ items: {
205
+ type: "object",
206
+ properties: {
207
+ type: { type: "string", description: "artifact | task | agent | goal" },
208
+ id: { type: "string", description: "Entity UUID" },
209
+ title: { type: "string", description: "Display name for the reference card" },
210
+ subtitle: { type: "string", description: "Optional: type label, status, role, etc." }
211
+ },
212
+ required: ["type", "id", "title"]
213
+ }
214
+ }
215
+ },
216
+ required: ["task_id"]
217
+ }
218
+ },
219
+ {
220
+ name: "block_task",
221
+ description: "Mark a task as blocked",
222
+ inputSchema: {
223
+ type: "object",
224
+ properties: {
225
+ task_id: { type: "string", description: "Task ID" },
226
+ reason: { type: "string", description: "Why it is blocked" },
227
+ blocker_type: { type: "string", description: "Type: decision, dependency, resource, external" }
228
+ },
229
+ required: ["task_id", "reason"]
230
+ }
231
+ },
232
+ {
233
+ name: "create_task",
234
+ description: "Create a new task under a goal. Use this to create actionable tasks \u2014 NOT create_artifact or create_section.",
235
+ inputSchema: {
236
+ type: "object",
237
+ properties: {
238
+ goal_id: { type: "string", description: "The goal UUID this task belongs to (required)" },
239
+ title: { type: "string", description: "Task title" },
240
+ description: { type: "string", description: "Task description / what needs to be done" },
241
+ priority: { type: "string", description: "Priority: low, medium, high, urgent" },
242
+ assigned_to: { type: "string", description: "Agent UUID to assign the task to" },
243
+ depends_on: { type: "array", items: { type: "string" }, description: "List of task UUIDs this task depends on" },
244
+ estimated_minutes: { type: "number", description: "Estimated time in minutes" }
245
+ },
246
+ required: ["goal_id", "title"]
247
+ }
248
+ },
249
+ // Agent tools
250
+ {
251
+ name: "list_agents",
252
+ description: "List all agents in the organization",
253
+ inputSchema: {
254
+ type: "object",
255
+ properties: {
256
+ status: { type: "string", description: "Filter by status: active, inactive" }
257
+ },
258
+ required: []
259
+ }
260
+ },
261
+ {
262
+ name: "get_agent",
263
+ description: "Get details about an agent",
264
+ inputSchema: {
265
+ type: "object",
266
+ properties: {
267
+ agent_id: { type: "string", description: "Agent ID" }
268
+ },
269
+ required: ["agent_id"]
270
+ }
271
+ },
272
+ {
273
+ name: "create_agent",
274
+ description: "Register a new AI agent with role, capabilities, and permissions",
275
+ inputSchema: {
276
+ type: "object",
277
+ properties: {
278
+ agentId: { type: "string", description: 'Unique agent ID (e.g., "engineering-agent", "qa-agent")' },
279
+ name: { type: "string", description: "Agent display name" },
280
+ role: { type: "string", description: "Role: pm, engineering, qa, research, content, design" },
281
+ description: { type: "string", description: "What this agent does - detailed description" },
282
+ capabilities: { type: "array", items: { type: "string" }, description: 'List of capabilities (e.g., ["code-review", "testing", "debugging"])' },
283
+ permissions: {
284
+ type: "object",
285
+ description: "Permission settings",
286
+ properties: {
287
+ write: { type: "boolean", description: "Can create/edit artifacts" },
288
+ delete: { type: "boolean", description: "Can delete artifacts" },
289
+ delegate_tasks: { type: "boolean", description: "Can assign tasks to other agents" }
290
+ }
291
+ },
292
+ systemPrompt: { type: "string", description: "System prompt for the agent" },
293
+ reportsToAgentId: { type: "string", description: 'Agent ID or UUID of the parent agent this agent reports to. Use agent slugs like "chief-of-staff" for readability.' }
294
+ },
295
+ required: ["agentId", "name", "role", "description"]
296
+ }
297
+ },
298
+ {
299
+ name: "update_agent",
300
+ description: "Update an agent",
301
+ inputSchema: {
302
+ type: "object",
303
+ properties: {
304
+ agent_id: { type: "string", description: "Agent ID" },
305
+ name: { type: "string", description: "New name" },
306
+ status: { type: "string", description: "New status" },
307
+ config: { type: "object", description: "Updated config" }
308
+ },
309
+ required: ["agent_id"]
310
+ }
311
+ },
312
+ // Inbox tools (human-in-the-loop)
313
+ {
314
+ name: "create_inbox_item",
315
+ description: "Request human approval, a decision, or an answer before proceeding. Automatically blocks the task. Use for agent creation, risky actions, or anything requiring human sign-off.",
316
+ inputSchema: {
317
+ type: "object",
318
+ properties: {
319
+ task_id: { type: "string", description: "UUID of the task being blocked (required)" },
320
+ type: { type: "string", description: "Type: approval, decision, question" },
321
+ title: { type: "string", description: "Short summary shown to the human in the inbox" },
322
+ content: { type: "string", description: "Full context and details for the human" },
323
+ action: { type: "string", description: "Action to auto-execute if approved (e.g. agent.create)" },
324
+ action_payload: { type: "object", description: "Data for the action (e.g. full agent spec for agent.create)" },
325
+ options: { type: "array", description: "Options for decision type: [{id, label, description}]" }
326
+ },
327
+ required: ["task_id", "type", "title"]
328
+ }
329
+ },
330
+ {
331
+ name: "list_inbox",
332
+ description: "List pending inbox items (approvals, decisions, questions) waiting for human resolution.",
333
+ inputSchema: {
334
+ type: "object",
335
+ properties: {
336
+ status: { type: "string", description: "Filter by status: pending (default), resolved" },
337
+ type: { type: "string", description: "Filter by type: approval, decision, question" },
338
+ limit: { type: "number", description: "Max results (default 50)" }
339
+ },
340
+ required: []
341
+ }
342
+ },
343
+ {
344
+ name: "resolve_inbox",
345
+ description: "Resolve an inbox item from the agent side. Humans resolve via the UI \u2014 only use this for automated resolution.",
346
+ inputSchema: {
347
+ type: "object",
348
+ properties: {
349
+ item_id: { type: "string", description: "Inbox item UUID" },
350
+ approved: { type: "boolean", description: "For approvals: true to approve, false to deny" },
351
+ chosen_option: { type: "string", description: "For decisions: the selected option ID" },
352
+ answer: { type: "string", description: "For questions: the answer text" },
353
+ notes: { type: "string", description: "Optional notes" }
354
+ },
355
+ required: ["item_id"]
356
+ }
357
+ },
358
+ // Search tools
359
+ {
360
+ name: "search_artifacts",
361
+ description: "Search artifacts by text query",
362
+ inputSchema: {
363
+ type: "object",
364
+ properties: {
365
+ query: { type: "string", description: "Search query" },
366
+ type: { type: "string", description: "Filter by type" },
367
+ limit: { type: "number", description: "Max results" }
368
+ },
369
+ required: ["query"]
370
+ }
371
+ },
372
+ // Context tools
373
+ {
374
+ name: "get_task_context",
375
+ description: "Get full context for a task (org, project, artifact, related sections)",
376
+ inputSchema: {
377
+ type: "object",
378
+ properties: {
379
+ task_id: { type: "string", description: "Task ID" }
380
+ },
381
+ required: ["task_id"]
382
+ }
383
+ }
384
+ ];
385
+ var ArtyfactsApiClient = class {
386
+ constructor(baseUrl, apiKey, agentId) {
387
+ this.baseUrl = baseUrl;
388
+ this.apiKey = apiKey;
389
+ this.agentId = agentId;
390
+ }
391
+ async request(method, path, body) {
392
+ const url = `${this.baseUrl}${path}`;
393
+ const headers = {
394
+ "Authorization": `Bearer ${this.apiKey}`,
395
+ "Content-Type": "application/json"
396
+ };
397
+ if (this.agentId) {
398
+ headers["X-Agent-Id"] = this.agentId;
399
+ }
400
+ const response = await fetch(url, {
401
+ method,
402
+ headers,
403
+ body: body ? JSON.stringify(body) : void 0
404
+ });
405
+ if (!response.ok) {
406
+ const error = await response.json().catch(() => ({ error: "Request failed" }));
407
+ throw new Error(error.error || `HTTP ${response.status}: ${response.statusText}`);
408
+ }
409
+ return response.json();
410
+ }
411
+ get(path) {
412
+ return this.request("GET", path);
413
+ }
414
+ getAgentId() {
415
+ return this.agentId;
416
+ }
417
+ post(path, body) {
418
+ return this.request("POST", path, body);
419
+ }
420
+ patch(path, body) {
421
+ return this.request("PATCH", path, body);
422
+ }
423
+ delete(path) {
424
+ return this.request("DELETE", path);
425
+ }
426
+ };
427
+ var toolHandlers = {
428
+ // Organization
429
+ get_organization: (client) => client.get("/org"),
430
+ // Projects
431
+ list_projects: (client, args) => {
432
+ const params = new URLSearchParams();
433
+ if (args.limit) params.set("limit", String(args.limit));
434
+ if (args.offset) params.set("offset", String(args.offset));
435
+ return client.get(`/projects?${params}`);
436
+ },
437
+ get_project: (client, args) => client.get(`/projects/${args.project_id}`),
438
+ // Artifacts
439
+ list_artifacts: (client, args) => {
440
+ const params = new URLSearchParams();
441
+ if (args.project_id) params.set("project_id", String(args.project_id));
442
+ if (args.type) params.set("type", String(args.type));
443
+ if (args.status) params.set("status", String(args.status));
444
+ if (args.limit) params.set("limit", String(args.limit));
445
+ return client.get(`/artifacts?${params}`);
446
+ },
447
+ get_artifact: (client, args) => client.get(`/artifacts/${args.artifact_id}`),
448
+ create_artifact: (client, args) => {
449
+ const envelope = {
450
+ aah_version: "0.3",
451
+ artifact: {
452
+ id: args.id || `artifact-${Date.now()}`,
453
+ title: args.title,
454
+ type: args.type || "document/sectioned",
455
+ artifact_type: args.artifact_type || args.type || "doc",
456
+ goal_id: args.goal_id,
457
+ parent_id: args.parent_id,
458
+ tags: args.tags
459
+ },
460
+ content: args.content ? {
461
+ media_type: "text/markdown",
462
+ body: args.content
463
+ } : void 0,
464
+ source: {
465
+ agent_id: client.getAgentId() || "mcp-agent"
466
+ }
467
+ };
468
+ return client.post("/artifacts", envelope);
469
+ },
470
+ update_artifact: (client, args) => {
471
+ const { artifact_id, ...body } = args;
472
+ return client.patch(`/artifacts/${artifact_id}`, body);
473
+ },
474
+ // Sections
475
+ list_sections: (client, args) => client.get(`/artifacts/${args.artifact_id}/sections`),
476
+ get_section: (client, args) => client.get(`/artifacts/${args.artifact_id}/sections/${args.section_id}`),
477
+ create_section: (client, args) => {
478
+ const { artifact_id, section_id, ...rest } = args;
479
+ const body = { id: section_id, ...rest };
480
+ return client.post(`/artifacts/${artifact_id}/sections`, body);
481
+ },
482
+ update_section: (client, args) => {
483
+ const { artifact_id, section_id, ...body } = args;
484
+ return client.patch(`/artifacts/${artifact_id}/sections/${section_id}`, body);
485
+ },
486
+ delete_section: (client, args) => client.delete(`/artifacts/${args.artifact_id}/sections/${args.section_id}`),
487
+ // Tasks
488
+ list_tasks: (client, args) => {
489
+ const params = new URLSearchParams();
490
+ if (args.artifact_id) params.set("artifact_id", String(args.artifact_id));
491
+ if (args.status) params.set("status", String(args.status));
492
+ if (args.assignee) params.set("assignee", String(args.assignee));
493
+ return client.get(`/tasks?${params}`);
494
+ },
495
+ claim_task: (client, args) => client.post(`/tasks/${args.task_id}/claim`),
496
+ complete_task: (client, args) => {
497
+ const { task_id, ...body } = args;
498
+ return client.post(`/tasks/${task_id}/complete`, body);
499
+ },
500
+ block_task: (client, args) => {
501
+ const { task_id, ...body } = args;
502
+ return client.post(`/tasks/${task_id}/block`, body);
503
+ },
504
+ create_task: (client, args) => {
505
+ const { goal_id, title, description, priority, assigned_to, depends_on, estimated_minutes } = args;
506
+ return client.post("/tasks", { goal_id, title, description, priority, assigned_to, depends_on, estimated_minutes });
507
+ },
508
+ // Agents
509
+ list_agents: (client, args) => {
510
+ const params = new URLSearchParams();
511
+ if (args.status) params.set("status", String(args.status));
512
+ return client.get(`/agents?${params}`);
513
+ },
514
+ get_agent: (client, args) => client.get(`/agents/${args.agent_id}`),
515
+ create_agent: (client, args) => {
516
+ const body = {
517
+ agentId: args.agentId,
518
+ name: args.name,
519
+ role: args.role,
520
+ description: args.description,
521
+ reportsToAgentId: args.reportsToAgentId,
522
+ permissions: args.permissions || { write: true, delete: false, delegate_tasks: false },
523
+ metadata: {
524
+ capabilities: args.capabilities || [],
525
+ systemPrompt: args.systemPrompt,
526
+ createdVia: "mcp"
527
+ }
528
+ };
529
+ return client.post("/agents", body);
530
+ },
531
+ update_agent: (client, args) => {
532
+ const { agent_id, ...body } = args;
533
+ return client.patch(`/agents/${agent_id}`, body);
534
+ },
535
+ // Inbox (human-in-the-loop)
536
+ create_inbox_item: (client, args) => {
537
+ const { task_id, type, title, content, action, action_payload, options } = args;
538
+ return client.post("/inbox", { task_id, type, title, content, action, action_payload, options });
539
+ },
540
+ list_inbox: (client, args) => {
541
+ const params = new URLSearchParams();
542
+ if (args.status) params.set("status", String(args.status));
543
+ if (args.type) params.set("type", String(args.type));
544
+ if (args.limit) params.set("limit", String(args.limit));
545
+ return client.get(`/inbox?${params}`);
546
+ },
547
+ resolve_inbox: (client, args) => {
548
+ const { item_id, ...body } = args;
549
+ return client.post(`/inbox/${item_id}/resolve`, body);
550
+ },
551
+ // Search
552
+ search_artifacts: (client, args) => {
553
+ const params = new URLSearchParams();
554
+ params.set("q", String(args.query));
555
+ if (args.type) params.set("type", String(args.type));
556
+ if (args.limit) params.set("limit", String(args.limit));
557
+ return client.get(`/search?${params}`);
558
+ },
559
+ // Context
560
+ get_task_context: (client, args) => client.get(`/tasks/${args.task_id}/context`)
561
+ };
562
+ var ArtyfactsMcpServer = class {
563
+ server;
564
+ client;
565
+ config;
566
+ constructor(config) {
567
+ this.config = config;
568
+ this.client = new ArtyfactsApiClient(
569
+ config.baseUrl || "https://artyfacts.dev/api/v1",
570
+ config.apiKey,
571
+ config.agentId
572
+ );
573
+ this.server = new Server(
574
+ {
575
+ name: config.name || "artyfacts-mcp",
576
+ version: config.version || "1.0.0"
577
+ },
578
+ {
579
+ capabilities: {
580
+ tools: {}
581
+ }
582
+ }
583
+ );
584
+ this.setupHandlers();
585
+ }
586
+ setupHandlers() {
587
+ this.server.setRequestHandler(ListToolsRequestSchema, async () => {
588
+ return { tools: ARTYFACTS_TOOLS };
589
+ });
590
+ this.server.setRequestHandler(CallToolRequestSchema, async (request) => {
591
+ const { name, arguments: args } = request.params;
592
+ const handler = toolHandlers[name];
593
+ if (!handler) {
594
+ return {
595
+ content: [{ type: "text", text: `Unknown tool: ${name}` }],
596
+ isError: true
597
+ };
598
+ }
599
+ try {
600
+ const result = await handler(this.client, args || {});
601
+ return {
602
+ content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
603
+ };
604
+ } catch (error) {
605
+ const message = error instanceof Error ? error.message : String(error);
606
+ return {
607
+ content: [{ type: "text", text: `Error: ${message}` }],
608
+ isError: true
609
+ };
610
+ }
611
+ });
612
+ }
613
+ async start() {
614
+ const transport = new StdioServerTransport();
615
+ await this.server.connect(transport);
616
+ console.error(`Artyfacts MCP server running (${ARTYFACTS_TOOLS.length} tools)`);
617
+ }
618
+ getServer() {
619
+ return this.server;
620
+ }
621
+ };
622
+ function createMcpServer(config) {
623
+ return new ArtyfactsMcpServer(config);
624
+ }
625
+ async function startServer(server) {
626
+ await server.start();
627
+ }
628
+
629
+ export {
630
+ ArtyfactsMcpServer,
631
+ createMcpServer,
632
+ startServer
633
+ };
package/dist/index.cjs CHANGED
@@ -100,6 +100,7 @@ var ARTYFACTS_TOOLS = [
100
100
  title: { type: "string", description: "Artifact title" },
101
101
  type: { type: "string", description: "Artifact type: goal, spec, research, report, experiment, decision, doc" },
102
102
  content: { type: "string", description: "Markdown content" },
103
+ goal_id: { type: "string", description: "The goal UUID this artifact belongs to \u2014 always pass this when working on a task" },
103
104
  parent_id: { type: "string", description: "Parent artifact ID for nested artifacts" },
104
105
  tags: { type: "array", items: { type: "string" }, description: "Tags for categorization" }
105
106
  },
@@ -253,6 +254,19 @@ var ARTYFACTS_TOOLS = [
253
254
  required: ["task_id", "reason"]
254
255
  }
255
256
  },
257
+ {
258
+ name: "report_progress",
259
+ description: 'Report what you are currently doing on a task. Call this at meaningful milestones so your work is visible in the platform (e.g., "Analyzed 12 PRs, now writing the summary section", "Completed API design, starting implementation"). This is how your progress appears to humans watching the work.',
260
+ inputSchema: {
261
+ type: "object",
262
+ properties: {
263
+ task_id: { type: "string", description: "Task ID" },
264
+ message: { type: "string", description: "What you are doing right now \u2014 be specific and human-readable" },
265
+ metadata: { type: "object", description: "Optional extra context (step number, percentage, etc.)" }
266
+ },
267
+ required: ["task_id", "message"]
268
+ }
269
+ },
256
270
  {
257
271
  name: "create_task",
258
272
  description: "Create a new task under a goal. Use this to create actionable tasks \u2014 NOT create_artifact or create_section.",
@@ -477,6 +491,7 @@ var toolHandlers = {
477
491
  title: args.title,
478
492
  type: args.type || "document/sectioned",
479
493
  artifact_type: args.artifact_type || args.type || "doc",
494
+ goal_id: args.goal_id,
480
495
  parent_id: args.parent_id,
481
496
  tags: args.tags
482
497
  },
@@ -524,6 +539,14 @@ var toolHandlers = {
524
539
  const { task_id, ...body } = args;
525
540
  return client.post(`/tasks/${task_id}/block`, body);
526
541
  },
542
+ report_progress: (client, args) => {
543
+ const { task_id, message, metadata } = args;
544
+ return client.post(`/tasks/${task_id}/activity`, {
545
+ type: "progress",
546
+ content: message,
547
+ metadata: metadata ?? {}
548
+ });
549
+ },
527
550
  create_task: (client, args) => {
528
551
  const { goal_id, title, description, priority, assigned_to, depends_on, estimated_minutes } = args;
529
552
  return client.post("/tasks", { goal_id, title, description, priority, assigned_to, depends_on, estimated_minutes });
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  ArtyfactsMcpServer,
3
3
  createMcpServer,
4
4
  startServer
5
- } from "./chunk-GOOQPNGV.js";
5
+ } from "./chunk-MQM6RARV.js";
6
6
  export {
7
7
  ArtyfactsMcpServer,
8
8
  createMcpServer,