@agllama/mcp 0.5.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.
Files changed (107) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +248 -0
  3. package/dist/api-client.d.ts +120 -0
  4. package/dist/api-client.d.ts.map +1 -0
  5. package/dist/api-client.js +421 -0
  6. package/dist/api-client.js.map +1 -0
  7. package/dist/index.d.ts +3 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +18 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/server.d.ts +4 -0
  12. package/dist/server.d.ts.map +1 -0
  13. package/dist/server.js +673 -0
  14. package/dist/server.js.map +1 -0
  15. package/dist/tools/backlog.d.ts +22 -0
  16. package/dist/tools/backlog.d.ts.map +1 -0
  17. package/dist/tools/backlog.js +109 -0
  18. package/dist/tools/backlog.js.map +1 -0
  19. package/dist/tools/boardConfig.d.ts +77 -0
  20. package/dist/tools/boardConfig.d.ts.map +1 -0
  21. package/dist/tools/boardConfig.js +154 -0
  22. package/dist/tools/boardConfig.js.map +1 -0
  23. package/dist/tools/boardTemplates.d.ts +47 -0
  24. package/dist/tools/boardTemplates.d.ts.map +1 -0
  25. package/dist/tools/boardTemplates.js +119 -0
  26. package/dist/tools/boardTemplates.js.map +1 -0
  27. package/dist/tools/boards.d.ts +62 -0
  28. package/dist/tools/boards.d.ts.map +1 -0
  29. package/dist/tools/boards.js +260 -0
  30. package/dist/tools/boards.js.map +1 -0
  31. package/dist/tools/comments.d.ts +82 -0
  32. package/dist/tools/comments.d.ts.map +1 -0
  33. package/dist/tools/comments.js +275 -0
  34. package/dist/tools/comments.js.map +1 -0
  35. package/dist/tools/connect.d.ts +7 -0
  36. package/dist/tools/connect.d.ts.map +1 -0
  37. package/dist/tools/connect.js +50 -0
  38. package/dist/tools/connect.js.map +1 -0
  39. package/dist/tools/context.d.ts +19 -0
  40. package/dist/tools/context.d.ts.map +1 -0
  41. package/dist/tools/context.js +136 -0
  42. package/dist/tools/context.js.map +1 -0
  43. package/dist/tools/documents.d.ts +99 -0
  44. package/dist/tools/documents.d.ts.map +1 -0
  45. package/dist/tools/documents.js +252 -0
  46. package/dist/tools/documents.js.map +1 -0
  47. package/dist/tools/help.d.ts +13 -0
  48. package/dist/tools/help.d.ts.map +1 -0
  49. package/dist/tools/help.js +485 -0
  50. package/dist/tools/help.js.map +1 -0
  51. package/dist/tools/index.d.ts +21 -0
  52. package/dist/tools/index.d.ts.map +1 -0
  53. package/dist/tools/index.js +21 -0
  54. package/dist/tools/index.js.map +1 -0
  55. package/dist/tools/issueLinks.d.ts +45 -0
  56. package/dist/tools/issueLinks.d.ts.map +1 -0
  57. package/dist/tools/issueLinks.js +147 -0
  58. package/dist/tools/issueLinks.js.map +1 -0
  59. package/dist/tools/issues.d.ts +307 -0
  60. package/dist/tools/issues.d.ts.map +1 -0
  61. package/dist/tools/issues.js +715 -0
  62. package/dist/tools/issues.js.map +1 -0
  63. package/dist/tools/labels.d.ts +56 -0
  64. package/dist/tools/labels.d.ts.map +1 -0
  65. package/dist/tools/labels.js +213 -0
  66. package/dist/tools/labels.js.map +1 -0
  67. package/dist/tools/members.d.ts +13 -0
  68. package/dist/tools/members.d.ts.map +1 -0
  69. package/dist/tools/members.js +43 -0
  70. package/dist/tools/members.js.map +1 -0
  71. package/dist/tools/organizations.d.ts +35 -0
  72. package/dist/tools/organizations.d.ts.map +1 -0
  73. package/dist/tools/organizations.js +116 -0
  74. package/dist/tools/organizations.js.map +1 -0
  75. package/dist/tools/projects.d.ts +67 -0
  76. package/dist/tools/projects.d.ts.map +1 -0
  77. package/dist/tools/projects.js +165 -0
  78. package/dist/tools/projects.js.map +1 -0
  79. package/dist/tools/search.d.ts +34 -0
  80. package/dist/tools/search.d.ts.map +1 -0
  81. package/dist/tools/search.js +85 -0
  82. package/dist/tools/search.js.map +1 -0
  83. package/dist/tools/session.d.ts +38 -0
  84. package/dist/tools/session.d.ts.map +1 -0
  85. package/dist/tools/session.js +158 -0
  86. package/dist/tools/session.js.map +1 -0
  87. package/dist/tools/sprints.d.ts +141 -0
  88. package/dist/tools/sprints.d.ts.map +1 -0
  89. package/dist/tools/sprints.js +470 -0
  90. package/dist/tools/sprints.js.map +1 -0
  91. package/dist/tools/status.d.ts +22 -0
  92. package/dist/tools/status.d.ts.map +1 -0
  93. package/dist/tools/status.js +81 -0
  94. package/dist/tools/status.js.map +1 -0
  95. package/dist/tools/workflows.d.ts +137 -0
  96. package/dist/tools/workflows.d.ts.map +1 -0
  97. package/dist/tools/workflows.js +355 -0
  98. package/dist/tools/workflows.js.map +1 -0
  99. package/dist/types.d.ts +434 -0
  100. package/dist/types.d.ts.map +1 -0
  101. package/dist/types.js +5 -0
  102. package/dist/types.js.map +1 -0
  103. package/dist/utils/column-instructions.d.ts +21 -0
  104. package/dist/utils/column-instructions.d.ts.map +1 -0
  105. package/dist/utils/column-instructions.js +54 -0
  106. package/dist/utils/column-instructions.js.map +1 -0
  107. package/package.json +63 -0
