@aikdna/kdna-mcp-server 0.2.1 → 0.2.3
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/bin/kdna-mcp.mjs +3 -22
- package/package.json +17 -1
package/bin/kdna-mcp.mjs
CHANGED
|
@@ -77,7 +77,7 @@ const tools = [
|
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
name: 'kdna.available-local',
|
|
80
|
-
description: 'List local v1 .kdna
|
|
80
|
+
description: 'List local v1 .kdna files without using a registry.',
|
|
81
81
|
inputSchema: {
|
|
82
82
|
type: 'object',
|
|
83
83
|
properties: {
|
|
@@ -124,10 +124,8 @@ function textResult(value) {
|
|
|
124
124
|
function isV1Asset(assetPath) {
|
|
125
125
|
if (!assetPath) return false;
|
|
126
126
|
try {
|
|
127
|
-
if (fs.existsSync(assetPath)
|
|
128
|
-
|
|
129
|
-
}
|
|
130
|
-
return detectContainerFormat(assetPath) === 'v1';
|
|
127
|
+
if (!fs.existsSync(assetPath) || !fs.statSync(assetPath).isFile()) return false;
|
|
128
|
+
return assetPath.endsWith('.kdna') && detectContainerFormat(assetPath) === 'v1';
|
|
131
129
|
} catch {
|
|
132
130
|
return false;
|
|
133
131
|
}
|
|
@@ -150,23 +148,6 @@ function findLocalAssets(root = defaultAssetRoot(), maxDepth = 3) {
|
|
|
150
148
|
return;
|
|
151
149
|
}
|
|
152
150
|
|
|
153
|
-
if (isV1SourceDir(dir)) {
|
|
154
|
-
const inspection = inspectV1(dir);
|
|
155
|
-
const validation = validateV1(dir);
|
|
156
|
-
found.push({
|
|
157
|
-
path: dir,
|
|
158
|
-
kind: 'v1_source_dir',
|
|
159
|
-
asset_id: inspection.asset_id,
|
|
160
|
-
title: inspection.title,
|
|
161
|
-
version: inspection.version,
|
|
162
|
-
judgment_version: inspection.judgment_version,
|
|
163
|
-
checksums_present: Boolean(inspection.checksums_present),
|
|
164
|
-
loadable: Boolean(validation.overall_valid),
|
|
165
|
-
problems: validation.overall_valid ? [] : validation.problems || [],
|
|
166
|
-
});
|
|
167
|
-
return;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
151
|
for (const entry of entries) {
|
|
171
152
|
if (entry.name === 'node_modules' || entry.name === '.git') continue;
|
|
172
153
|
const full = path.join(dir, entry.name);
|
package/package.json
CHANGED
|
@@ -1,8 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aikdna/kdna-mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "MCP server for loading, inspecting, verifying, and matching KDNA .kdna assets.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"homepage": "https://aikdna.com",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/aikdna/kdna-skills.git",
|
|
10
|
+
"directory": "mcp-server"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/aikdna/kdna-skills/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"kdna",
|
|
17
|
+
"mcp",
|
|
18
|
+
"ai-agent",
|
|
19
|
+
"judgment",
|
|
20
|
+
"loadplan"
|
|
21
|
+
],
|
|
6
22
|
"bin": {
|
|
7
23
|
"kdna-mcp": "bin/kdna-mcp.mjs"
|
|
8
24
|
},
|