bc-code-intelligence-mcp 1.5.6 → 1.5.8

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.
Files changed (69) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +165 -419
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +6 -1
  5. package/dist/index.js.map +1 -1
  6. package/dist/layers/embedded-layer.js +29 -29
  7. package/dist/layers/project-layer.js +33 -33
  8. package/dist/sdk/bc-code-intel-client.d.ts.map +1 -1
  9. package/dist/sdk/bc-code-intel-client.js +1 -1
  10. package/dist/sdk/bc-code-intel-client.js.map +1 -1
  11. package/dist/services/knowledge-service.d.ts +1 -1
  12. package/dist/services/knowledge-service.d.ts.map +1 -1
  13. package/dist/services/knowledge-service.js +71 -3
  14. package/dist/services/knowledge-service.js.map +1 -1
  15. package/dist/services/methodology-service.js +14 -14
  16. package/dist/services/multi-content-layer-service.d.ts +15 -0
  17. package/dist/services/multi-content-layer-service.d.ts.map +1 -1
  18. package/dist/services/multi-content-layer-service.js +62 -0
  19. package/dist/services/multi-content-layer-service.js.map +1 -1
  20. package/dist/streamlined-handlers.d.ts +0 -7
  21. package/dist/streamlined-handlers.d.ts.map +1 -1
  22. package/dist/streamlined-handlers.js +80 -60
  23. package/dist/streamlined-handlers.js.map +1 -1
  24. package/dist/tools/core-tools.d.ts.map +1 -1
  25. package/dist/tools/core-tools.js +4 -0
  26. package/dist/tools/core-tools.js.map +1 -1
  27. package/dist/tools/onboarding-tools.d.ts +8 -0
  28. package/dist/tools/onboarding-tools.d.ts.map +1 -1
  29. package/dist/tools/onboarding-tools.js +111 -1
  30. package/dist/tools/onboarding-tools.js.map +1 -1
  31. package/dist/types/bc-knowledge.d.ts +4 -4
  32. package/embedded-knowledge/.github/ISSUE_TEMPLATE/bug-report.md +23 -23
  33. package/embedded-knowledge/.github/ISSUE_TEMPLATE/content-improvement.md +23 -23
  34. package/embedded-knowledge/.github/ISSUE_TEMPLATE/knowledge-request.md +29 -29
  35. package/embedded-knowledge/AGENTS.md +177 -177
  36. package/embedded-knowledge/CONTRIBUTING.md +57 -57
  37. package/embedded-knowledge/LICENSE +20 -20
  38. package/embedded-knowledge/README.md +31 -31
  39. package/embedded-knowledge/domains/alex-architect/samples/testability-design-patterns.md +223 -0
  40. package/embedded-knowledge/domains/alex-architect/testability-design-patterns.md +77 -0
  41. package/embedded-knowledge/domains/casey-copilot/long-running-session-instructions.md +263 -0
  42. package/embedded-knowledge/domains/casey-copilot/samples/long-running-session-instructions.md +323 -0
  43. package/embedded-knowledge/domains/eva-errors/codeunit-run-pattern.md +159 -0
  44. package/embedded-knowledge/domains/eva-errors/samples/codeunit-run-pattern.md +239 -0
  45. package/embedded-knowledge/domains/eva-errors/samples/try-function-usage.md +195 -0
  46. package/embedded-knowledge/domains/eva-errors/try-function-usage.md +129 -0
  47. package/embedded-knowledge/domains/morgan-market/partner-readiness-analysis.md +201 -0
  48. package/embedded-knowledge/domains/morgan-market/samples/partner-readiness-checklist.md +288 -0
  49. package/embedded-knowledge/domains/quinn-tester/isolation-testing-patterns.md +82 -0
  50. package/embedded-knowledge/domains/quinn-tester/samples/isolation-testing-patterns.md +424 -0
  51. package/embedded-knowledge/domains/roger-reviewer/samples/testability-code-smells.md +256 -0
  52. package/embedded-knowledge/domains/roger-reviewer/testability-code-smells.md +67 -0
  53. package/embedded-knowledge/domains/shared/al-file-naming-conventions.md +145 -145
  54. package/embedded-knowledge/methodologies/index.json +80 -80
  55. package/embedded-knowledge/methodologies/phases/analysis-full.md +207 -207
  56. package/embedded-knowledge/methodologies/phases/analysis-quick.md +43 -43
  57. package/embedded-knowledge/methodologies/phases/analysis.md +181 -181
  58. package/embedded-knowledge/methodologies/phases/execution-validation-full.md +173 -173
  59. package/embedded-knowledge/methodologies/phases/execution-validation-quick.md +30 -30
  60. package/embedded-knowledge/methodologies/phases/execution-validation.md +173 -173
  61. package/embedded-knowledge/methodologies/phases/performance-full.md +210 -210
  62. package/embedded-knowledge/methodologies/phases/performance-quick.md +31 -31
  63. package/embedded-knowledge/methodologies/phases/performance.md +210 -210
  64. package/embedded-knowledge/methodologies/phases/verification-full.md +161 -161
  65. package/embedded-knowledge/methodologies/phases/verification-quick.md +47 -47
  66. package/embedded-knowledge/methodologies/phases/verification.md +145 -145
  67. package/embedded-knowledge/methodologies/workflow-enforcement.md +141 -141
  68. package/embedded-knowledge/methodologies/workflows/code-review-workflow.md +98 -98
  69. package/package.json +81 -81
