@nullplatform/mcp 0.1.3 → 0.1.5
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/i18n.js +26 -0
- package/dist/np/journey.js +28 -2
- package/dist/tool-names.js +2 -0
- package/dist/tools/approvals.js +1 -0
- package/dist/tools/builds.js +5 -2
- package/dist/tools/create-release.js +10 -4
- package/dist/tools/create-scope.js +20 -6
- package/dist/tools/deployments.js +95 -0
- package/dist/tools/index.js +4 -0
- package/dist/tools/logs.js +5 -0
- package/dist/tools/overview.js +3 -0
- package/dist/tools/params.js +9 -4
- package/dist/tools/playbook.js +1 -0
- package/dist/tools/releases.js +59 -0
- package/dist/tools/services.js +4 -1
- package/dist/tools/set-params.js +9 -2
- package/dist/tools/shared.js +13 -0
- package/dist/tools/status.js +15 -13
- package/dist/ui.js +7 -0
- package/package.json +2 -1
- package/widgets-dist/approvals.html +910 -0
- package/widgets-dist/builds.html +910 -0
- package/widgets-dist/create-app.html +100 -19
- package/widgets-dist/deployments.html +912 -0
- package/widgets-dist/find-apps.html +108 -27
- package/widgets-dist/logs.html +102 -21
- package/widgets-dist/manifest.json +13 -6
- package/widgets-dist/metrics.html +101 -20
- package/widgets-dist/np-panel.html +103 -22
- package/widgets-dist/overview.html +912 -0
- package/widgets-dist/params.html +101 -20
- package/widgets-dist/playbook.html +914 -0
- package/widgets-dist/releases.html +912 -0
- package/widgets-dist/services.html +910 -0
package/dist/tools/status.js
CHANGED
|
@@ -24,6 +24,20 @@ async function scopeViews(context, applicationId) {
|
|
|
24
24
|
};
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Build an application's full status view (the np-panel overview payload). Exported so write
|
|
29
|
+
* tools that should hand off into the same live panel — e.g. create-scope, after provisioning a
|
|
30
|
+
* new deploy target — can return this exact shape and let np-panel render the app + Deploy.
|
|
31
|
+
*/
|
|
32
|
+
export async function buildAppStatus(context, app) {
|
|
33
|
+
const [views, builds, releases, orgSlug] = await Promise.all([
|
|
34
|
+
scopeViews(context, app.id),
|
|
35
|
+
listBuilds(context.np, app.id, { limit: 5 }),
|
|
36
|
+
listReleases(context.np, app.id, { limit: 5 }),
|
|
37
|
+
context.org.organizationSlug(),
|
|
38
|
+
]);
|
|
39
|
+
return renderStatus({ app, views, builds, releases, dashboard: dashboardLink(orgSlug, app.nrn) });
|
|
40
|
+
}
|
|
27
41
|
export const statusTool = defineTool({
|
|
28
42
|
name: TOOL.applicationGet,
|
|
29
43
|
title: "Application status",
|
|
@@ -52,19 +66,7 @@ export const statusTool = defineTool({
|
|
|
52
66
|
const resolved = await requireApp(context, args);
|
|
53
67
|
if ("out" in resolved)
|
|
54
68
|
return resolved.out;
|
|
55
|
-
const
|
|
56
|
-
scopeViews(context, resolved.app.id),
|
|
57
|
-
listBuilds(context.np, resolved.app.id, { limit: 5 }),
|
|
58
|
-
listReleases(context.np, resolved.app.id, { limit: 5 }),
|
|
59
|
-
context.org.organizationSlug(),
|
|
60
|
-
]);
|
|
61
|
-
const { md, structured } = renderStatus({
|
|
62
|
-
app: resolved.app,
|
|
63
|
-
views,
|
|
64
|
-
builds,
|
|
65
|
-
releases,
|
|
66
|
-
dashboard: dashboardLink(orgSlug, resolved.app.nrn),
|
|
67
|
-
});
|
|
69
|
+
const { md, structured } = await buildAppStatus(context, resolved.app);
|
|
68
70
|
return reply(md, structured);
|
|
69
71
|
},
|
|
70
72
|
});
|
package/dist/ui.js
CHANGED
|
@@ -19,6 +19,13 @@ export const WIDGETS = {
|
|
|
19
19
|
logs: "Logs",
|
|
20
20
|
"find-apps": "Applications",
|
|
21
21
|
metrics: "Metrics",
|
|
22
|
+
builds: "Builds",
|
|
23
|
+
releases: "Releases",
|
|
24
|
+
deployments: "Deployments",
|
|
25
|
+
approvals: "Approvals",
|
|
26
|
+
overview: "Organization overview",
|
|
27
|
+
services: "Services & dependencies",
|
|
28
|
+
playbook: "Operating playbooks",
|
|
22
29
|
};
|
|
23
30
|
/** Did this session's client negotiate the MCP Apps extension? (Knowable after initialize.) */
|
|
24
31
|
export function uiNegotiated(server) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nullplatform/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "nullplatform from your code assistant — an MCP server that replaces the dashboard for the everyday developer journey",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "nullplatform",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"test": "vitest run",
|
|
38
38
|
"test:watch": "vitest",
|
|
39
39
|
"build:widgets": "node scripts/build-widgets.mjs",
|
|
40
|
+
"preview:widgets": "node scripts/preview/build-preview.mjs",
|
|
40
41
|
"pretest": "node scripts/build-widgets.mjs",
|
|
41
42
|
"lint": "biome check .",
|
|
42
43
|
"lint:fix": "biome check --write .",
|