framework-mcp 2.5.6 → 2.6.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/README.md +34 -9
- package/dist/core/safeguard-manager.js +4 -4
- package/dist/core/safeguard-manager.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/http/http-server.js +3 -3
- package/dist/interfaces/mcp/mcp-server.js +3 -3
- package/dist/shared/types.d.ts +49 -25
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/shared/types.js.map +1 -1
- package/package.json +8 -1
- package/swagger.json +9 -77
- package/.claude/agents/mcp-developer.md +0 -41
- package/.claude/agents/project-orchestrator.md +0 -43
- package/.claude/agents/version-consistency-reviewer.md +0 -50
- package/.claude/commands/speckit.analyze.md +0 -184
- package/.claude/commands/speckit.checklist.md +0 -294
- package/.claude/commands/speckit.clarify.md +0 -181
- package/.claude/commands/speckit.constitution.md +0 -82
- package/.claude/commands/speckit.implement.md +0 -135
- package/.claude/commands/speckit.plan.md +0 -89
- package/.claude/commands/speckit.specify.md +0 -258
- package/.claude/commands/speckit.tasks.md +0 -137
- package/.claude/commands/speckit.taskstoissues.md +0 -30
- package/.claude/config.json +0 -11
- package/.claude_config.json +0 -11
- package/.do/app.yaml +0 -78
- package/.github/dependabot.yml +0 -15
- package/.github/workflows/ci.yml +0 -90
- package/.github/workflows/release.yml +0 -30
- package/.mcp.json +0 -11
- package/.specify/memory/constitution.md +0 -50
- package/.specify/scripts/bash/check-prerequisites.sh +0 -166
- package/.specify/scripts/bash/common.sh +0 -156
- package/.specify/scripts/bash/create-new-feature.sh +0 -297
- package/.specify/scripts/bash/setup-plan.sh +0 -61
- package/.specify/scripts/bash/update-agent-context.sh +0 -799
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/plan-template.md +0 -104
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -251
- package/examples/example-usage.md +0 -293
- package/examples/llm-analysis-patterns.md +0 -553
- package/examples/vendors.csv +0 -9
- package/examples/vendors.json +0 -32
- package/scripts/validate-documentation.sh +0 -150
- package/src/core/safeguard-manager.ts +0 -4634
- package/src/index.ts +0 -17
- package/src/interfaces/http/http-server.ts +0 -262
- package/src/interfaces/mcp/mcp-server.ts +0 -165
- package/src/shared/types.ts +0 -300
- package/tsconfig.json +0 -23
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
|
|
3
|
-
echo "🔍 Framework MCP Documentation Validation"
|
|
4
|
-
echo "========================================"
|
|
5
|
-
echo
|
|
6
|
-
|
|
7
|
-
# Check if we're in the right directory
|
|
8
|
-
if [ ! -f "package.json" ]; then
|
|
9
|
-
echo "❌ Error: Run this script from the Framework MCP root directory"
|
|
10
|
-
exit 1
|
|
11
|
-
fi
|
|
12
|
-
|
|
13
|
-
# Build the project
|
|
14
|
-
echo "📦 Building project..."
|
|
15
|
-
npm run build
|
|
16
|
-
if [ $? -ne 0 ]; then
|
|
17
|
-
echo "❌ Build failed"
|
|
18
|
-
exit 1
|
|
19
|
-
fi
|
|
20
|
-
echo "✅ Build successful"
|
|
21
|
-
echo
|
|
22
|
-
|
|
23
|
-
# Test HTTP server startup
|
|
24
|
-
echo "🚀 Testing HTTP server startup..."
|
|
25
|
-
PORT=9004 node dist/interfaces/http/http-server.js &
|
|
26
|
-
SERVER_PID=$!
|
|
27
|
-
sleep 5
|
|
28
|
-
|
|
29
|
-
# Test health endpoint
|
|
30
|
-
echo "🏥 Testing health endpoint..."
|
|
31
|
-
HEALTH=$(curl -s http://localhost:9004/health 2>/dev/null)
|
|
32
|
-
if echo "$HEALTH" | jq -e '.status == "healthy"' > /dev/null 2>&1; then
|
|
33
|
-
echo "✅ Health endpoint working"
|
|
34
|
-
VERSION=$(echo "$HEALTH" | jq -r '.version')
|
|
35
|
-
echo " Version: $VERSION"
|
|
36
|
-
else
|
|
37
|
-
echo "❌ Health endpoint failed"
|
|
38
|
-
kill $SERVER_PID 2>/dev/null
|
|
39
|
-
exit 1
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
# Test all API endpoints
|
|
43
|
-
echo
|
|
44
|
-
echo "🔧 Testing API endpoints..."
|
|
45
|
-
|
|
46
|
-
# Test safeguards list
|
|
47
|
-
SAFEGUARDS=$(curl -s http://localhost:9004/api/safeguards 2>/dev/null)
|
|
48
|
-
TOTAL=$(echo "$SAFEGUARDS" | jq -r '.total' 2>/dev/null)
|
|
49
|
-
if [ "$TOTAL" = "153" ]; then
|
|
50
|
-
echo "✅ Safeguards endpoint: $TOTAL safeguards"
|
|
51
|
-
else
|
|
52
|
-
echo "❌ Safeguards endpoint failed (expected 153, got $TOTAL)"
|
|
53
|
-
fi
|
|
54
|
-
|
|
55
|
-
# Test safeguard details
|
|
56
|
-
DETAILS=$(curl -s http://localhost:9004/api/safeguards/1.1 2>/dev/null)
|
|
57
|
-
TITLE=$(echo "$DETAILS" | jq -r '.title' 2>/dev/null)
|
|
58
|
-
if [[ "$TITLE" == "Establish and Maintain"* ]]; then
|
|
59
|
-
echo "✅ Safeguard details endpoint working"
|
|
60
|
-
else
|
|
61
|
-
echo "❌ Safeguard details endpoint failed"
|
|
62
|
-
fi
|
|
63
|
-
|
|
64
|
-
# Test validate vendor mapping
|
|
65
|
-
VALIDATION=$(curl -s -X POST http://localhost:9004/api/validate-vendor-mapping \
|
|
66
|
-
-H "Content-Type: application/json" \
|
|
67
|
-
-d '{"vendor_name":"Test Vendor","safeguard_id":"1.1","claimed_capability":"facilitates","supporting_text":"Our tool enhances existing asset management systems with additional discovery capabilities and detailed reporting features."}' 2>/dev/null)
|
|
68
|
-
VALIDATION_STATUS=$(echo "$VALIDATION" | jq -r '.validation_status' 2>/dev/null)
|
|
69
|
-
if [ "$VALIDATION_STATUS" != "null" ] && [ "$VALIDATION_STATUS" != "" ]; then
|
|
70
|
-
echo "✅ Validate vendor mapping endpoint working"
|
|
71
|
-
else
|
|
72
|
-
echo "❌ Validate vendor mapping endpoint failed"
|
|
73
|
-
fi
|
|
74
|
-
|
|
75
|
-
# Test analyze vendor response
|
|
76
|
-
ANALYSIS=$(curl -s -X POST http://localhost:9004/api/analyze-vendor-response \
|
|
77
|
-
-H "Content-Type: application/json" \
|
|
78
|
-
-d '{"vendor_name":"ServiceNow CMDB","safeguard_id":"1.1","response_text":"Comprehensive asset management with automated discovery, detailed inventory tracking, ownership records, and bi-annual review processes."}' 2>/dev/null)
|
|
79
|
-
CAPABILITY=$(echo "$ANALYSIS" | jq -r '.determined_capability' 2>/dev/null)
|
|
80
|
-
if [ "$CAPABILITY" != "null" ] && [ "$CAPABILITY" != "" ]; then
|
|
81
|
-
echo "✅ Analyze vendor response endpoint working"
|
|
82
|
-
else
|
|
83
|
-
echo "❌ Analyze vendor response endpoint failed"
|
|
84
|
-
fi
|
|
85
|
-
|
|
86
|
-
# Test deprecated endpoint removal
|
|
87
|
-
DEPRECATED=$(curl -s http://localhost:9004/api/validate-coverage-claim 2>/dev/null)
|
|
88
|
-
if echo "$DEPRECATED" | jq -e '.error' > /dev/null 2>&1; then
|
|
89
|
-
echo "✅ Deprecated validate-coverage-claim endpoint properly removed"
|
|
90
|
-
else
|
|
91
|
-
echo "❌ Deprecated endpoint still accessible"
|
|
92
|
-
fi
|
|
93
|
-
|
|
94
|
-
# Cleanup
|
|
95
|
-
kill $SERVER_PID 2>/dev/null
|
|
96
|
-
echo
|
|
97
|
-
|
|
98
|
-
# Documentation consistency checks
|
|
99
|
-
echo "📚 Checking documentation consistency..."
|
|
100
|
-
|
|
101
|
-
# Check tool count consistency
|
|
102
|
-
README_TOOLS=$(grep -c "validate_vendor_mapping\|analyze_vendor_response\|get_safeguard_details\|list_available_safeguards" README.md)
|
|
103
|
-
CLAUDE_TOOLS=$(grep -c "validate_vendor_mapping\|analyze_vendor_response\|get_safeguard_details\|list_available_safeguards" CLAUDE.md)
|
|
104
|
-
COPILOT_TOOLS=$(grep -c "validate_vendor_mapping\|analyze_vendor_response\|get_safeguard_details\|list_available_safeguards" COPILOT_INTEGRATION.md)
|
|
105
|
-
|
|
106
|
-
if [ "$README_TOOLS" -ge 4 ] && [ "$CLAUDE_TOOLS" -ge 4 ] && [ "$COPILOT_TOOLS" -ge 4 ]; then
|
|
107
|
-
echo "✅ All documentation references 4 tools consistently"
|
|
108
|
-
else
|
|
109
|
-
echo "❌ Tool count inconsistency: README($README_TOOLS), CLAUDE($CLAUDE_TOOLS), COPILOT($COPILOT_TOOLS)"
|
|
110
|
-
fi
|
|
111
|
-
|
|
112
|
-
# Check version consistency
|
|
113
|
-
VERSION_FILES=("package.json" "swagger.json" "CLAUDE.md" "COPILOT_INTEGRATION.md" "DEPLOYMENT_GUIDE.md")
|
|
114
|
-
VERSION_ISSUES=()
|
|
115
|
-
|
|
116
|
-
for file in "${VERSION_FILES[@]}"; do
|
|
117
|
-
if [ -f "$file" ]; then
|
|
118
|
-
if ! grep -q "1.4.0" "$file"; then
|
|
119
|
-
VERSION_ISSUES+=("$file")
|
|
120
|
-
fi
|
|
121
|
-
fi
|
|
122
|
-
done
|
|
123
|
-
|
|
124
|
-
if [ ${#VERSION_ISSUES[@]} -eq 0 ]; then
|
|
125
|
-
echo "✅ Version 1.4.0 consistent across all files"
|
|
126
|
-
else
|
|
127
|
-
echo "❌ Version inconsistency in: ${VERSION_ISSUES[*]}"
|
|
128
|
-
fi
|
|
129
|
-
|
|
130
|
-
# Check for deprecated references
|
|
131
|
-
DEPRECATED_FILES=$(grep -l "validate_coverage_claim" *.md 2>/dev/null || true)
|
|
132
|
-
if [ -z "$DEPRECATED_FILES" ]; then
|
|
133
|
-
echo "✅ No deprecated validate_coverage_claim references in documentation"
|
|
134
|
-
else
|
|
135
|
-
echo "❌ Deprecated references found in: $DEPRECATED_FILES"
|
|
136
|
-
fi
|
|
137
|
-
|
|
138
|
-
# Summary
|
|
139
|
-
echo
|
|
140
|
-
echo "📊 VALIDATION SUMMARY"
|
|
141
|
-
echo "===================="
|
|
142
|
-
echo "✅ Build: Successful"
|
|
143
|
-
echo "✅ HTTP Server: Working"
|
|
144
|
-
echo "✅ All 4 API Endpoints: Functional"
|
|
145
|
-
echo "✅ 153 CIS Safeguards: Available"
|
|
146
|
-
echo "✅ Documentation: Consistent"
|
|
147
|
-
echo "✅ Version 1.4.0: Aligned"
|
|
148
|
-
echo "✅ Architecture: Clean (4 tools)"
|
|
149
|
-
echo
|
|
150
|
-
echo "🎉 Framework MCP v1.4.0 Ready for Release!"
|