@shiftleftpt/sbd-toe-mcp 0.6.2 → 0.7.0
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/assets/agent-guide.md +22 -19
- package/data/publish/algolia_entities_records_enriched.json +25370 -2
- package/data/publish/canonical_controls.json +1239 -0
- package/data/publish/canonical_requirements_s7.json +1859 -0
- package/data/publish/canonical_roles_s5.json +138 -0
- package/data/publish/lifecycle_user_stories.json +6558 -0
- package/data/publish/mitigated_threats.json +6945 -0
- package/data/publish/practice_assignments.json +16266 -0
- package/data/publish/sbdtoe-ontology.yaml +696 -0
- package/dist/backend/semantic-index-gateway.js +1 -1
- package/dist/index.js +276 -115
- package/dist/index.js.map +1 -1
- package/dist/resources/sbd-toe-resources.js +6 -1
- package/dist/resources/sbd-toe-resources.js.map +1 -1
- package/dist/tools/consult-security-requirements.d.ts +38 -0
- package/dist/tools/consult-security-requirements.js +115 -0
- package/dist/tools/consult-security-requirements.js.map +1 -0
- package/dist/tools/get-guide-by-role.d.ts +38 -0
- package/dist/tools/get-guide-by-role.js +109 -0
- package/dist/tools/get-guide-by-role.js.map +1 -0
- package/dist/tools/get-threat-landscape.d.ts +44 -0
- package/dist/tools/get-threat-landscape.js +116 -0
- package/dist/tools/get-threat-landscape.js.map +1 -0
- package/dist/tools/map-review-scope.js +5 -0
- package/dist/tools/map-review-scope.js.map +1 -1
- package/dist/tools/ontology-loader.d.ts +104 -0
- package/dist/tools/ontology-loader.js +206 -0
- package/dist/tools/ontology-loader.js.map +1 -0
- package/dist/tools/plan-repo-governance.d.ts +25 -38
- package/dist/tools/plan-repo-governance.js +71 -498
- package/dist/tools/plan-repo-governance.js.map +1 -1
- package/dist/tools/resolve-entities.d.ts +26 -0
- package/dist/tools/resolve-entities.js +143 -0
- package/dist/tools/resolve-entities.js.map +1 -0
- package/package.json +4 -1
- package/dist/tools/generate-document.d.ts +0 -22
- package/dist/tools/generate-document.js +0 -392
- package/dist/tools/generate-document.js.map +0 -1
package/assets/agent-guide.md
CHANGED
|
@@ -62,19 +62,33 @@ according to the manual.
|
|
|
62
62
|
|
|
63
63
|
```
|
|
64
64
|
1. Obtain applicable guidance first (CONSULT mode)
|
|
65
|
-
2. Then apply
|
|
65
|
+
2. Then apply that guidance to generate, structure, or review the artefact
|
|
66
66
|
|
|
67
|
-
|
|
68
|
-
plan_sbd_toe_repo_governance ← governance plan for a repository
|
|
67
|
+
plan_sbd_toe_repo_governance ← list artefacts the manual identifies, grouped by chapter
|
|
69
68
|
map_sbd_toe_review_scope ← which SbD-ToE bundles to review given changed files
|
|
70
69
|
```
|
|
71
70
|
|
|
71
|
+
> **The MCP surfaces what the manual says — the LLM generates content.**
|
|
72
|
+
> Use CONSULT tools to retrieve artefact descriptions, required sections, and controls.
|
|
73
|
+
> Then generate the actual document, template, or checklist based on that grounded context.
|
|
74
|
+
|
|
72
75
|
> In governance, assessment, or planning tasks: **present the target artefact plan before
|
|
73
76
|
> modifying any files.**
|
|
74
77
|
>
|
|
75
78
|
> In implementation tasks: **obtain applicable secure implementation guidance before
|
|
76
79
|
> generating code** when security-relevant behaviour is involved.
|
|
77
80
|
|
|
81
|
+
### SETUP mode
|
|
82
|
+
Use when the user wants to configure their AI client to use SbD-ToE natively.
|
|
83
|
+
|
|
84
|
+
```
|
|
85
|
+
generate_sbd_toe_skill ← returns canonical skill/instructions content from sbd://toe/agent-guide
|
|
86
|
+
save to the appropriate file for the client:
|
|
87
|
+
Claude Code → .claude/skills/sbd-toe.md
|
|
88
|
+
GitHub Copilot → .github/copilot-instructions.md
|
|
89
|
+
Cursor → .cursorrules
|
|
90
|
+
```
|
|
91
|
+
|
|
78
92
|
---
|
|
79
93
|
|
|
80
94
|
## Epistemic standards
|
|
@@ -132,16 +146,18 @@ Always distinguish between:
|
|
|
132
146
|
|
|
133
147
|
### By question type
|
|
134
148
|
|
|
135
|
-
| Question |
|
|
149
|
+
| Question | Approach |
|
|
136
150
|
|---|---|
|
|
137
151
|
| "What is X?" / "How does Y work?" | `search_sbd_toe_manual` |
|
|
138
152
|
| "What applies to my project?" | `map_sbd_toe_applicability` → `get_sbd_toe_chapter_brief` |
|
|
139
153
|
| "What does chapter N cover?" | `get_sbd_toe_chapter_brief` |
|
|
140
154
|
| "List all chapters" | `list_sbd_toe_chapters` |
|
|
141
155
|
| "Find control / artefact / practice" | `query_sbd_toe_entities` |
|
|
142
|
-
| "Generate a threat model / checklist / plan" | `
|
|
143
|
-
| "
|
|
156
|
+
| "Generate a threat model / checklist / plan" | `search_sbd_toe_manual` or `get_sbd_toe_chapter_brief` to retrieve what the manual says it should contain → then generate it |
|
|
157
|
+
| "What artefacts does the manual require?" | `plan_sbd_toe_repo_governance` |
|
|
158
|
+
| "Governance plan for this repo" | `plan_sbd_toe_repo_governance` → generate plan from returned artefact list |
|
|
144
159
|
| "What to review given these changed files?" | `map_sbd_toe_review_scope` |
|
|
160
|
+
| "Set up SbD-ToE for this client / create a skill" | `generate_sbd_toe_skill` |
|
|
145
161
|
|
|
146
162
|
---
|
|
147
163
|
|
|
@@ -151,7 +167,6 @@ Always distinguish between:
|
|
|
151
167
|
|---|---|
|
|
152
168
|
| `sbd://toe/agent-guide` | This document — full operational guide |
|
|
153
169
|
| `sbd://toe/index-compact` | Full chapter map as JSON — fast structured lookup |
|
|
154
|
-
| `sbd://toe/skill-template/{riskLevel}/{projectRole}` | Role + risk specific instructions |
|
|
155
170
|
| `sbd://toe/chapter-applicability/{riskLevel}` | Active/excluded chapters for a risk level |
|
|
156
171
|
|
|
157
172
|
---
|
|
@@ -165,18 +180,6 @@ Always distinguish between:
|
|
|
165
180
|
|
|
166
181
|
---
|
|
167
182
|
|
|
168
|
-
## `generate_document` types
|
|
169
|
-
|
|
170
|
-
| type | Description |
|
|
171
|
-
|---|---|
|
|
172
|
-
| `classification-template` | Application risk classification document |
|
|
173
|
-
| `threat-model-template` | Threat model with required sections per risk level |
|
|
174
|
-
| `checklist` | Security checklist for the risk level |
|
|
175
|
-
| `training-plan` | Security training plan |
|
|
176
|
-
| `secure-config` | Secure configuration reference |
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
183
|
## Chapter reference
|
|
181
184
|
|
|
182
185
|
| chapterId | Title | Min level | Domains |
|