framework-mcp 1.1.3 โ†’ 1.3.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.
Files changed (37) hide show
  1. package/.do/app.yaml +78 -0
  2. package/COPILOT_INTEGRATION.md +335 -0
  3. package/DEPLOYMENT_GUIDE.md +335 -0
  4. package/README.md +96 -3
  5. package/RELEASE_NOTES_v1.2.0.md +396 -0
  6. package/dist/core/capability-analyzer.d.ts +29 -0
  7. package/dist/core/capability-analyzer.d.ts.map +1 -0
  8. package/dist/core/capability-analyzer.js +568 -0
  9. package/dist/core/capability-analyzer.js.map +1 -0
  10. package/dist/core/safeguard-manager.d.ts +15 -0
  11. package/dist/core/safeguard-manager.d.ts.map +1 -0
  12. package/dist/core/safeguard-manager.js +315 -0
  13. package/dist/core/safeguard-manager.js.map +1 -0
  14. package/dist/index.d.ts +4 -0
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +13 -0
  17. package/dist/index.js.map +1 -1
  18. package/dist/interfaces/http/http-server.d.ts +17 -0
  19. package/dist/interfaces/http/http-server.d.ts.map +1 -0
  20. package/dist/interfaces/http/http-server.js +285 -0
  21. package/dist/interfaces/http/http-server.js.map +1 -0
  22. package/dist/interfaces/mcp/mcp-server.d.ts +18 -0
  23. package/dist/interfaces/mcp/mcp-server.d.ts.map +1 -0
  24. package/dist/interfaces/mcp/mcp-server.js +299 -0
  25. package/dist/interfaces/mcp/mcp-server.js.map +1 -0
  26. package/dist/shared/types.d.ts +89 -0
  27. package/dist/shared/types.d.ts.map +1 -0
  28. package/dist/shared/types.js +3 -0
  29. package/dist/shared/types.js.map +1 -0
  30. package/package.json +23 -7
  31. package/src/core/capability-analyzer.ts +708 -0
  32. package/src/core/safeguard-manager.ts +339 -0
  33. package/src/index.ts +17 -0
  34. package/src/interfaces/http/http-server.ts +360 -0
  35. package/src/interfaces/mcp/mcp-server.ts +367 -0
  36. package/src/shared/types.ts +104 -0
  37. package/swagger.json +718 -0
