@lil2good/nubis-mcp-server 1.0.9 → 1.0.10
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/build/index.js +25 -0
- package/package.json +1 -1
- package/src/index.ts +30 -0
package/build/index.js
CHANGED
|
@@ -193,6 +193,31 @@ server.tool("move_task", "Move a task to ['backlog', 'in-progress','reviewing',
|
|
|
193
193
|
],
|
|
194
194
|
};
|
|
195
195
|
});
|
|
196
|
+
// Create Task -> Create a new task
|
|
197
|
+
server.tool("create_task", "Create a new task", {
|
|
198
|
+
title: zod_1.z.string(),
|
|
199
|
+
description: zod_1.z.string().optional(),
|
|
200
|
+
board: zod_1.z.enum(['backlog', 'bugs', 'in-progress', 'priority', 'reviewing', 'completed']).optional().default('backlog'),
|
|
201
|
+
}, async ({ title, description, board }) => {
|
|
202
|
+
const data = await getResultsFromMiddleware({
|
|
203
|
+
endpoint: 'create_task',
|
|
204
|
+
schema: {
|
|
205
|
+
title,
|
|
206
|
+
description,
|
|
207
|
+
board
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
if (!data)
|
|
211
|
+
throw new Error('No data returned from middleware');
|
|
212
|
+
return {
|
|
213
|
+
content: [
|
|
214
|
+
{
|
|
215
|
+
type: "text",
|
|
216
|
+
text: JSON.stringify(data),
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
};
|
|
220
|
+
});
|
|
196
221
|
// Start server
|
|
197
222
|
async function main() {
|
|
198
223
|
const transport = new stdio_js_1.StdioServerTransport();
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -240,6 +240,36 @@ server.tool(
|
|
|
240
240
|
}
|
|
241
241
|
);
|
|
242
242
|
|
|
243
|
+
// Create Task -> Create a new task
|
|
244
|
+
server.tool(
|
|
245
|
+
"create_task",
|
|
246
|
+
"Create a new task",
|
|
247
|
+
{
|
|
248
|
+
title: z.string(),
|
|
249
|
+
description: z.string().optional(),
|
|
250
|
+
board: z.enum(['backlog', 'bugs', 'in-progress', 'priority', 'reviewing', 'completed']).optional().default('backlog'),
|
|
251
|
+
},
|
|
252
|
+
async ({ title, description, board }) => {
|
|
253
|
+
const data = await getResultsFromMiddleware({
|
|
254
|
+
endpoint: 'create_task',
|
|
255
|
+
schema: {
|
|
256
|
+
title,
|
|
257
|
+
description,
|
|
258
|
+
board
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
if (!data) throw new Error('No data returned from middleware');
|
|
262
|
+
return {
|
|
263
|
+
content: [
|
|
264
|
+
{
|
|
265
|
+
type: "text",
|
|
266
|
+
text: JSON.stringify(data),
|
|
267
|
+
},
|
|
268
|
+
],
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
|
|
243
273
|
// Start server
|
|
244
274
|
async function main() {
|
|
245
275
|
const transport = new StdioServerTransport();
|