@harness-engineering/mcp-server 0.3.0 → 0.3.2

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.
@@ -21,7 +21,7 @@ export async function handleCheckDependencies(input) {
21
21
  try {
22
22
  const { validateDependencies, TypeScriptParser } = await import('@harness-engineering/core');
23
23
  const config = configResult.value;
24
- const rawLayers = config.layers ?? [];
24
+ const rawLayers = (Array.isArray(config.layers) ? config.layers : []);
25
25
  const layers = rawLayers.map((l) => ({
26
26
  name: l.name,
27
27
  patterns: [l.pattern],
@@ -34,7 +34,8 @@ export async function handleValidateProject(input) {
34
34
  const core = await import('@harness-engineering/core');
35
35
  if (typeof core.validateFileStructure === 'function' &&
36
36
  Array.isArray(config.conventions)) {
37
- const structureResult = await core.validateFileStructure(projectPath, config.conventions);
37
+ const conventions = config.conventions;
38
+ const structureResult = await core.validateFileStructure(projectPath, conventions);
38
39
  if (structureResult.ok) {
39
40
  checks.structure = structureResult.value.valid ? 'pass' : 'fail';
40
41
  if (!structureResult.value.valid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harness-engineering/mcp-server",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "MCP server for Harness Engineering toolkit",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -23,10 +23,10 @@
23
23
  "zod": "^3.22.0",
24
24
  "yaml": "^2.3.0",
25
25
  "handlebars": "^4.7.0",
26
- "@harness-engineering/core": "0.5.0",
27
- "@harness-engineering/cli": "1.2.0",
26
+ "@harness-engineering/core": "0.6.0",
27
+ "@harness-engineering/cli": "1.2.2",
28
28
  "@harness-engineering/linter-gen": "0.1.0",
29
- "@harness-engineering/types": "0.0.0"
29
+ "@harness-engineering/types": "0.0.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^20.0.0",
@@ -50,6 +50,7 @@
50
50
  "build": "tsc",
51
51
  "test": "vitest run",
52
52
  "test:watch": "vitest",
53
+ "lint": "eslint src",
53
54
  "typecheck": "tsc --noEmit",
54
55
  "clean": "rm -rf dist"
55
56
  }