@blackenedd18/planio-connector 2026.623.3 → 2026.701.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.
- package/package.json +1 -1
- package/src/modules/issues/index.js +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blackenedd18/planio-connector",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.701.0",
|
|
4
4
|
"description": "MCP server exposing Planio/Redmine operations (users, issues, projects, hours, time entries) over stdio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -141,6 +141,21 @@ export const TOOLS = [
|
|
|
141
141
|
additionalProperties: false,
|
|
142
142
|
},
|
|
143
143
|
},
|
|
144
|
+
{
|
|
145
|
+
name: 'add_note_to_issue_by_id',
|
|
146
|
+
description:
|
|
147
|
+
'Add a note (comment) to an existing issue by its ID via PUT /issues/{issue_id}.json. Set private_notes to true to add a private note.',
|
|
148
|
+
inputSchema: {
|
|
149
|
+
type: 'object',
|
|
150
|
+
properties: {
|
|
151
|
+
issue_id: { type: 'number' },
|
|
152
|
+
notes: { type: 'string', description: 'The comment text to add to the issue.' },
|
|
153
|
+
private_notes: { type: 'boolean', description: 'Optional. Mark the note as private.' },
|
|
154
|
+
},
|
|
155
|
+
required: ['issue_id', 'notes'],
|
|
156
|
+
additionalProperties: false,
|
|
157
|
+
},
|
|
158
|
+
},
|
|
144
159
|
];
|
|
145
160
|
|
|
146
161
|
function logToolStart(name, args) {
|
|
@@ -268,6 +283,16 @@ export async function dispatch(name, args = {}) {
|
|
|
268
283
|
};
|
|
269
284
|
return makeRequest('POST', 'issues', undefined, payload);
|
|
270
285
|
}
|
|
286
|
+
case 'add_note_to_issue_by_id': {
|
|
287
|
+
logToolStart(name, args);
|
|
288
|
+
ensureRequiredNumber(args, 'issue_id');
|
|
289
|
+
ensureRequiredString(args, 'notes');
|
|
290
|
+
const payload = { notes: args.notes };
|
|
291
|
+
if (args.private_notes !== undefined && args.private_notes !== null) {
|
|
292
|
+
payload.private_notes = args.private_notes;
|
|
293
|
+
}
|
|
294
|
+
return makeRequest('PUT', `issues/${args.issue_id}`, undefined, payload);
|
|
295
|
+
}
|
|
271
296
|
default:
|
|
272
297
|
return null;
|
|
273
298
|
}
|