@agllama/mcp 0.5.24 → 0.5.26
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/dist/api-client.d.ts +2 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +22 -0
- package/dist/api-client.js.map +1 -1
- package/dist/server.js +25 -36
- package/dist/server.js.map +1 -1
- package/dist/tools/attachments.d.ts +17 -20
- package/dist/tools/attachments.d.ts.map +1 -1
- package/dist/tools/attachments.js +192 -187
- package/dist/tools/attachments.js.map +1 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/column-instructions.d.ts +1 -0
- package/dist/utils/column-instructions.d.ts.map +1 -1
- package/dist/utils/column-instructions.js +18 -5
- package/dist/utils/column-instructions.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,256 +1,261 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import * as fs from 'node:fs/promises';
|
|
3
|
+
import * as path from 'node:path';
|
|
2
4
|
import { getApiClient, LlamaApiError } from '../api-client.js';
|
|
3
5
|
import { getSessionDefaults } from './session.js';
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
async function resolveOrgProject(inputOrgSlug, inputProjectKey) {
|
|
7
|
+
const defaults = await getSessionDefaults();
|
|
8
|
+
const orgSlug = inputOrgSlug ?? defaults?.orgSlug;
|
|
9
|
+
const projectKey = inputProjectKey ?? defaults?.projectKey;
|
|
10
|
+
if (!orgSlug) {
|
|
11
|
+
return { error: 'orgSlug is required. Either provide it or set session context with llama_set_context first.' };
|
|
12
|
+
}
|
|
13
|
+
if (!projectKey) {
|
|
14
|
+
return { error: 'projectKey is required. Either provide it or set session context with llama_set_context first.' };
|
|
15
|
+
}
|
|
16
|
+
return { orgSlug, projectKey };
|
|
10
17
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
function formatError(error, operation) {
|
|
19
|
+
if (error instanceof LlamaApiError) {
|
|
20
|
+
return JSON.stringify({
|
|
21
|
+
success: false,
|
|
22
|
+
error: `Failed to ${operation}: ${error.message}`,
|
|
23
|
+
statusCode: error.statusCode,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
return JSON.stringify({
|
|
27
|
+
success: false,
|
|
28
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
29
|
+
});
|
|
14
30
|
}
|
|
31
|
+
const MIME_MAP = {
|
|
32
|
+
'.jpg': 'image/jpeg',
|
|
33
|
+
'.jpeg': 'image/jpeg',
|
|
34
|
+
'.png': 'image/png',
|
|
35
|
+
'.gif': 'image/gif',
|
|
36
|
+
'.webp': 'image/webp',
|
|
37
|
+
'.pdf': 'application/pdf',
|
|
38
|
+
'.doc': 'application/msword',
|
|
39
|
+
'.docx': 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
|
|
40
|
+
'.xls': 'application/vnd.ms-excel',
|
|
41
|
+
'.xlsx': 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
|
|
42
|
+
'.txt': 'text/plain',
|
|
43
|
+
'.md': 'text/markdown',
|
|
44
|
+
'.csv': 'text/csv',
|
|
45
|
+
'.json': 'application/json',
|
|
46
|
+
'.zip': 'application/zip',
|
|
47
|
+
};
|
|
48
|
+
const MAX_FILE_SIZE = 10 * 1024 * 1024; // 10MB
|
|
15
49
|
// ============================================
|
|
16
|
-
//
|
|
50
|
+
// Attach File
|
|
17
51
|
// ============================================
|
|
18
|
-
export const
|
|
19
|
-
export const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
.string()
|
|
24
|
-
.optional()
|
|
25
|
-
.describe('Organization slug (uses session default if not provided)'),
|
|
26
|
-
projectKey: z
|
|
27
|
-
.string()
|
|
28
|
-
.optional()
|
|
29
|
-
.describe('Project key (uses session default if not provided)'),
|
|
52
|
+
export const attachFileToolName = 'llama_attach_file';
|
|
53
|
+
export const attachFileToolDescription = `Upload files from local disk to an issue as attachments. Accepts absolute file paths. Max 10MB per file. Supported types: images (png, jpg, gif, webp), documents (pdf, doc, docx, xls, xlsx, txt, md, csv, json), archives (zip). Use embedInDescription to automatically append image markdown to the issue description.`;
|
|
54
|
+
export const attachFileToolSchema = z.object({
|
|
55
|
+
orgSlug: z.string().optional().describe('Organization slug (uses session default if not provided)'),
|
|
56
|
+
projectKey: z.string().optional().describe('Project key (uses session default if not provided)'),
|
|
30
57
|
issueKey: z.string().describe('Issue key (e.g., "PROJ-123")'),
|
|
58
|
+
filePaths: z.array(z.string()).min(1).describe('Absolute file paths to upload'),
|
|
59
|
+
embedInDescription: z.boolean().optional().describe('If true, appends markdown image/link references to the issue description for uploaded files'),
|
|
31
60
|
});
|
|
32
|
-
export async function
|
|
61
|
+
export async function executeAttachFile(input) {
|
|
33
62
|
try {
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!orgSlug) {
|
|
38
|
-
return JSON.stringify({
|
|
39
|
-
success: false,
|
|
40
|
-
error: 'orgSlug is required. Either provide it or set session context with llama_set_context first.',
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
if (!projectKey) {
|
|
44
|
-
return JSON.stringify({
|
|
45
|
-
success: false,
|
|
46
|
-
error: 'projectKey is required. Either provide it or set session context with llama_set_context first.',
|
|
47
|
-
});
|
|
63
|
+
const context = await resolveOrgProject(input.orgSlug, input.projectKey);
|
|
64
|
+
if ('error' in context) {
|
|
65
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
48
66
|
}
|
|
49
67
|
const client = getApiClient();
|
|
50
|
-
// Record tool call
|
|
51
68
|
try {
|
|
52
|
-
await client.recordToolCall('
|
|
69
|
+
await client.recordToolCall('llama_attach_file', { orgSlug: context.orgSlug, projectKey: context.projectKey });
|
|
53
70
|
}
|
|
54
71
|
catch {
|
|
55
72
|
// Ignore recording errors
|
|
56
73
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
// Validate all files before uploading any
|
|
75
|
+
const validatedFiles = [];
|
|
76
|
+
for (const filePath of input.filePaths) {
|
|
77
|
+
// Security: require absolute paths, reject traversal
|
|
78
|
+
if (!path.isAbsolute(filePath)) {
|
|
79
|
+
return JSON.stringify({ success: false, error: `Path must be absolute: ${filePath}` });
|
|
80
|
+
}
|
|
81
|
+
if (filePath.includes('..')) {
|
|
82
|
+
return JSON.stringify({ success: false, error: `Path traversal not allowed: ${filePath}` });
|
|
83
|
+
}
|
|
84
|
+
// Check file exists and get size
|
|
85
|
+
let stat;
|
|
86
|
+
try {
|
|
87
|
+
stat = await fs.stat(filePath);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
return JSON.stringify({ success: false, error: `File not found: ${filePath}` });
|
|
91
|
+
}
|
|
92
|
+
if (!stat.isFile()) {
|
|
93
|
+
return JSON.stringify({ success: false, error: `Not a file: ${filePath}` });
|
|
94
|
+
}
|
|
95
|
+
if (stat.size > MAX_FILE_SIZE) {
|
|
96
|
+
return JSON.stringify({
|
|
97
|
+
success: false,
|
|
98
|
+
error: `File too large (${(stat.size / 1024 / 1024).toFixed(1)}MB > 10MB limit): ${filePath}`,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
// Check MIME type
|
|
102
|
+
const ext = path.extname(filePath).toLowerCase();
|
|
103
|
+
const mimeType = MIME_MAP[ext];
|
|
104
|
+
if (!mimeType) {
|
|
105
|
+
return JSON.stringify({
|
|
106
|
+
success: false,
|
|
107
|
+
error: `Unsupported file type "${ext}". Supported: ${Object.keys(MIME_MAP).join(', ')}`,
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
validatedFiles.push({
|
|
111
|
+
filePath,
|
|
112
|
+
fileName: path.basename(filePath),
|
|
113
|
+
mimeType,
|
|
114
|
+
size: stat.size,
|
|
115
|
+
});
|
|
66
116
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
117
|
+
// Upload each file
|
|
118
|
+
const results = [];
|
|
119
|
+
const errors = [];
|
|
120
|
+
for (const file of validatedFiles) {
|
|
121
|
+
try {
|
|
122
|
+
const buffer = await fs.readFile(file.filePath);
|
|
123
|
+
const attachment = await client.uploadAttachmentBuffer(context.orgSlug, context.projectKey, input.issueKey, file.fileName, buffer, file.mimeType);
|
|
124
|
+
const downloadUrl = client.getAttachmentDownloadUrl(context.orgSlug, context.projectKey, input.issueKey, attachment.id);
|
|
125
|
+
results.push({
|
|
126
|
+
fileName: file.fileName,
|
|
127
|
+
size: file.size,
|
|
128
|
+
attachmentId: attachment.id,
|
|
129
|
+
downloadUrl,
|
|
130
|
+
mimeType: file.mimeType,
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
catch (err) {
|
|
134
|
+
errors.push({
|
|
135
|
+
fileName: file.fileName,
|
|
136
|
+
error: err instanceof Error ? err.message : 'Upload failed',
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (errors.length > 0 && results.length === 0) {
|
|
84
141
|
return JSON.stringify({
|
|
85
142
|
success: false,
|
|
86
|
-
error:
|
|
87
|
-
|
|
143
|
+
error: 'All uploads failed',
|
|
144
|
+
errors,
|
|
88
145
|
});
|
|
89
146
|
}
|
|
147
|
+
// Embed in description if requested
|
|
148
|
+
if (input.embedInDescription && results.length > 0) {
|
|
149
|
+
try {
|
|
150
|
+
const issue = await client.getIssue(context.orgSlug, context.projectKey, input.issueKey);
|
|
151
|
+
const existingDesc = issue.description || '';
|
|
152
|
+
const markdownLines = results.map((r) => {
|
|
153
|
+
if (r.mimeType.startsWith('image/')) {
|
|
154
|
+
return ``;
|
|
155
|
+
}
|
|
156
|
+
return `[${r.fileName}](${r.downloadUrl})`;
|
|
157
|
+
});
|
|
158
|
+
const separator = existingDesc.length > 0 ? '\n\n' : '';
|
|
159
|
+
const newDescription = existingDesc + separator + markdownLines.join('\n\n');
|
|
160
|
+
await client.updateIssue(context.orgSlug, context.projectKey, input.issueKey, {
|
|
161
|
+
description: newDescription,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
catch {
|
|
165
|
+
// Don't fail the whole operation if embed fails
|
|
166
|
+
return JSON.stringify({
|
|
167
|
+
success: true,
|
|
168
|
+
message: `Uploaded ${results.length} file(s) to ${input.issueKey} (but failed to embed in description)`,
|
|
169
|
+
attachments: results,
|
|
170
|
+
...(errors.length > 0 ? { errors } : {}),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
}
|
|
90
174
|
return JSON.stringify({
|
|
91
|
-
success:
|
|
92
|
-
|
|
175
|
+
success: true,
|
|
176
|
+
message: `Uploaded ${results.length} file(s) to ${input.issueKey}${input.embedInDescription ? ' and embedded in description' : ''}`,
|
|
177
|
+
attachments: results,
|
|
178
|
+
...(errors.length > 0 ? { errors } : {}),
|
|
93
179
|
});
|
|
94
180
|
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
return formatError(error, 'attach file');
|
|
183
|
+
}
|
|
95
184
|
}
|
|
96
185
|
// ============================================
|
|
97
|
-
//
|
|
186
|
+
// List Attachments
|
|
98
187
|
// ============================================
|
|
99
|
-
export const
|
|
100
|
-
export const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
"issueKey": "PROJ-123",
|
|
106
|
-
"fileName": "screenshot.png",
|
|
107
|
-
"base64Content": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==",
|
|
108
|
-
"mimeType": "image/png"
|
|
109
|
-
}`;
|
|
110
|
-
export const uploadAttachmentToolSchema = z.object({
|
|
111
|
-
orgSlug: z
|
|
112
|
-
.string()
|
|
113
|
-
.optional()
|
|
114
|
-
.describe('Organization slug (uses session default if not provided)'),
|
|
115
|
-
projectKey: z
|
|
116
|
-
.string()
|
|
117
|
-
.optional()
|
|
118
|
-
.describe('Project key (uses session default if not provided)'),
|
|
188
|
+
export const listAttachmentsToolName = 'llama_list_attachments';
|
|
189
|
+
export const listAttachmentsToolDescription = `List all attachments on an issue.`;
|
|
190
|
+
export const listAttachmentsToolSchema = z.object({
|
|
191
|
+
orgSlug: z.string().optional().describe('Organization slug (uses session default if not provided)'),
|
|
192
|
+
projectKey: z.string().optional().describe('Project key (uses session default if not provided)'),
|
|
119
193
|
issueKey: z.string().describe('Issue key (e.g., "PROJ-123")'),
|
|
120
|
-
fileName: z.string().describe('Original file name with extension'),
|
|
121
|
-
base64Content: z.string().describe('Base64-encoded file content'),
|
|
122
|
-
mimeType: z.string().describe('MIME type (e.g., "image/png", "application/pdf")'),
|
|
123
194
|
});
|
|
124
|
-
export async function
|
|
195
|
+
export async function executeListAttachments(input) {
|
|
125
196
|
try {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
if (!orgSlug) {
|
|
130
|
-
return JSON.stringify({
|
|
131
|
-
success: false,
|
|
132
|
-
error: 'orgSlug is required. Either provide it or set session context with llama_set_context first.',
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
if (!projectKey) {
|
|
136
|
-
return JSON.stringify({
|
|
137
|
-
success: false,
|
|
138
|
-
error: 'projectKey is required. Either provide it or set session context with llama_set_context first.',
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
if (!isValidBase64(input.base64Content)) {
|
|
142
|
-
return JSON.stringify({
|
|
143
|
-
success: false,
|
|
144
|
-
error: 'Invalid base64Content. The string must be valid base64-encoded data (length must be a multiple of 4, using only A-Z, a-z, 0-9, +, /, and = padding).',
|
|
145
|
-
});
|
|
197
|
+
const context = await resolveOrgProject(input.orgSlug, input.projectKey);
|
|
198
|
+
if ('error' in context) {
|
|
199
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
146
200
|
}
|
|
147
201
|
const client = getApiClient();
|
|
148
|
-
// Record tool call
|
|
149
202
|
try {
|
|
150
|
-
await client.recordToolCall('
|
|
151
|
-
orgSlug,
|
|
152
|
-
projectKey,
|
|
153
|
-
issueKey: input.issueKey,
|
|
154
|
-
fileName: input.fileName,
|
|
155
|
-
});
|
|
203
|
+
await client.recordToolCall('llama_list_attachments', { orgSlug: context.orgSlug, projectKey: context.projectKey });
|
|
156
204
|
}
|
|
157
205
|
catch {
|
|
158
206
|
// Ignore recording errors
|
|
159
207
|
}
|
|
160
|
-
const
|
|
208
|
+
const attachments = await client.listAttachments(context.orgSlug, context.projectKey, input.issueKey);
|
|
161
209
|
return JSON.stringify({
|
|
162
210
|
success: true,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
211
|
+
issueKey: input.issueKey,
|
|
212
|
+
count: attachments.length,
|
|
213
|
+
attachments: attachments.map((a) => ({
|
|
214
|
+
id: a.id,
|
|
215
|
+
fileName: a.originalName,
|
|
216
|
+
fileSize: a.fileSize,
|
|
217
|
+
mimeType: a.mimeType,
|
|
218
|
+
uploadedBy: a.uploadedBy.name,
|
|
219
|
+
createdAt: a.createdAt,
|
|
220
|
+
})),
|
|
172
221
|
});
|
|
173
222
|
}
|
|
174
223
|
catch (error) {
|
|
175
|
-
|
|
176
|
-
return JSON.stringify({
|
|
177
|
-
success: false,
|
|
178
|
-
error: `Failed to upload attachment: ${error.message}`,
|
|
179
|
-
statusCode: error.statusCode,
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
return JSON.stringify({
|
|
183
|
-
success: false,
|
|
184
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
185
|
-
});
|
|
224
|
+
return formatError(error, 'list attachments');
|
|
186
225
|
}
|
|
187
226
|
}
|
|
188
227
|
// ============================================
|
|
189
228
|
// Delete Attachment
|
|
190
229
|
// ============================================
|
|
191
230
|
export const deleteAttachmentToolName = 'llama_delete_attachment';
|
|
192
|
-
export const deleteAttachmentToolDescription = `Delete
|
|
193
|
-
Requires the attachment ID which can be obtained from llama_list_attachments.`;
|
|
231
|
+
export const deleteAttachmentToolDescription = `Delete an attachment from an issue.`;
|
|
194
232
|
export const deleteAttachmentToolSchema = z.object({
|
|
195
|
-
orgSlug: z
|
|
196
|
-
|
|
197
|
-
.optional()
|
|
198
|
-
.describe('Organization slug (uses session default if not provided)'),
|
|
199
|
-
projectKey: z
|
|
200
|
-
.string()
|
|
201
|
-
.optional()
|
|
202
|
-
.describe('Project key (uses session default if not provided)'),
|
|
233
|
+
orgSlug: z.string().optional().describe('Organization slug (uses session default if not provided)'),
|
|
234
|
+
projectKey: z.string().optional().describe('Project key (uses session default if not provided)'),
|
|
203
235
|
issueKey: z.string().describe('Issue key (e.g., "PROJ-123")'),
|
|
204
|
-
attachmentId: z.string().describe('Attachment ID
|
|
236
|
+
attachmentId: z.string().describe('Attachment ID to delete'),
|
|
205
237
|
});
|
|
206
238
|
export async function executeDeleteAttachment(input) {
|
|
207
239
|
try {
|
|
208
|
-
const
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
if (!orgSlug) {
|
|
212
|
-
return JSON.stringify({
|
|
213
|
-
success: false,
|
|
214
|
-
error: 'orgSlug is required. Either provide it or set session context with llama_set_context first.',
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
if (!projectKey) {
|
|
218
|
-
return JSON.stringify({
|
|
219
|
-
success: false,
|
|
220
|
-
error: 'projectKey is required. Either provide it or set session context with llama_set_context first.',
|
|
221
|
-
});
|
|
240
|
+
const context = await resolveOrgProject(input.orgSlug, input.projectKey);
|
|
241
|
+
if ('error' in context) {
|
|
242
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
222
243
|
}
|
|
223
244
|
const client = getApiClient();
|
|
224
|
-
// Record tool call
|
|
225
245
|
try {
|
|
226
|
-
await client.recordToolCall('llama_delete_attachment', {
|
|
227
|
-
orgSlug,
|
|
228
|
-
projectKey,
|
|
229
|
-
issueKey: input.issueKey,
|
|
230
|
-
attachmentId: input.attachmentId
|
|
231
|
-
});
|
|
246
|
+
await client.recordToolCall('llama_delete_attachment', { orgSlug: context.orgSlug, projectKey: context.projectKey });
|
|
232
247
|
}
|
|
233
248
|
catch {
|
|
234
249
|
// Ignore recording errors
|
|
235
250
|
}
|
|
236
|
-
await client.deleteAttachment(orgSlug, projectKey, input.issueKey, input.attachmentId);
|
|
251
|
+
await client.deleteAttachment(context.orgSlug, context.projectKey, input.issueKey, input.attachmentId);
|
|
237
252
|
return JSON.stringify({
|
|
238
253
|
success: true,
|
|
239
|
-
message: `Deleted attachment from ${input.issueKey}`,
|
|
254
|
+
message: `Deleted attachment ${input.attachmentId} from ${input.issueKey}`,
|
|
240
255
|
});
|
|
241
256
|
}
|
|
242
257
|
catch (error) {
|
|
243
|
-
|
|
244
|
-
return JSON.stringify({
|
|
245
|
-
success: false,
|
|
246
|
-
error: `Failed to delete attachment: ${error.message}`,
|
|
247
|
-
statusCode: error.statusCode,
|
|
248
|
-
});
|
|
249
|
-
}
|
|
250
|
-
return JSON.stringify({
|
|
251
|
-
success: false,
|
|
252
|
-
error: error instanceof Error ? error.message : 'Unknown error',
|
|
253
|
-
});
|
|
258
|
+
return formatError(error, 'delete attachment');
|
|
254
259
|
}
|
|
255
260
|
}
|
|
256
261
|
//# sourceMappingURL=attachments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments.js","sourceRoot":"","sources":["../../src/tools/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EA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,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,CAAC;QACvH,CAAC;QAAC,MAAM,CAAC;YACP,0BAA0B;QAC5B,CAAC;QAED,MAAM,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;QAEvG,OAAO,IAAI,CAAC,SAAS,CAAC;YACpB,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,sBAAsB,KAAK,CAAC,YAAY,SAAS,KAAK,CAAC,QAAQ,EAAE;SAC3E,CAAC,CAAC;IACL,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,WAAW,CAAC,KAAK,EAAE,mBAAmB,CAAC,CAAC;IACjD,CAAC;AACH,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export * from './projectErrors.js';
|
|
|
23
23
|
export * from './help.js';
|
|
24
24
|
export * from './session.js';
|
|
25
25
|
export * from './userDocs.js';
|
|
26
|
+
export * from './attachments.js';
|
|
26
27
|
export * from './notificationRules.js';
|
|
27
28
|
export * from './refinement.js';
|
|
28
29
|
export * from './analytics.js';
|
|
@@ -1 +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,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAElC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;
|
|
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,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AAEpC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAElC,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AAEjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
package/dist/tools/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export * from './projectErrors.js';
|
|
|
25
25
|
export * from './help.js';
|
|
26
26
|
export * from './session.js';
|
|
27
27
|
export * from './userDocs.js';
|
|
28
|
-
|
|
28
|
+
export * from './attachments.js';
|
|
29
29
|
// integrations.ts removed - use web UI for Slack setup
|
|
30
30
|
export * from './notificationRules.js';
|
|
31
31
|
export * from './refinement.js';
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +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,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,yDAAyD;AACzD,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,yFAAyF;AACzF,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,
|
|
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,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,yDAAyD;AACzD,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,yFAAyF;AACzF,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,uDAAuD;AACvD,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC"}
|
package/dist/types.d.ts
CHANGED
|
@@ -278,6 +278,7 @@ export interface MCPBoardIssue {
|
|
|
278
278
|
export interface MCPBoard {
|
|
279
279
|
id: string;
|
|
280
280
|
name: string;
|
|
281
|
+
boardRole?: 'BUSINESS' | 'TECHNICAL' | null;
|
|
281
282
|
columns: MCPBoardColumn[];
|
|
282
283
|
issues?: MCPBoardIssue[];
|
|
283
284
|
}
|
|
@@ -650,6 +651,8 @@ export interface MCPAttachment {
|
|
|
650
651
|
storedName: string;
|
|
651
652
|
mimeType: string;
|
|
652
653
|
fileSize: number;
|
|
654
|
+
storageType: string;
|
|
655
|
+
storageKey: string | null;
|
|
653
656
|
createdAt: string;
|
|
654
657
|
uploadedBy: {
|
|
655
658
|
id: string;
|