@@ -1,99 +1,99 @@
1
- ---
2
- type: workflow
3
- category: quality-assurance
4
- name: bc-code-review-workflow
5
- workflow_type: checklist
6
- phases:
7
- - name: preparation
8
- title: "Pre-Review Preparation"
9
- required: true
10
- tasks:
11
- - "Ensure all tests pass"
12
- - "Run static analysis tools"
13
- - "Check code formatting compliance"
14
- - "Verify documentation is updated"
15
- - name: performance-review
16
- title: "Performance Analysis"
17
- required: true
18
- tasks:
19
- - "Check for SetLoadFields usage"
20
- - "Verify efficient query patterns"
21
- - "Validate SIFT usage for summations"
22
- - "Review loop efficiency"
23
- - "Check for unnecessary CalcFields calls"
24
- - name: security-review
25
- title: "Security & Validation"
26
- required: true
27
- tasks:
28
- - "Validate user input handling"
29
- - "Check permission requirements"
30
- - "Review error handling"
31
- - "Verify data validation"
32
- - name: maintainability
33
- title: "Code Maintainability"
34
- required: false
35
- tasks:
36
- - "Check naming conventions"
37
- - "Review code complexity"
38
- - "Validate commenting"
39
- - "Assess testability"
40
- related_topics:
41
- - code-quality-standards
42
- - performance-review-checklist
43
- - security-best-practices
44
- domains: [quality-assurance, performance, security]
45
- difficulty: intermediate
46
- estimated_duration: "30-45 minutes"
47
- prerequisites: ["Basic AL knowledge", "Understanding of BC architecture"]
48
- tags: [workflow, code-review, quality-assurance, checklist]
49
- ---
50
-
51
- # Business Central Code Review Workflow
52
-
53
- ## Overview
54
- A systematic approach to reviewing AL code for Business Central extensions, focusing on performance, security, and maintainability.
55
-
56
- ## Workflow Phases
57
-
58
- ### 1. Pre-Review Preparation (Required)
59
- Before starting the review, ensure:
60
- - [ ] All automated tests pass
61
- - [ ] Static analysis tools show no critical issues
62
- - [ ] Code follows formatting standards
63
- - [ ] Documentation reflects changes
64
-
65
- ### 2. Performance Analysis (Required)
66
- Critical performance checks:
67
- - [ ] **SetLoadFields**: Used before FindSet() when only specific fields needed
68
- - [ ] **Query Patterns**: Efficient use of SetRange, SetFilter, SetCurrentKey
69
- - [ ] **SIFT Usage**: CalcSums instead of manual summation loops
70
- - [ ] **Loop Efficiency**: Minimal processing inside repeat-until loops
71
- - [ ] **CalcFields**: Batched rather than individual calls
72
-
73
- ### 3. Security & Validation (Required)
74
- Security-focused review:
75
- - [ ] **Input Validation**: All user inputs properly validated
76
- - [ ] **Permissions**: Appropriate permission sets required
77
- - [ ] **Error Handling**: Graceful error handling without data exposure
78
- - [ ] **Data Validation**: Business rules properly enforced
79
-
80
- ### 4. Code Maintainability (Optional)
81
- Quality improvements:
82
- - [ ] **Naming**: Clear, consistent naming conventions
83
- - [ ] **Complexity**: Functions under 50 lines, minimal nesting
84
- - [ ] **Comments**: Complex logic explained
85
- - [ ] **Testability**: Code structure supports unit testing
86
-
87
- ## Review Checklist Tools
88
- Use these questions for each phase:
89
-
90
- **Performance**: "Will this code perform well with 10,000+ records?"
91
- **Security**: "What happens if a malicious user provides unexpected input?"
92
- **Maintainability**: "Can another developer understand this in 6 months?"
93
-
94
- ## Common Issues to Flag
95
- - Manual summation loops (use CalcSums)
96
- - Missing SetLoadFields on large datasets
97
- - Hardcoded values that should be configurable
98
- - Missing error handling on external calls
1
+ ---
2
+ type: workflow
3
+ category: quality-assurance
4
+ name: bc-code-review-workflow
5
+ workflow_type: checklist
6
+ phases:
7
+ - name: preparation
8
+ title: "Pre-Review Preparation"
9
+ required: true
10
+ tasks:
11
+ - "Ensure all tests pass"
12
+ - "Run static analysis tools"
13
+ - "Check code formatting compliance"
14
+ - "Verify documentation is updated"
15
+ - name: performance-review
16
+ title: "Performance Analysis"
17
+ required: true
18
+ tasks:
19
+ - "Check for SetLoadFields usage"
20
+ - "Verify efficient query patterns"
21
+ - "Validate SIFT usage for summations"
22
+ - "Review loop efficiency"
23
+ - "Check for unnecessary CalcFields calls"
24
+ - name: security-review
25
+ title: "Security & Validation"
26
+ required: true
27
+ tasks:
28
+ - "Validate user input handling"
29
+ - "Check permission requirements"
30
+ - "Review error handling"
31
+ - "Verify data validation"
32
+ - name: maintainability
33
+ title: "Code Maintainability"
34
+ required: false
35
+ tasks:
36
+ - "Check naming conventions"
37
+ - "Review code complexity"
38
+ - "Validate commenting"
39
+ - "Assess testability"
40
+ related_topics:
41
+ - code-quality-standards
42
+ - performance-review-checklist
43
+ - security-best-practices
44
+ domains: [quality-assurance, performance, security]
45
+ difficulty: intermediate
46
+ estimated_duration: "30-45 minutes"
47
+ prerequisites: ["Basic AL knowledge", "Understanding of BC architecture"]
48
+ tags: [workflow, code-review, quality-assurance, checklist]
49
+ ---
50
+
51
+ # Business Central Code Review Workflow
52
+
53
+ ## Overview
54
+ A systematic approach to reviewing AL code for Business Central extensions, focusing on performance, security, and maintainability.
55
+
56
+ ## Workflow Phases
57
+
58
+ ### 1. Pre-Review Preparation (Required)
59
+ Before starting the review, ensure:
60
+ - [ ] All automated tests pass
61
+ - [ ] Static analysis tools show no critical issues
62
+ - [ ] Code follows formatting standards
63
+ - [ ] Documentation reflects changes
64
+
65
+ ### 2. Performance Analysis (Required)
66
+ Critical performance checks:
67
+ - [ ] **SetLoadFields**: Used before FindSet() when only specific fields needed
68
+ - [ ] **Query Patterns**: Efficient use of SetRange, SetFilter, SetCurrentKey
69
+ - [ ] **SIFT Usage**: CalcSums instead of manual summation loops
70
+ - [ ] **Loop Efficiency**: Minimal processing inside repeat-until loops
71
+ - [ ] **CalcFields**: Batched rather than individual calls
72
+
73
+ ### 3. Security & Validation (Required)
74
+ Security-focused review:
75
+ - [ ] **Input Validation**: All user inputs properly validated
76
+ - [ ] **Permissions**: Appropriate permission sets required
77
+ - [ ] **Error Handling**: Graceful error handling without data exposure
78
+ - [ ] **Data Validation**: Business rules properly enforced
79
+
80
+ ### 4. Code Maintainability (Optional)
81
+ Quality improvements:
82
+ - [ ] **Naming**: Clear, consistent naming conventions
83
+ - [ ] **Complexity**: Functions under 50 lines, minimal nesting
84
+ - [ ] **Comments**: Complex logic explained
85
+ - [ ] **Testability**: Code structure supports unit testing
86
+
87
+ ## Review Checklist Tools
88
+ Use these questions for each phase:
89
+
90
+ **Performance**: "Will this code perform well with 10,000+ records?"
91
+ **Security**: "What happens if a malicious user provides unexpected input?"
92
+ **Maintainability**: "Can another developer understand this in 6 months?"
93
+
94
+ ## Common Issues to Flag
95
+ - Manual summation loops (use CalcSums)
96
+ - Missing SetLoadFields on large datasets
97
+ - Hardcoded values that should be configurable
98
+ - Missing error handling on external calls
99
99
  - Complex nested logic without comments