@@ -0,0 +1,485 @@
1
+ import { z } from 'zod';
2
+ export const helpToolName = 'llama_help';
3
+ export const helpToolDescription = 'Get help and documentation for Llama MCP tools. Call without arguments for overview, or specify a category/tool for details.';
4
+ export const helpToolSchema = z.object({
5
+ topic: z
6
+ .string()
7
+ .optional()
8
+ .describe('Optional: tool name (e.g., "llama_create_issue") or category (e.g., "issues", "sprints")'),
9
+ });
10
+ // Tool documentation organized by category
11
+ const TOOL_DOCS = {
12
+ overview: {
13
+ title: 'Llama MCP Tools Overview',
14
+ description: `Llama MCP provides 46 tools for project management. Use llama_help with a topic for details.
15
+
16
+ **Quick Start:**
17
+ 1. llama_connect - Test your API connection
18
+ 2. llama_context - Get project snapshot (statuses, sprints, team, backlog)
19
+ 3. Use other tools with IDs from context
20
+
21
+ **Categories:** context, organizations, projects, issues, sprints, boards, backlog, comments, labels, members, links, search, documents, workflows
22
+
23
+ **Examples:**
24
+ - llama_help { topic: "issues" } - Learn about issue tools
25
+ - llama_help { topic: "llama_create_issue" } - Details for a specific tool`,
26
+ },
27
+ context: {
28
+ title: 'Context Tools',
29
+ tools: [
30
+ {
31
+ name: 'llama_connect',
32
+ description: 'Test API connection and get current user info',
33
+ params: 'None',
34
+ use: 'Starting a session to verify authentication',
35
+ },
36
+ {
37
+ name: 'llama_context',
38
+ description: 'Get complete project snapshot: workflow statuses, sprints, backlog, team',
39
+ params: 'orgSlug (required), projectKey (required)',
40
+ use: 'Before creating/updating issues to get valid IDs',
41
+ returns: 'Project info, org info, workflow statuses, active sprint, pending sprints, backlog (first 50), team members',
42
+ },
43
+ ],
44
+ },
45
+ organizations: {
46
+ title: 'Organization Tools',
47
+ tools: [
48
+ {
49
+ name: 'llama_list_organizations',
50
+ description: 'List all organizations the user has access to',
51
+ params: 'None',
52
+ use: 'Finding available orgs or getting org slugs',
53
+ },
54
+ {
55
+ name: 'llama_get_organization',
56
+ description: 'Get details for a specific organization',
57
+ params: 'orgSlug (required)',
58
+ },
59
+ {
60
+ name: 'llama_create_organization',
61
+ description: 'Create a new organization',
62
+ params: 'name (required), slug (required: lowercase, numbers, hyphens), description (optional)',
63
+ },
64
+ ],
65
+ },
66
+ projects: {
67
+ title: 'Project Tools',
68
+ tools: [
69
+ {
70
+ name: 'llama_list_projects',
71
+ description: 'List all projects in an organization',
72
+ params: 'orgSlug (required)',
73
+ },
74
+ {
75
+ name: 'llama_get_project',
76
+ description: 'Get project details including workflow statuses',
77
+ params: 'orgSlug (required), projectKey (required)',
78
+ },
79
+ {
80
+ name: 'llama_create_project',
81
+ description: 'Create a new project with default workflow and board',
82
+ params: 'orgSlug (required), name (required), key (required: UPPERCASE, 2-10 chars), description (optional)',
83
+ },
84
+ {
85
+ name: 'llama_update_project',
86
+ description: 'Update project name or description',
87
+ params: 'orgSlug (required), projectKey (required), name (optional), description (optional)',
88
+ },
89
+ ],
90
+ },
91
+ issues: {
92
+ title: 'Issue Tools',
93
+ tools: [
94
+ {
95
+ name: 'llama_get_issue',
96
+ description: 'Get full issue details including comments and history',
97
+ params: 'orgSlug (required), projectKey (required), issueKey (required, e.g., "PROJ-123")',
98
+ },
99
+ {
100
+ name: 'llama_create_issue',
101
+ description: 'Create a new issue',
102
+ params: `orgSlug (required), projectKey (required), summary (required), type (required: EPIC|STORY|TASK|BUG|SUBTASK)
103
+ Optional: description, priority (CRITICAL|HIGH|MEDIUM|LOW|TRIVIAL), assigneeId, sprintId, parentKey (for subtasks), estimate, labels`,
104
+ example: `{
105
+ "orgSlug": "my-team",
106
+ "projectKey": "PROJ",
107
+ "summary": "Add user auth",
108
+ "type": "STORY",
109
+ "priority": "HIGH"
110
+ }`,
111
+ },
112
+ {
113
+ name: 'llama_update_issue',
114
+ description: 'Update issue fields. Only include fields to change. Set assigneeId/sprintId to null to unassign.',
115
+ params: `orgSlug (required), projectKey (required), issueKey (required)
116
+ Optional: summary, description, type, priority, statusId, assigneeId, sprintId, estimate, labels`,
117
+ },
118
+ {
119
+ name: 'llama_delete_issue',
120
+ description: 'Soft-delete an issue (can be restored)',
121
+ params: 'orgSlug (required), projectKey (required), issueKey (required)',
122
+ },
123
+ {
124
+ name: 'llama_update_status',
125
+ description: 'Move issue to a different workflow status',
126
+ params: 'orgSlug (required), projectKey (required), issueKey (required), statusId (required: get from llama_context)',
127
+ tip: 'Common statuses: "To Do", "In Progress", "In Review", "Done"',
128
+ },
129
+ ],
130
+ },
131
+ sprints: {
132
+ title: 'Sprint Tools',
133
+ tools: [
134
+ {
135
+ name: 'llama_list_sprints',
136
+ description: 'List all sprints (planned, active, completed)',
137
+ params: 'orgSlug (required), projectKey (required)',
138
+ },
139
+ {
140
+ name: 'llama_create_sprint',
141
+ description: 'Create a new sprint in PLANNED status',
142
+ params: 'orgSlug (required), projectKey (required), name (required), goal (optional), startDate (optional: YYYY-MM-DD), endDate (optional)',
143
+ },
144
+ {
145
+ name: 'llama_get_sprint',
146
+ description: 'Get sprint details with all issues',
147
+ params: 'sprintId (required)',
148
+ },
149
+ {
150
+ name: 'llama_start_sprint',
151
+ description: 'Start a planned sprint. Only one active sprint per project.',
152
+ params: 'sprintId (required), startDate (optional: defaults to today), endDate (optional)',
153
+ },
154
+ {
155
+ name: 'llama_complete_sprint',
156
+ description: 'Complete an active sprint',
157
+ params: 'sprintId (required), moveIncompleteToBacklog (optional: default true), moveIncompleteToSprintId (optional)',
158
+ },
159
+ {
160
+ name: 'llama_update_sprint',
161
+ description: 'Update sprint name, goal, or dates',
162
+ params: 'sprintId (required), name (optional), goal (optional), startDate (optional), endDate (optional)',
163
+ },
164
+ {
165
+ name: 'llama_delete_sprint',
166
+ description: 'Delete a sprint (issues go to backlog). Cannot delete active sprints.',
167
+ params: 'sprintId (required)',
168
+ },
169
+ {
170
+ name: 'llama_add_to_sprint',
171
+ description: 'Move issues to a sprint. Pass null for sprintId to move to backlog.',
172
+ params: 'orgSlug (required), projectKey (required), issueKeys (required: array, max 20), sprintId (required: sprint ID or null for backlog)',
173
+ },
174
+ ],
175
+ },
176
+ boards: {
177
+ title: 'Board Tools',
178
+ tools: [
179
+ {
180
+ name: 'llama_list_boards',
181
+ description: 'List all boards in a project',
182
+ params: 'orgSlug (required), projectKey (required)',
183
+ },
184
+ {
185
+ name: 'llama_get_board',
186
+ description: 'Get board with columns and issues',
187
+ params: 'orgSlug (required), projectKey (required), boardId (required)',
188
+ },
189
+ {
190
+ name: 'llama_move_issue_on_board',
191
+ description: 'Move an issue to a different column (changes status)',
192
+ params: 'orgSlug (required), projectKey (required), boardId (required), issueId (required), columnId (required), afterIssueId (optional), beforeIssueId (optional)',
193
+ },
194
+ {
195
+ name: 'llama_get_board_config',
196
+ description: 'Get full board configuration including all column AI settings',
197
+ params: 'orgSlug (required), projectKey (required)',
198
+ use: 'View AI agent configurations for all board columns',
199
+ },
200
+ {
201
+ name: 'llama_update_column_config',
202
+ description: 'Update a column\'s AI configuration (agent type, instructions, etc.)',
203
+ params: 'boardId (required), columnId (required), aiEnabled (optional), agentType (optional), instructions (optional), requiredActions (optional), contextHints (optional), color (optional), icon (optional)',
204
+ use: 'Configure AI behavior for specific board columns',
205
+ },
206
+ {
207
+ name: 'llama_get_column_instructions',
208
+ description: 'Get AI instructions for a specific column',
209
+ params: 'boardId (required), columnId (required)',
210
+ use: 'View what an AI agent should do for issues in a column',
211
+ },
212
+ ],
213
+ },
214
+ backlog: {
215
+ title: 'Backlog Tools',
216
+ tools: [
217
+ {
218
+ name: 'llama_get_backlog',
219
+ description: 'Get all unassigned issues sorted by rank/priority',
220
+ params: 'orgSlug (required), projectKey (required)',
221
+ returns: 'Total count, breakdown by type, issue list',
222
+ },
223
+ ],
224
+ },
225
+ comments: {
226
+ title: 'Comment Tools',
227
+ tools: [
228
+ {
229
+ name: 'llama_list_comments',
230
+ description: 'List all comments on an issue',
231
+ params: 'orgSlug (required), projectKey (required), issueKey (required)',
232
+ },
233
+ {
234
+ name: 'llama_add_comment',
235
+ description: 'Add a comment (markdown supported)',
236
+ params: 'orgSlug (required), projectKey (required), issueKey (required), content (required)',
237
+ },
238
+ {
239
+ name: 'llama_update_comment',
240
+ description: 'Update a comment (author only)',
241
+ params: 'orgSlug (required), projectKey (required), issueKey (required), commentId (required), content (required)',
242
+ },
243
+ {
244
+ name: 'llama_delete_comment',
245
+ description: 'Delete a comment (author only)',
246
+ params: 'orgSlug (required), projectKey (required), issueKey (required), commentId (required)',
247
+ },
248
+ ],
249
+ },
250
+ labels: {
251
+ title: 'Label Tools',
252
+ tools: [
253
+ {
254
+ name: 'llama_list_labels',
255
+ description: 'List all labels in a project',
256
+ params: 'orgSlug (required), projectKey (required)',
257
+ },
258
+ {
259
+ name: 'llama_create_label',
260
+ description: 'Create a new label',
261
+ params: 'orgSlug (required), projectKey (required), name (required), color (required: hex e.g., "#ff0000"), description (optional)',
262
+ },
263
+ {
264
+ name: 'llama_delete_label',
265
+ description: 'Delete a label (removes from all issues)',
266
+ params: 'orgSlug (required), projectKey (required), labelName (required)',
267
+ },
268
+ ],
269
+ },
270
+ members: {
271
+ title: 'Member Tools',
272
+ tools: [
273
+ {
274
+ name: 'llama_list_members',
275
+ description: 'List all org members. Use to find user IDs for assignments.',
276
+ params: 'orgSlug (required)',
277
+ returns: 'Member ID, name, email, role, join date',
278
+ },
279
+ ],
280
+ },
281
+ links: {
282
+ title: 'Issue Link Tools',
283
+ tools: [
284
+ {
285
+ name: 'llama_create_issue_link',
286
+ description: 'Create a relationship between issues',
287
+ params: 'orgSlug (required), projectKey (required), issueKey (required), targetIssueKey (required), type (required)',
288
+ tip: 'Link types: BLOCKS, IS_BLOCKED_BY, RELATES_TO, DUPLICATES, IS_DUPLICATED_BY',
289
+ },
290
+ {
291
+ name: 'llama_delete_issue_link',
292
+ description: 'Remove a link between issues',
293
+ params: 'orgSlug (required), projectKey (required), issueKey (required), linkId (required)',
294
+ },
295
+ ],
296
+ },
297
+ search: {
298
+ title: 'Search Tools',
299
+ tools: [
300
+ {
301
+ name: 'llama_search',
302
+ description: 'Search issues by text and filters across summaries, descriptions, keys',
303
+ params: 'orgSlug (required), query (required), type (optional), priority (optional), status (optional), assigneeId (optional), sprintId (optional), labels (optional)',
304
+ example: `{
305
+ "orgSlug": "my-team",
306
+ "query": "login bug",
307
+ "type": "BUG",
308
+ "priority": "HIGH"
309
+ }`,
310
+ },
311
+ ],
312
+ },
313
+ documents: {
314
+ title: 'Document Tools',
315
+ description: 'Manage documents at org or project level. Types: STATIC (regular) or SPRINT_TEMPLATE (auto-generate).',
316
+ tools: [
317
+ {
318
+ name: 'llama_list_docs',
319
+ description: 'List documents in an organization or project',
320
+ params: 'orgSlug (required), projectKey (optional: omit for org-level), type (optional: STATIC/SPRINT_TEMPLATE), status (optional: DRAFT/PUBLISHED/ARCHIVED), search (optional)',
321
+ example: `{
322
+ "orgSlug": "my-team",
323
+ "projectKey": "PROJ",
324
+ "status": "PUBLISHED"
325
+ }`,
326
+ },
327
+ {
328
+ name: 'llama_get_doc',
329
+ description: 'Get full document content including HTML',
330
+ params: 'documentId (required)',
331
+ use: 'Reading document content or metadata',
332
+ },
333
+ {
334
+ name: 'llama_create_doc',
335
+ description: 'Create a new document',
336
+ params: 'orgSlug (required), projectKey (optional), title (required), slug (required: lowercase, hyphens), type (required: STATIC/SPRINT_TEMPLATE), description (optional), htmlContent (optional)',
337
+ example: `{
338
+ "orgSlug": "my-team",
339
+ "projectKey": "PROJ",
340
+ "title": "Sprint Retrospective",
341
+ "slug": "sprint-retro",
342
+ "type": "SPRINT_TEMPLATE"
343
+ }`,
344
+ },
345
+ {
346
+ name: 'llama_update_doc',
347
+ description: 'Update document content or metadata',
348
+ params: 'documentId (required), title (optional), htmlContent (optional), type (optional), status (optional: DRAFT/PUBLISHED/ARCHIVED)',
349
+ use: 'Editing content, publishing, or archiving',
350
+ },
351
+ {
352
+ name: 'llama_delete_doc',
353
+ description: 'Permanently delete a document',
354
+ params: 'documentId (required)',
355
+ use: 'Removing a document (cannot be undone)',
356
+ },
357
+ ],
358
+ },
359
+ workflows: {
360
+ title: 'Claude Workflow Tools',
361
+ description: 'Reusable procedures that Claude can execute with parameters.',
362
+ tools: [
363
+ {
364
+ name: 'llama_list_workflows',
365
+ description: 'List available workflows (project-level and org-level)',
366
+ params: 'orgSlug (required), projectKey (required)',
367
+ },
368
+ {
369
+ name: 'llama_get_workflow',
370
+ description: 'Get workflow details including content and parameters',
371
+ params: 'orgSlug (required), projectKey (required), workflowId (required)',
372
+ },
373
+ {
374
+ name: 'llama_run_workflow',
375
+ description: 'Execute a workflow with parameters',
376
+ params: 'orgSlug (required), projectKey (required), workflowId (required), parameters (optional: key-value pairs)',
377
+ },
378
+ {
379
+ name: 'llama_suggest_workflow',
380
+ description: 'Find workflows matching user intent',
381
+ params: 'orgSlug (required), projectKey (required), intent (required: what the user wants to do)',
382
+ example: `{
383
+ "orgSlug": "my-team",
384
+ "projectKey": "PROJ",
385
+ "intent": "start a new sprint"
386
+ }`,
387
+ },
388
+ ],
389
+ },
390
+ patterns: {
391
+ title: 'Common Patterns',
392
+ description: `**Creating issues for a sprint:**
393
+ 1. llama_context → get sprintId from active/pending sprints
394
+ 2. llama_create_issue → include sprintId
395
+
396
+ **Moving issue through workflow:**
397
+ 1. llama_context → get status IDs from workflow.statuses
398
+ 2. llama_update_status → use statusId for target status
399
+
400
+ **Assigning issues:**
401
+ 1. llama_list_members → get user IDs
402
+ 2. llama_update_issue → set assigneeId
403
+
404
+ **Sprint planning:**
405
+ 1. llama_get_backlog → see available issues
406
+ 2. llama_create_sprint → create new sprint
407
+ 3. llama_add_to_sprint → add issues to sprint
408
+ 4. llama_start_sprint → begin the sprint
409
+
410
+ **Searching for work:**
411
+ 1. llama_search → find issues by text/filters
412
+ 2. llama_get_issue → get full details for specific issue`,
413
+ },
414
+ };
415
+ // Individual tool details for deep lookup
416
+ const TOOL_DETAILS = {};
417
+ // Build tool details from categories
418
+ Object.entries(TOOL_DOCS).forEach(([category, data]) => {
419
+ if ('tools' in data && Array.isArray(data.tools)) {
420
+ data.tools.forEach((tool) => {
421
+ TOOL_DETAILS[tool.name] = { ...tool, category };
422
+ });
423
+ }
424
+ });
425
+ export async function executeHelp(input) {
426
+ const { topic } = input;
427
+ // No topic - return overview
428
+ if (!topic) {
429
+ const categories = Object.keys(TOOL_DOCS)
430
+ .filter((k) => k !== 'overview')
431
+ .map((k) => {
432
+ const data = TOOL_DOCS[k];
433
+ const toolCount = 'tools' in data && Array.isArray(data.tools)
434
+ ? ` (${data.tools.length} tools)`
435
+ : '';
436
+ return ` - ${k}${toolCount}`;
437
+ })
438
+ .join('\n');
439
+ return JSON.stringify({
440
+ success: true,
441
+ help: {
442
+ title: TOOL_DOCS.overview.title,
443
+ content: TOOL_DOCS.overview.description,
444
+ categories: categories,
445
+ tip: 'Use llama_help { topic: "category" } for details on a category, or llama_help { topic: "tool_name" } for a specific tool.',
446
+ },
447
+ });
448
+ }
449
+ // Check if topic is a tool name
450
+ const normalizedTopic = topic.toLowerCase().replace(/^llama_/, '');
451
+ const toolName = topic.startsWith('llama_') ? topic : `llama_${normalizedTopic}`;
452
+ if (TOOL_DETAILS[toolName]) {
453
+ return JSON.stringify({
454
+ success: true,
455
+ help: {
456
+ tool: TOOL_DETAILS[toolName],
457
+ },
458
+ });
459
+ }
460
+ // Check if topic is a category
461
+ const categoryKey = normalizedTopic;
462
+ if (TOOL_DOCS[categoryKey]) {
463
+ const categoryData = TOOL_DOCS[categoryKey];
464
+ return JSON.stringify({
465
+ success: true,
466
+ help: categoryData,
467
+ });
468
+ }
469
+ // Topic not found - return suggestions
470
+ const allTools = Object.keys(TOOL_DETAILS);
471
+ const allCategories = Object.keys(TOOL_DOCS).filter((k) => k !== 'overview');
472
+ // Simple fuzzy match
473
+ const matchingTools = allTools.filter((t) => t.includes(normalizedTopic) || normalizedTopic.includes(t.replace('llama_', '')));
474
+ const matchingCategories = allCategories.filter((c) => c.includes(normalizedTopic) || normalizedTopic.includes(c));
475
+ return JSON.stringify({
476
+ success: false,
477
+ error: `Topic "${topic}" not found`,
478
+ suggestions: {
479
+ matchingTools: matchingTools.length > 0 ? matchingTools : undefined,
480
+ matchingCategories: matchingCategories.length > 0 ? matchingCategories : undefined,
481
+ availableCategories: allCategories,
482
+ },
483
+ });
484
+ }
485
+ //# sourceMappingURL=help.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"help.js","sourceRoot":"","sources":["../../src/tools/help.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,YAAY,GAAG,YAAY,CAAC;AAEzC,MAAM,CAAC,MAAM,mBAAmB,GAC9B,8HAA8H,CAAC;AAEjI,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,0FAA0F,CAC3F;CACJ,CAAC,CAAC;AAIH,2CAA2C;AAC3C,MAAM,SAAS,GAAG;IAChB,QAAQ,EAAE;QACR,KAAK,EAAE,0BAA0B;QACjC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AAC,CAAC;IAE7E,qBAAqB;IACrB,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CACnC,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CACnF,CAAC;IACF,MAAM,kBAAkB,GAAG,aAAa,CAAC,MAAM,CAC7C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAClE,CAAC;IAEF,OAAO,IAAI,CAAC,SAAS,CACnB;QACE,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,UAAU,KAAK,aAAa;QACnC,WAAW,EAAE;YACX,aAAa,EAAE,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS;YACnE,kBAAkB,EAChB,kBAAkB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,SAAS;YAChE,mBAAmB,EAAE,aAAa;SACnC;KACF,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,21 @@
1
+ export * from './connect.js';
2
+ export * from './context.js';
3
+ export * from './issues.js';
4
+ export * from './sprints.js';
5
+ export * from './status.js';
6
+ export * from './search.js';
7
+ export * from './organizations.js';
8
+ export * from './projects.js';
9
+ export * from './boards.js';
10
+ export * from './boardConfig.js';
11
+ export * from './boardTemplates.js';
12
+ export * from './backlog.js';
13
+ export * from './comments.js';
14
+ export * from './labels.js';
15
+ export * from './members.js';
16
+ export * from './issueLinks.js';
17
+ export * from './workflows.js';
18
+ export * from './documents.js';
19
+ export * from './help.js';
20
+ export * from './session.js';
21
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,21 @@
1
+ export * from './connect.js';
2
+ export * from './context.js';
3
+ export * from './issues.js';
4
+ export * from './sprints.js';
5
+ export * from './status.js';
6
+ export * from './search.js';
7
+ export * from './organizations.js';
8
+ export * from './projects.js';
9
+ export * from './boards.js';
10
+ export * from './boardConfig.js';
11
+ export * from './boardTemplates.js';
12
+ export * from './backlog.js';
13
+ export * from './comments.js';
14
+ export * from './labels.js';
15
+ export * from './members.js';
16
+ export * from './issueLinks.js';
17
+ export * from './workflows.js';
18
+ export * from './documents.js';
19
+ export * from './help.js';
20
+ export * from './session.js';
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
@@ -0,0 +1,45 @@
1
+ import { z } from 'zod';
2
+ export declare const createIssueLinkToolName = "llama_create_issue_link";
3
+ export declare const createIssueLinkToolDescription = "Create a link between two issues.\n\nLink types:\n- BLOCKS: This issue blocks the target issue\n- IS_BLOCKED_BY: This issue is blocked by the target issue\n- RELATES_TO: General relationship between issues\n- DUPLICATES: This issue duplicates the target issue\n- IS_DUPLICATED_BY: This issue is duplicated by the target issue";
4
+ export declare const createIssueLinkToolSchema: z.ZodObject<{
5
+ orgSlug: z.ZodOptional<z.ZodString>;
6
+ projectKey: z.ZodOptional<z.ZodString>;
7
+ issueKey: z.ZodString;
8
+ targetIssueKey: z.ZodString;
9
+ type: z.ZodEnum<["BLOCKS", "IS_BLOCKED_BY", "RELATES_TO", "DUPLICATES", "IS_DUPLICATED_BY"]>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ type: "BLOCKS" | "IS_BLOCKED_BY" | "RELATES_TO" | "DUPLICATES" | "IS_DUPLICATED_BY";
12
+ issueKey: string;
13
+ targetIssueKey: string;
14
+ orgSlug?: string | undefined;
15
+ projectKey?: string | undefined;
16
+ }, {
17
+ type: "BLOCKS" | "IS_BLOCKED_BY" | "RELATES_TO" | "DUPLICATES" | "IS_DUPLICATED_BY";
18
+ issueKey: string;
19
+ targetIssueKey: string;
20
+ orgSlug?: string | undefined;
21
+ projectKey?: string | undefined;
22
+ }>;
23
+ export type CreateIssueLinkToolInput = z.infer<typeof createIssueLinkToolSchema>;
24
+ export declare function executeCreateIssueLink(input: CreateIssueLinkToolInput): Promise<string>;
25
+ export declare const deleteIssueLinkToolName = "llama_delete_issue_link";
26
+ export declare const deleteIssueLinkToolDescription = "Remove a link between two issues.";
27
+ export declare const deleteIssueLinkToolSchema: z.ZodObject<{
28
+ orgSlug: z.ZodOptional<z.ZodString>;
29
+ projectKey: z.ZodOptional<z.ZodString>;
30
+ issueKey: z.ZodString;
31
+ linkId: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ issueKey: string;
34
+ linkId: string;
35
+ orgSlug?: string | undefined;
36
+ projectKey?: string | undefined;
37
+ }, {
38
+ issueKey: string;
39
+ linkId: string;
40
+ orgSlug?: string | undefined;
41
+ projectKey?: string | undefined;
42
+ }>;
43
+ export type DeleteIssueLinkToolInput = z.infer<typeof deleteIssueLinkToolSchema>;
44
+ export declare function executeDeleteIssueLink(input: DeleteIssueLinkToolInput): Promise<string>;
45
+ //# sourceMappingURL=issueLinks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issueLinks.d.ts","sourceRoot":"","sources":["../../src/tools/issueLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,8BAA8B,0UAOsB,CAAC;AAElE,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;EAcpC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEjF,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,MAAM,CAAC,CAuEjB;AAMD,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AAEjE,eAAO,MAAM,8BAA8B,sCAAsC,CAAC;AAElF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAWpC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAEjF,wBAAsB,sBAAsB,CAC1C,KAAK,EAAE,wBAAwB,GAC9B,OAAO,CAAC,MAAM,CAAC,CA8DjB"}