@@ -0,0 +1,396 @@
1
+ # Framework MCP v1.2.0 Release Notes
2
+
3
+ ## ๐Ÿš€ Major Release: Dual Architecture - DigitalOcean Deployment Support
4
+
5
+ **Release Date**: August 2025
6
+ **Version**: 1.2.0
7
+ **Breaking Changes**: None (fully backward compatible)
8
+
9
+ ---
10
+
11
+ ## ๐ŸŒŸ Executive Summary
12
+
13
+ Framework MCP v1.2.0 introduces **dual architecture support**, solving the critical DigitalOcean App Services deployment issue while maintaining full backward compatibility. This release enables both local MCP integration and cloud HTTP deployment through a shared core architecture.
14
+
15
+ **Primary Achievement**: Solves the stdio vs HTTP binding conflict that prevented cloud deployment.
16
+
17
+ ---
18
+
19
+ ## ๐Ÿ—๏ธ Major New Features
20
+
21
+ ### **1. Dual Architecture Implementation**
22
+
23
+ ```
24
+ [Shared Core Logic]
25
+ |
26
+ +------+------+
27
+ | |
28
+ [MCP Interface] [HTTP Interface]
29
+ | |
30
+ [stdio comm] [Express.js]
31
+ | |
32
+ [Claude Code] [Cloud Deploy]
33
+ ```
34
+
35
+ **Components**:
36
+ - **Shared Core**: `CapabilityAnalyzer` + `SafeguardManager` with identical logic
37
+ - **MCP Interface**: Refactored stdio-based server for Claude Code integration
38
+ - **HTTP Interface**: Express.js REST API for cloud deployment
39
+
40
+ ### **2. Production-Ready HTTP API**
41
+
42
+ **New REST Endpoints**:
43
+ ```
44
+ POST /api/validate-vendor-mapping # Primary capability validation
45
+ POST /api/analyze-vendor-response # Capability role determination
46
+ POST /api/validate-coverage-claim # Implementation claim validation
47
+ GET /api/safeguards # List all safeguards
48
+ GET /api/safeguards/:id # Get safeguard details
49
+ GET /health # Platform health check
50
+ GET /api/metrics # Performance monitoring
51
+ ```
52
+
53
+ **Production Features**:
54
+ - โœ… **Health Checks**: Platform monitoring support (`/health`)
55
+ - โœ… **CORS Enabled**: Web application integration
56
+ - โœ… **Security Hardened**: Helmet, input validation, rate limiting ready
57
+ - โœ… **Compression**: Optimized response sizes
58
+ - โœ… **Error Handling**: Production-friendly error messages
59
+ - โœ… **Performance Monitoring**: Real-time metrics at `/api/metrics`
60
+
61
+ ### **3. DigitalOcean App Services Support**
62
+
63
+ **Complete Configuration**:
64
+ - โœ… **HTTP Port Binding**: Port 8080 (not stdio)
65
+ - โœ… **Health Check Endpoint**: `/health` with proper status codes
66
+ - โœ… **Environment Variables**: Production configuration support
67
+ - โœ… **Auto-Scaling**: Resource allocation configuration
68
+ - โœ… **Deployment YAML**: Complete `.do/app.yaml` provided
69
+
70
+ **Deployment Command**:
71
+ ```bash
72
+ # Option 1: GitHub integration (recommended)
73
+ # Connect branch: feature/dual-architecture-http-api
74
+
75
+ # Option 2: doctl CLI
76
+ doctl apps create .do/app.yaml
77
+ ```
78
+
79
+ ---
80
+
81
+ ## ๐Ÿ”ง Technical Enhancements
82
+
83
+ ### **Shared Core Architecture**
84
+
85
+ **CapabilityAnalyzer Class**:
86
+ - Extracted from MCP server implementation
87
+ - Maintains all v1.1.3 performance optimizations (95% cache improvement)
88
+ - Preserves domain validation and auto-downgrade logic
89
+ - Identical functionality across MCP and HTTP interfaces
90
+
91
+ **SafeguardManager Class**:
92
+ - Centralized CIS safeguards data management
93
+ - Intelligent caching with configurable TTL
94
+ - Input validation and error handling
95
+ - Support for implementation examples
96
+
97
+ ### **Interface Compatibility**
98
+
99
+ **MCP Interface** (Preserved):
100
+ ```typescript
101
+ // Exact same tool signatures
102
+ validate_vendor_mapping(vendor_name, safeguard_id, claimed_capability, supporting_text)
103
+ analyze_vendor_response(vendor_name, safeguard_id, response_text)
104
+ validate_coverage_claim(vendor_name, safeguard_id, claimed_capability, response_text)
105
+ get_safeguard_details(safeguard_id, include_examples)
106
+ list_available_safeguards()
107
+ ```
108
+
109
+ **HTTP Interface** (New):
110
+ ```bash
111
+ # RESTful equivalent endpoints
112
+ curl -X POST /api/validate-vendor-mapping -d '{"vendor_name":"...", "safeguard_id":"1.1", ...}'
113
+ curl -X POST /api/analyze-vendor-response -d '{"vendor_name":"...", "safeguard_id":"5.1", ...}'
114
+ curl -X POST /api/validate-coverage-claim -d '{"vendor_name":"...", "claimed_capability":"full", ...}'
115
+ curl /api/safeguards/1.1?include_examples=true
116
+ curl /api/safeguards
117
+ ```
118
+
119
+ ---
120
+
121
+ ## ๐Ÿ“ฆ Package and Deployment Updates
122
+
123
+ ### **Package.json Enhancements**
124
+
125
+ **New Scripts**:
126
+ ```json
127
+ {
128
+ "start": "node dist/interfaces/http/http-server.js", // Default: HTTP server
129
+ "start:mcp": "node dist/index.js", // MCP server
130
+ "start:http": "node dist/interfaces/http/http-server.js", // HTTP server
131
+ "dev": "tsc && npm run start:mcp", // MCP development
132
+ "dev:http": "tsc && npm run start:http" // HTTP development
133
+ }
134
+ ```
135
+
136
+ **Updated Dependencies**:
137
+ ```json
138
+ {
139
+ "express": "^4.18.2",
140
+ "cors": "^2.8.5",
141
+ "helmet": "^8.1.0",
142
+ "compression": "^1.8.1"
143
+ }
144
+ ```
145
+
146
+ **Main Entry Point**:
147
+ - **Default**: `dist/interfaces/http/http-server.js` (cloud-ready)
148
+ - **MCP**: `dist/index.js` (Claude Code integration)
149
+
150
+ ### **Cloud Platform Support**
151
+
152
+ **DigitalOcean App Services**:
153
+ ```yaml
154
+ name: framework-mcp-api
155
+ services:
156
+ - name: api
157
+ run_command: npm run start:http
158
+ http_port: 8080
159
+ health_check:
160
+ http_path: /health
161
+ ```
162
+
163
+ **Alternative Platforms**:
164
+ - **Railway**: `railway up`
165
+ - **Render**: Node.js + `npm run start:http`
166
+ - **AWS App Runner**: HTTP service configuration
167
+ - **Google Cloud Run**: Container deployment ready
168
+
169
+ ---
170
+
171
+ ## ๐Ÿงช Testing and Validation
172
+
173
+ ### **Dual Interface Testing**
174
+
175
+ **HTTP API Validation**:
176
+ ```bash
177
+ # Health check
178
+ curl http://localhost:8080/health
179
+
180
+ # Primary validation endpoint
181
+ curl -X POST http://localhost:8080/api/validate-vendor-mapping \
182
+ -H "Content-Type: application/json" \
183
+ -d '{"vendor_name":"AssetMax Pro","safeguard_id":"1.1","claimed_capability":"full","supporting_text":"..."}'
184
+
185
+ # Domain validation test
186
+ curl -X POST http://localhost:8080/api/validate-vendor-mapping \
187
+ -H "Content-Type: application/json" \
188
+ -d '{"vendor_name":"ThreatIntel Pro","safeguard_id":"1.1","claimed_capability":"full","supporting_text":"..."}'
189
+ ```
190
+
191
+ **MCP Interface Validation**:
192
+ ```bash
193
+ # Standard MCP usage (unchanged)
194
+ npm run start:mcp
195
+ # Use with Claude Code as before
196
+ ```
197
+
198
+ ### **Performance Verification**
199
+
200
+ **Shared Core Performance**:
201
+ - โœ… **95% Cache Improvement**: Maintained across both interfaces
202
+ - โœ… **Domain Validation**: Auto-downgrade working in both MCP and HTTP
203
+ - โœ… **Memory Management**: Intelligent cache cleanup active
204
+ - โœ… **Error Handling**: Production-friendly messages in both interfaces
205
+
206
+ **HTTP-Specific Performance**:
207
+ - โœ… **Response Times**: Sub-200ms for cached requests
208
+ - โœ… **Compression**: Significant bandwidth reduction
209
+ - โœ… **Concurrent Requests**: Express.js scalability
210
+ - โœ… **Health Monitoring**: Real-time metrics collection
211
+
212
+ ---
213
+
214
+ ## ๐Ÿ“‹ Migration Guide
215
+
216
+ ### **No Breaking Changes**
217
+
218
+ **Existing MCP Users**:
219
+ - โœ… **Zero Changes Required**: All existing integrations continue working
220
+ - โœ… **Same Tool Signatures**: No API changes to MCP tools
221
+ - โœ… **Same Results**: Identical capability assessment output
222
+ - โœ… **Same Performance**: All v1.1.3 optimizations preserved
223
+
224
+ **Upgrade Path**:
225
+ ```bash
226
+ # Update to v1.2.0
227
+ npm update -g framework-mcp
228
+
229
+ # Existing usage continues working
230
+ npm run start:mcp # or npm run dev
231
+
232
+ # New cloud deployment option available
233
+ npm run start:http
234
+ ```
235
+
236
+ ### **New Deployment Options**
237
+
238
+ **When to Use Each Interface**:
239
+
240
+ **Use MCP Interface For**:
241
+ - Claude Code integration
242
+ - Local development and testing
243
+ - Tool-based LLM interactions
244
+ - Existing workflows (no changes needed)
245
+
246
+ **Use HTTP Interface For**:
247
+ - DigitalOcean App Services deployment
248
+ - Cloud platform deployment
249
+ - Web application integration
250
+ - API-based access requirements
251
+ - Production scaling needs
252
+
253
+ ---
254
+
255
+ ## ๐Ÿ”’ Security and Validation
256
+
257
+ ### **HTTP API Security**
258
+
259
+ **Input Validation**:
260
+ - Request size limits (10MB maximum)
261
+ - Text length validation (10-10,000 characters)
262
+ - Capability enum validation
263
+ - Safeguard ID format validation
264
+ - XSS prevention through input sanitization
265
+
266
+ **Security Headers**:
267
+ ```javascript
268
+ // Helmet security configuration
269
+ helmet({
270
+ contentSecurityPolicy: true,
271
+ crossOriginEmbedderPolicy: true,
272
+ crossOriginOpenerPolicy: true,
273
+ crossOriginResourcePolicy: true
274
+ })
275
+ ```
276
+
277
+ **CORS Configuration**:
278
+ ```bash
279
+ # Configurable via environment
280
+ ALLOWED_ORIGINS=https://your-domain.com,https://app.your-domain.com
281
+ ```
282
+
283
+ ### **Production Environment**
284
+
285
+ **Environment Variables**:
286
+ ```bash
287
+ NODE_ENV=production # Required for production optimizations
288
+ PORT=8080 # HTTP server port
289
+ ALLOWED_ORIGINS=... # CORS configuration
290
+ ```
291
+
292
+ **Monitoring and Observability**:
293
+ - Real-time performance metrics at `/api/metrics`
294
+ - Health check endpoint for platform monitoring
295
+ - Error tracking and logging
296
+ - Request counting and response time monitoring
297
+
298
+ ---
299
+
300
+ ## ๐Ÿ“ˆ Business Impact
301
+
302
+ ### **For Security Practitioners**
303
+ - **โ˜๏ธ Cloud Deployment**: Access capability assessment from any cloud platform
304
+ - **๐Ÿ”Œ API Integration**: Integrate with existing security tools and workflows
305
+ - **๐Ÿ“Š Scalability**: Deploy at enterprise scale with cloud auto-scaling
306
+ - **๐Ÿ”„ Flexibility**: Choose deployment method based on use case
307
+
308
+ ### **For Development Teams**
309
+ - **๐Ÿš€ Faster Deployment**: Cloud-ready HTTP API out of the box
310
+ - **๐Ÿ”ง CI/CD Ready**: Standard REST API for automation pipelines
311
+ - **๐ŸŒ Web Integration**: Direct integration with web applications
312
+ - **๐Ÿ“‹ Platform Agnostic**: Deploy on any cloud platform
313
+
314
+ ### **For Enterprise Adoption**
315
+ - **๐Ÿ’ผ Production Ready**: Enterprise-grade HTTP API with monitoring
316
+ - **๐Ÿ”’ Security Hardened**: Production security best practices implemented
317
+ - **๐Ÿ“ˆ Scalable**: Cloud-native architecture for enterprise workloads
318
+ - **๐Ÿ›ก๏ธ Reliable**: Health checks and error handling for high availability
319
+
320
+ ---
321
+
322
+ ## ๐ŸŽฏ Success Metrics
323
+
324
+ ### **Deployment Success Indicators**
325
+ - โœ… **Health Check**: `/health` returns 200 status
326
+ - โœ… **API Functionality**: All endpoints return expected responses
327
+ - โœ… **Domain Validation**: Auto-downgrade working correctly
328
+ - โœ… **Performance**: Cache hit rates >95%
329
+ - โœ… **Cloud Platform**: Successful deployment to DigitalOcean
330
+
331
+ ### **Integration Success Indicators**
332
+ - โœ… **MCP Compatibility**: Existing Claude Code integrations work unchanged
333
+ - โœ… **HTTP API**: REST endpoints accessible and functional
334
+ - โœ… **Capability Assessment**: All 5 roles determined accurately
335
+ - โœ… **Error Handling**: Production-friendly error messages
336
+ - โœ… **Monitoring**: Performance metrics collection active
337
+
338
+ ---
339
+
340
+ ## ๐Ÿš€ What's Next
341
+
342
+ ### **Immediate Benefits (Day 1)**
343
+ - **Cloud Deployment**: Deploy to DigitalOcean App Services immediately
344
+ - **API Access**: Integrate with web applications and automation
345
+ - **Scalability**: Enterprise-ready deployment capability
346
+ - **Monitoring**: Production observability and health checks
347
+
348
+ ### **Strategic Impact (Month 1)**
349
+ - **Enterprise Adoption**: Cloud-native capability assessment platform
350
+ - **Integration Ecosystem**: API-first architecture enables broader tooling
351
+ - **Scalable Operations**: Cloud auto-scaling for high-volume assessments
352
+ - **Multi-Platform**: Deploy across multiple cloud providers
353
+
354
+ ---
355
+
356
+ ## ๐Ÿ“ž Support and Resources
357
+
358
+ ### **Documentation**
359
+ - **๐Ÿ“– Deployment Guide**: Complete `DEPLOYMENT_GUIDE.md` included
360
+ - **โš™๏ธ Configuration**: DigitalOcean `.do/app.yaml` provided
361
+ - **๐Ÿ”ง API Reference**: REST endpoint documentation at `/api`
362
+ - **๐Ÿงช Testing Guide**: Validation commands and examples
363
+
364
+ ### **Community and Support**
365
+ - **GitHub Issues**: Bug reports and feature requests
366
+ - **GitHub Discussions**: Community Q&A and best practices
367
+ - **Documentation**: Complete API and deployment documentation
368
+ - **Examples**: Production deployment configurations
369
+
370
+ ---
371
+
372
+ ## ๐ŸŽŠ Release Summary
373
+
374
+ **Framework MCP v1.2.0** delivers the **most significant deployment enhancement** in the project's history:
375
+
376
+ โœ… **Dual Architecture**: MCP + HTTP interfaces with shared core logic
377
+ โœ… **DigitalOcean Ready**: Solves stdio vs HTTP deployment conflict
378
+ โœ… **Backward Compatible**: Zero breaking changes to existing integrations
379
+ โœ… **Production Ready**: Enterprise-grade HTTP API with monitoring
380
+ โœ… **Cloud Agnostic**: Deploy on any cloud platform
381
+ โœ… **API First**: REST endpoints for modern integration patterns
382
+
383
+ **This release transforms Framework MCP from a local-only tool to a cloud-native, enterprise-ready capability assessment platform while preserving all existing functionality.**
384
+
385
+ ---
386
+
387
+ **๐ŸŒŸ Upgrade today and unlock cloud deployment for your capability assessment workflows!**
388
+
389
+ ```bash
390
+ npm install -g framework-mcp@1.2.0
391
+ ```
392
+
393
+ **Deploy to DigitalOcean**:
394
+ ```bash
395
+ doctl apps create .do/app.yaml
396
+ ```
@@ -0,0 +1,29 @@
1
+ import { SafeguardElement, VendorAnalysis, DomainValidationResult, PerformanceMetrics } from '../shared/types.js';
2
+ export declare class CapabilityAnalyzer {
3
+ private cache;
4
+ private performanceMetrics;
5
+ constructor();
6
+ performCapabilityAnalysis(vendorName: string, safeguard: SafeguardElement, responseText: string): VendorAnalysis;
7
+ validateVendorMapping(vendorName: string, safeguardId: string, claimedCapability: string, supportingText: string, safeguard: SafeguardElement): DomainValidationResult;
8
+ private determineClaimedCapability;
9
+ private getImplementationIndicators;
10
+ private assessCapabilityQuality;
11
+ private assessImplementationQuality;
12
+ private assessFacilitationQuality;
13
+ private assessGovernanceQuality;
14
+ private assessValidationQuality;
15
+ private generateCapabilityAnalysis;
16
+ private generateToolCapabilityDescription;
17
+ private generateRecommendedUse;
18
+ private detectToolType;
19
+ private validateDomainMatch;
20
+ private assessCapabilityClaimAlignment;
21
+ private generateValidationFeedback;
22
+ private calculateKeywordScore;
23
+ private calculateElementCoverage;
24
+ private recordToolExecution;
25
+ private logPerformanceStats;
26
+ private cleanupExpiredCache;
27
+ getPerformanceMetrics(): PerformanceMetrics;
28
+ }
29
+ //# sourceMappingURL=capability-analyzer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capability-analyzer.d.ts","sourceRoot":"","sources":["../../src/core/capability-analyzer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EAMnB,MAAM,oBAAoB,CAAC;AAiE5B,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,KAAK,CAA+B;IAC5C,OAAO,CAAC,kBAAkB,CAAqB;;IAmBxC,yBAAyB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,GAAG,cAAc;IA2BhH,qBAAqB,CAC1B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,iBAAiB,EAAE,MAAM,EACzB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,gBAAgB,GAC1B,sBAAsB;IA6EzB,OAAO,CAAC,0BAA0B;IAmDlC,OAAO,CAAC,2BAA2B;IAanC,OAAO,CAAC,uBAAuB;IAoC/B,OAAO,CAAC,2BAA2B;IAmCnC,OAAO,CAAC,yBAAyB;IA6BjC,OAAO,CAAC,uBAAuB;IA6B/B,OAAO,CAAC,uBAAuB;IA6B/B,OAAO,CAAC,0BAA0B;IAgClC,OAAO,CAAC,iCAAiC;IAmBzC,OAAO,CAAC,sBAAsB;IAY9B,OAAO,CAAC,cAAc;IA+BtB,OAAO,CAAC,mBAAmB;IAoC3B,OAAO,CAAC,8BAA8B;IA8CtC,OAAO,CAAC,0BAA0B;IA2BlC,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,wBAAwB;IAUhC,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,mBAAmB;IAe3B,OAAO,CAAC,mBAAmB;IAkBpB,qBAAqB,IAAI,kBAAkB;CAGnD"}