You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
4
+
5
+
## Project Overview
6
+
7
+
This is an MCP (Model Context Protocol) server for Contrast Security that enables AI agents to access and analyze vulnerability data from Contrast's security platform. It serves as a bridge between Contrast Security's API and AI tools like Claude, enabling automated vulnerability remediation and security analysis.
8
+
9
+
## Build and Development Commands
10
+
11
+
### Building the Project
12
+
-**Build**: `mvn clean install` or `./mvnw clean install`
-`ADRService` - Attack detection and response events
36
+
-`RouteCoverageService` - Route coverage analysis
37
+
-`PromptService` - AI prompt management
38
+
39
+
**SDK Extensions**: Located in `sdkexstension/` package, these extend the Contrast SDK with enhanced data models and helper methods for better AI integration.
40
+
41
+
**Data Models**: Comprehensive POJOs in `data/` package representing vulnerability information, library data, applications, and attack events.
-**Packaging**: Executable JAR and Docker container
67
+
68
+
### Development Patterns
69
+
70
+
1.**MCP Tools**: Services expose methods via `@Tool` annotation for AI agent consumption
71
+
2.**SDK Extension Pattern**: Enhanced data models extend base SDK classes with AI-friendly representations
72
+
3.**Hint Generation**: Rule-based system provides contextual security guidance
73
+
4.**Defensive Design**: All external API calls include error handling and logging
74
+
75
+
### Security Considerations
76
+
77
+
This codebase handles sensitive vulnerability data. The README contains critical warnings about data privacy when using with AI models. Never expose Contrast credentials or vulnerability data to untrusted AI services.
78
+
79
+
### Logging
80
+
81
+
- Default log location: `/tmp/mcp-contrast.log`
82
+
- Debug logging: Add `--logging.level.root=DEBUG` to startup arguments
83
+
- Console logging is minimal by design for MCP protocol compatibility
0 commit comments