@notus-os/mcp 0.1.13 → 0.1.14
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/README.md +1 -1
- package/dist/bin/notusos-mcp.js +52 -4
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/bin/notusos-mcp.js
CHANGED
|
@@ -38148,11 +38148,13 @@ __export(resources_exports, {
|
|
|
38148
38148
|
get_resource: () => get_resource,
|
|
38149
38149
|
list_resources: () => list_resources,
|
|
38150
38150
|
rewrite_resource_section: () => rewrite_resource_section,
|
|
38151
|
+
send_resource_to_client: () => send_resource_to_client,
|
|
38151
38152
|
toggle_resource: () => toggle_resource,
|
|
38152
38153
|
update_brand_guidelines: () => update_brand_guidelines,
|
|
38153
|
-
update_resource: () => update_resource
|
|
38154
|
+
update_resource: () => update_resource,
|
|
38155
|
+
update_resource_status: () => update_resource_status
|
|
38154
38156
|
});
|
|
38155
|
-
var listResourcesSchema, list_resources, getResourceSchema, get_resource, updateResourceSchema, update_resource, toggleResourceSchema, toggle_resource, deleteResourceSchema, delete_resource, rewriteSectionSchema, rewrite_resource_section, getBrandGuidelinesSchema, get_brand_guidelines, updateBrandGuidelinesSchema, update_brand_guidelines;
|
|
38157
|
+
var listResourcesSchema, list_resources, getResourceSchema, get_resource, updateResourceSchema, update_resource, toggleResourceSchema, toggle_resource, resourceStatusSchema, updateResourceStatusSchema, update_resource_status, sendResourceToClientSchema, send_resource_to_client, deleteResourceSchema, delete_resource, rewriteSectionSchema, rewrite_resource_section, getBrandGuidelinesSchema, get_brand_guidelines, updateBrandGuidelinesSchema, update_brand_guidelines;
|
|
38156
38158
|
var init_resources = __esm({
|
|
38157
38159
|
"src/tools/resources.ts"() {
|
|
38158
38160
|
"use strict";
|
|
@@ -38217,6 +38219,50 @@ var init_resources = __esm({
|
|
|
38217
38219
|
});
|
|
38218
38220
|
}
|
|
38219
38221
|
};
|
|
38222
|
+
resourceStatusSchema = external_exports.enum([
|
|
38223
|
+
"draft",
|
|
38224
|
+
"internal_review",
|
|
38225
|
+
"in_revision",
|
|
38226
|
+
"client_review",
|
|
38227
|
+
"client_approved"
|
|
38228
|
+
]);
|
|
38229
|
+
updateResourceStatusSchema = external_exports.object({
|
|
38230
|
+
...clientTarget,
|
|
38231
|
+
resourceId: external_exports.string().uuid(),
|
|
38232
|
+
status: resourceStatusSchema
|
|
38233
|
+
});
|
|
38234
|
+
update_resource_status = {
|
|
38235
|
+
name: "update_resource_status",
|
|
38236
|
+
description: "Update a setup-deliverable resource lifecycle status. Valid statuses: draft, internal_review, in_revision, client_review, client_approved.",
|
|
38237
|
+
inputSchema: updateResourceStatusSchema,
|
|
38238
|
+
handler: async (args, ctx) => {
|
|
38239
|
+
const { clientUserId, clientOrganizationId, appMode, resourceId, status } = args;
|
|
38240
|
+
return ctx.api.patch(`/api/resources/${resourceId}`, {
|
|
38241
|
+
body: { status },
|
|
38242
|
+
clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
|
|
38243
|
+
});
|
|
38244
|
+
}
|
|
38245
|
+
};
|
|
38246
|
+
sendResourceToClientSchema = external_exports.object({
|
|
38247
|
+
...clientTarget,
|
|
38248
|
+
resourceId: external_exports.string().uuid(),
|
|
38249
|
+
markAsClientReview: external_exports.boolean().optional().default(true)
|
|
38250
|
+
});
|
|
38251
|
+
send_resource_to_client = {
|
|
38252
|
+
name: "send_resource_to_client",
|
|
38253
|
+
description: "Make a resource visible in the client portal. By default also sets status to client_review so 'sent to client' and resource status stay aligned.",
|
|
38254
|
+
inputSchema: sendResourceToClientSchema,
|
|
38255
|
+
handler: async (args, ctx) => {
|
|
38256
|
+
const { clientUserId, clientOrganizationId, appMode, resourceId, markAsClientReview } = args;
|
|
38257
|
+
return ctx.api.patch(`/api/resources/${resourceId}`, {
|
|
38258
|
+
body: {
|
|
38259
|
+
enabled: true,
|
|
38260
|
+
...markAsClientReview ? { status: "client_review" } : {}
|
|
38261
|
+
},
|
|
38262
|
+
clientContext: toClientContext({ clientUserId, clientOrganizationId, appMode })
|
|
38263
|
+
});
|
|
38264
|
+
}
|
|
38265
|
+
};
|
|
38220
38266
|
deleteResourceSchema = external_exports.object({
|
|
38221
38267
|
...clientTarget,
|
|
38222
38268
|
resourceId: external_exports.string().uuid()
|
|
@@ -38286,6 +38332,8 @@ var init_resources = __esm({
|
|
|
38286
38332
|
get_resource,
|
|
38287
38333
|
update_resource,
|
|
38288
38334
|
toggle_resource,
|
|
38335
|
+
update_resource_status,
|
|
38336
|
+
send_resource_to_client,
|
|
38289
38337
|
delete_resource,
|
|
38290
38338
|
rewrite_resource_section,
|
|
38291
38339
|
get_brand_guidelines,
|
|
@@ -40186,7 +40234,7 @@ var init_server3 = __esm({
|
|
|
40186
40234
|
init_tools();
|
|
40187
40235
|
init_logger();
|
|
40188
40236
|
SERVER_NAME = "notusos-mcp";
|
|
40189
|
-
SERVER_VERSION = true ? "0.1.
|
|
40237
|
+
SERVER_VERSION = true ? "0.1.14" : "dev";
|
|
40190
40238
|
}
|
|
40191
40239
|
});
|
|
40192
40240
|
|
|
@@ -40207,7 +40255,7 @@ function loadConfig(env = process.env) {
|
|
|
40207
40255
|
// bin/notusos-mcp.ts
|
|
40208
40256
|
init_token_store();
|
|
40209
40257
|
init_logger();
|
|
40210
|
-
var MCP_VERSION = true ? "0.1.
|
|
40258
|
+
var MCP_VERSION = true ? "0.1.14" : "dev";
|
|
40211
40259
|
async function main() {
|
|
40212
40260
|
const [, , sub] = process.argv;
|
|
40213
40261
|
const config2 = loadConfig();
|