secufusion-mcp 2.1.5 → 2.1.6
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/.claude-plugin/plugin.json +2 -2
- package/README.md +46 -88
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "secufusion-mcp",
|
|
3
|
-
"description": "SecuFusion MSSP platform dev agent — project-level spec driven, tenant-isolation enforced, zero-trust guardrails. Slash
|
|
4
|
-
"version": "2.
|
|
3
|
+
"description": "SecuFusion MSSP platform dev agent — project-level spec driven, tenant-isolation enforced, zero-trust guardrails. 5 Core Slash Commands: /sfn-init (dynamic DNA + architecture diagram + watcher), /sfn-plan (philosophy check + intent WHY + classify + plan), /sfn-code (spec-driven implementation), /sfn-review (zero-tolerance 3-tier PR gate), /sfn-explore (on-demand service graph or blast-radius analysis).",
|
|
4
|
+
"version": "2.1.6",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Motivity Labs"
|
|
7
7
|
},
|
package/README.md
CHANGED
|
@@ -36,23 +36,22 @@
|
|
|
36
36
|
|
|
37
37
|
The SecuFusion MCP has been refactored to align with the advanced MLMCPS framework principles, bringing massive efficiency and UX improvements:
|
|
38
38
|
|
|
39
|
-
1. **
|
|
39
|
+
1. **5 High-Impact Slash Commands**: The monolithic agent prompt and fragmented utility scripts are consolidated into 5 clean, focused commands: `/sfn-init`, `/sfn-plan`, `/sfn-code`, `/sfn-review`, and `/sfn-explore`.
|
|
40
40
|
2. **Subprocess PR Checks**: Tier 1 mechanical checks (`TENANT_ISOLATION`, `N_PLUS_ONE`, etc.) are now extracted into a standalone CLI script (`scripts/sfn-pr-check.js`), allowing them to be run by the AI *or* natively within your CI/CD pipelines.
|
|
41
41
|
3. **Thin Index Token Discipline**: Context bloat is gone. Tools like `manage_task(read)` and `prime_session` now return lightweight "Thin Indexes"—compact Markdown summaries with absolute file paths—so the AI only reads the full JSON via `view_file` when truly necessary.
|
|
42
42
|
4. **Dynamic Skill Registry**: A new `skill_recommend` tool allows the AI to dynamically discover domain-specific architectural skills without bloating the base prompt.
|
|
43
43
|
5. **Phase -1 Philosophy Engine**: An invisible gate that checks the WHY, WHO, WHAT, and RISK of every task (including bugs and hotfixes) before any planning starts. If the business intent or blast radius is unsafe, it stops the AI from writing a single line of code.
|
|
44
|
-
6. **Poly-Repo DNA Discovery**:
|
|
44
|
+
6. **Built-in Poly-Repo DNA Discovery**: Built directly into `secufusion-mcp`. The AI dynamically analyzes the entire poly-repo workspace at session start, mapping microservices, API contracts, Kafka topologies, frontend repos, and browser extensions into a living knowledge graph (`.secufusion/dna.json`) with an auto-generated Mermaid architecture diagram.
|
|
45
45
|
|
|
46
46
|
---
|
|
47
47
|
|
|
48
|
-
## 🧬
|
|
48
|
+
## 🧬 Built-In DNA Discovery & Architecture Exploration
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
`secufusion-mcp` includes native ecosystem-wide discovery tools:
|
|
51
51
|
|
|
52
|
-
**Key Features:**
|
|
53
52
|
- **Dynamic Stack Analysis:** Identifies Java/Spring, Node, Docker, and other frameworks on the fly.
|
|
54
|
-
- **Slash Command Agents:** Use `/analyze`, `/map-architecture`, and `/blast-radius` directly in your AI chat to orchestrate complex codebase queries.
|
|
55
53
|
- **Automated Dependency Mapping:** Generates cross-service dependency maps and evaluates the blast radius of potential changes.
|
|
54
|
+
- **Interactive Commands:** Use `/sfn-init` to map your entire workspace and launch the watcher, and `/sfn-explore` on-demand to render Mermaid architecture graphs or analyze component blast radius.
|
|
56
55
|
|
|
57
56
|
---
|
|
58
57
|
|
|
@@ -144,13 +143,13 @@ npx secufusion-mcp
|
|
|
144
143
|
### Option 2 — Global install
|
|
145
144
|
|
|
146
145
|
```bash
|
|
147
|
-
npm install -g secufusion-mcp@2.1.
|
|
146
|
+
npm install -g secufusion-mcp@2.1.6
|
|
148
147
|
```
|
|
149
148
|
|
|
150
149
|
### Option 3 — Local project install
|
|
151
150
|
|
|
152
151
|
```bash
|
|
153
|
-
npm install --save-dev secufusion-mcp@2.1.
|
|
152
|
+
npm install --save-dev secufusion-mcp@2.1.6
|
|
154
153
|
```
|
|
155
154
|
|
|
156
155
|
---
|
|
@@ -946,86 +945,45 @@ If any of these are physically missing from your local workspace folder, a `[WAR
|
|
|
946
945
|
|
|
947
946
|
## ⚡ End-to-End Slash Command Workflow
|
|
948
947
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
|
954
|
-
|
|
955
|
-
| `/sfn-
|
|
956
|
-
| `/
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|---|---|---|
|
|
989
|
-
| `/sfn-review` | After coding is done, before opening a PR | Agent enters the adversarial `reviewer.md` persona. Triggers `run_pre_pr_checks` — a 3-tier AST-level gate: (1) Mechanical guardrails (tenant isolation, N+1 queries, hardcoded URLs), (2) AI file-by-file code review, (3) Context-aware task evaluation against your spec. **Blocks the PR if Tier 1 violations are found.** |
|
|
990
|
-
|
|
991
|
-
---
|
|
992
|
-
|
|
993
|
-
### 🔍 Phase 4 — Architecture Discovery
|
|
994
|
-
|
|
995
|
-
These commands can be run at any time to explore your codebase, independent of any active task.
|
|
996
|
-
|
|
997
|
-
| Command | When to run | What it does |
|
|
998
|
-
|---|---|---|
|
|
999
|
-
| `/blast-radius <component>` | Before refactoring a shared entity, API, or Kafka topic | Reads `dna.json` and calculates exactly which services, endpoints, and consumers will break if the given component is changed. Prevents accidental breaking changes. |
|
|
1000
|
-
| `/map-architecture` | When onboarding a new dev or auditing the ecosystem | Generates a comprehensive bird's-eye view of all your services, domains, inter-service call graph, and Kafka topics sourced directly from the DNA graph. |
|
|
1001
|
-
| `/analyze` | When debugging a cross-service issue or doing a deep-dive on a subsystem | Performs a deep-dive AST analysis of a specific area, generating detailed dependency and data-flow maps. |
|
|
1002
|
-
|
|
1003
|
-
---
|
|
1004
|
-
|
|
1005
|
-
### 📊 The Full SDLC Flow at a Glance
|
|
1006
|
-
|
|
1007
|
-
```
|
|
1008
|
-
Morning
|
|
1009
|
-
↓
|
|
1010
|
-
/sfn-init ← Validate all repos, build DNA knowledge graph
|
|
1011
|
-
↓
|
|
1012
|
-
/watch-dna ← Background watcher keeps DNA fresh all day
|
|
1013
|
-
↓
|
|
1014
|
-
New ticket arrives
|
|
1015
|
-
↓
|
|
1016
|
-
/sfn-plan TASK-XXX ← Plan is written + presented → you say "proceed"
|
|
1017
|
-
↓
|
|
1018
|
-
/sfn-code ← Feature is implemented per plan, zero-trust guardrails active
|
|
1019
|
-
↓
|
|
1020
|
-
/sfn-review ← 3-tier AST gate → PASS or BLOCK with specific violations
|
|
1021
|
-
↓
|
|
1022
|
-
PR opened ✅
|
|
1023
|
-
|
|
1024
|
-
Need to investigate?
|
|
1025
|
-
↓
|
|
1026
|
-
/blast-radius ← Impact analysis before any structural change
|
|
1027
|
-
/map-architecture ← Full ecosystem overview
|
|
1028
|
-
/analyze ← Deep subsystem inspection
|
|
948
|
+
All commands are natively registered as Claude Plugins and appear directly in the Claude IDE `/` command picker. The workflow is streamlined into **5 core commands** with zero redundancy:
|
|
949
|
+
|
|
950
|
+
| # | Command | Persona / Role | When to run | What it does |
|
|
951
|
+
|---|---|---|---|---|
|
|
952
|
+
| **1** | `/sfn-init` | Ecosystem Architect | First thing in morning, on new machine, or new clone | Bootstraps workspace, validates mandatory repos against `.secufusion-project-spec.json`, extracts domain models, API endpoints, Kafka topics, generates `.secufusion/dna.json`, builds full Mermaid architecture diagram, and launches continuous background file watcher (`chokidar`). |
|
|
953
|
+
| **2** | `/sfn-plan <ticket-id or desc>` | `planner.md` | When starting any story, chore, feature, bug, or hotfix | Evaluates Phase -1 Philosophy gate (WHY/WHO/WHAT/RISK), creates Markdown business intent (`spec_create_intent`), primes session AST context (`prime_session`), classifies task boundaries (`classify_task`), enforces **Rule 5 STRICT YIELD** for your green light, then generates structured `plan.md`. |
|
|
954
|
+
| **3** | `/sfn-code` | `coder.md` | After you approve the plan | Implements strictly according to the approved plan. Enforces zero-trust standards: mandatory tenant isolation on DB operations, proper `@Transactional` scoping, DTO mapping rules, and logs anti-patterns to `.rejected-patterns.json`. |
|
|
955
|
+
| **4** | `/sfn-review` | `reviewer.md` | After coding is done, before opening a PR | Adversarial PR gate running 3 tiers in a single pass: (1) Mechanical AST guardrails (tenant isolation, N+1 queries, hardcoded endpoints), (2) AI file-by-file code review, (3) Context-aware task evaluation against spec. Blocks PR if Tier 1 violations exist. |
|
|
956
|
+
| **5** | `/sfn-explore [map \| <component>]` | Architecture Explorer | On-demand for cross-service impact & system maps | Dual-mode architecture query: `/sfn-explore map` renders the full cross-service Mermaid architecture diagram; `/sfn-explore <component-or-path>` calculates blast radius and affected downstream consumers before making breaking changes. |
|
|
957
|
+
|
|
958
|
+
---
|
|
959
|
+
|
|
960
|
+
### 📊 The 5-Command SDLC Flow at a Glance
|
|
961
|
+
|
|
962
|
+
```
|
|
963
|
+
Morning / First Setup
|
|
964
|
+
│
|
|
965
|
+
▼
|
|
966
|
+
/sfn-init ← Scans workspace, writes dna.json, draws Mermaid diagram, starts watcher
|
|
967
|
+
│
|
|
968
|
+
├─► /sfn-explore map (Optional on-demand: view ecosystem graph)
|
|
969
|
+
│
|
|
970
|
+
Ticket Arrives (Feature / Bug / Hotfix)
|
|
971
|
+
│
|
|
972
|
+
▼
|
|
973
|
+
/sfn-plan WI-XXXX ← Phase -1 Philosophy check → Intent WHY → Prime → Classify → STRICT YIELD
|
|
974
|
+
│
|
|
975
|
+
├─► User Approves Plan ✅
|
|
976
|
+
│
|
|
977
|
+
▼
|
|
978
|
+
/sfn-code ← Implement approved plan with zero-trust guardrails
|
|
979
|
+
│
|
|
980
|
+
├─► /sfn-explore <comp> (Optional: verify blast radius if touching shared interfaces)
|
|
981
|
+
│
|
|
982
|
+
▼
|
|
983
|
+
/sfn-review ← 3-Tier PR Gate: mechanical AST checks + AI review + spec matching
|
|
984
|
+
│
|
|
985
|
+
▼
|
|
986
|
+
PR Ready to Merge 🚀
|
|
1029
987
|
```
|
|
1030
988
|
|
|
1031
989
|
---
|