package/package.json CHANGED
@@ -1,81 +1,81 @@
1
- {
2
- "name": "bc-code-intelligence-mcp",
3
- "version": "1.5.6",
4
- "description": "BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows",
5
- "main": "dist/index.js",
6
- "type": "module",
7
- "files": [
8
- "dist/",
9
- "embedded-knowledge/"
10
- ],
11
- "bin": {
12
- "bc-code-intel": "dist/cli/bc-code-intel-cli.js",
13
- "bc-code-intel-server": "dist/index.js",
14
- "bc-code-intelligence-mcp": "dist/index.js"
15
- },
16
- "scripts": {
17
- "build": "tsc",
18
- "dev": "tsx src/index.ts",
19
- "start": "node dist/index.js",
20
- "test": "npm run test:all",
21
- "test:contracts": "tsx scripts/validate-contracts.ts",
22
- "test:unit": "vitest run --config vitest.unit.config.ts",
23
- "test:integration": "vitest run --config vitest.integration.config.ts",
24
- "test:prompts": "vitest run --config vitest.config.ts tests/prompt-validation",
25
- "test:coverage": "vitest run --coverage",
26
- "test:all": "npm run test:contracts && npm run test:unit && npm run test:integration && npm run test:prompts",
27
- "validate:contracts": "tsx scripts/validate-contracts.ts",
28
- "prepublishOnly": "npm run validate:contracts && npm run build",
29
- "lint": "eslint src/**/*.ts",
30
- "format": "prettier --write src/**/*.ts",
31
- "prepare": "npm run build"
32
- },
33
- "keywords": [
34
- "business-central",
35
- "al-language",
36
- "performance",
37
- "mcp",
38
- "model-context-protocol",
39
- "ai-tools",
40
- "github-copilot",
41
- "knowledge-base",
42
- "bc-code-intelligence"
43
- ],
44
- "author": "BC Code Intelligence",
45
- "license": "MIT",
46
- "dependencies": {
47
- "@modelcontextprotocol/sdk": "^0.4.0",
48
- "chokidar": "^4.0.3",
49
- "commander": "^14.0.1",
50
- "fast-glob": "^3.3.2",
51
- "fuse.js": "^7.0.0",
52
- "marked": "^11.1.1",
53
- "simple-git": "^3.28.0",
54
- "tslib": "^2.8.1",
55
- "yaml": "^2.3.4",
56
- "zod": "^3.25.76"
57
- },
58
- "devDependencies": {
59
- "@types/node": "^20.19.14",
60
- "@typescript-eslint/eslint-plugin": "^7.18.0",
61
- "@typescript-eslint/parser": "^7.18.0",
62
- "@vitest/coverage-v8": "^3.2.4",
63
- "eslint": "^8.57.1",
64
- "prettier": "^3.1.1",
65
- "tsx": "^4.7.0",
66
- "typescript": "^5.3.3",
67
- "vitest": "^3.2.4"
68
- },
69
- "engines": {
70
- "node": ">=20.0.0"
71
- },
72
- "preferGlobal": false,
73
- "repository": {
74
- "type": "git",
75
- "url": "https://github.com/JeremyVyska/bc-code-intelligence-mcp.git"
76
- },
77
- "bugs": {
78
- "url": "https://github.com/JeremyVyska/bc-code-intelligence-mcp/issues"
79
- },
80
- "homepage": "https://github.com/JeremyVyska/bc-code-intelligence-mcp"
81
- }
1
+ {
2
+ "name": "bc-code-intelligence-mcp",
3
+ "version": "1.5.8",
4
+ "description": "BC Code Intelligence MCP Server - Complete Specialist Bundle with AI-driven expert consultation, seamless handoffs, and context-preserving workflows",
5
+ "main": "dist/index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "dist/",
9
+ "embedded-knowledge/"
10
+ ],
11
+ "bin": {
12
+ "bc-code-intel": "dist/cli/bc-code-intel-cli.js",
13
+ "bc-code-intel-server": "dist/index.js",
14
+ "bc-code-intelligence-mcp": "dist/index.js"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "dev": "tsx src/index.ts",
19
+ "start": "node dist/index.js",
20
+ "test": "npm run test:all",
21
+ "test:contracts": "tsx scripts/validate-contracts.ts",
22
+ "test:unit": "vitest run --config vitest.unit.config.ts",
23
+ "test:integration": "vitest run --config vitest.integration.config.ts",
24
+ "test:prompts": "vitest run --config vitest.config.ts tests/prompt-validation",
25
+ "test:coverage": "vitest run --coverage",
26
+ "test:all": "npm run test:contracts && npm run test:unit && npm run test:integration && npm run test:prompts",
27
+ "validate:contracts": "tsx scripts/validate-contracts.ts",
28
+ "prepublishOnly": "npm run validate:contracts && npm run build",
29
+ "lint": "eslint src/**/*.ts",
30
+ "format": "prettier --write src/**/*.ts",
31
+ "prepare": "npm run build"
32
+ },
33
+ "keywords": [
34
+ "business-central",
35
+ "al-language",
36
+ "performance",
37
+ "mcp",
38
+ "model-context-protocol",
39
+ "ai-tools",
40
+ "github-copilot",
41
+ "knowledge-base",
42
+ "bc-code-intelligence"
43
+ ],
44
+ "author": "BC Code Intelligence",
45
+ "license": "MIT",
46
+ "dependencies": {
47
+ "@modelcontextprotocol/sdk": "^1.24.3",
48
+ "chokidar": "^4.0.3",
49
+ "commander": "^14.0.1",
50
+ "fast-glob": "^3.3.2",
51
+ "fuse.js": "^7.0.0",
52
+ "marked": "^11.1.1",
53
+ "simple-git": "^3.28.0",
54
+ "tslib": "^2.8.1",
55
+ "yaml": "^2.3.4",
56
+ "zod": "^3.25.76"
57
+ },
58
+ "devDependencies": {
59
+ "@types/node": "^20.19.14",
60
+ "@typescript-eslint/eslint-plugin": "^7.18.0",
61
+ "@typescript-eslint/parser": "^7.18.0",
62
+ "@vitest/coverage-v8": "^3.2.4",
63
+ "eslint": "^8.57.1",
64
+ "prettier": "^3.1.1",
65
+ "tsx": "^4.7.0",
66
+ "typescript": "^5.3.3",
67
+ "vitest": "^3.2.4"
68
+ },
69
+ "engines": {
70
+ "node": ">=20.0.0"
71
+ },
72
+ "preferGlobal": false,
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "https://github.com/JeremyVyska/bc-code-intelligence-mcp.git"
76
+ },
77
+ "bugs": {
78
+ "url": "https://github.com/JeremyVyska/bc-code-intelligence-mcp/issues"
79
+ },
80
+ "homepage": "https://github.com/JeremyVyska/bc-code-intelligence-mcp"
81
+ }