Skip to content

Commit b37b9d9

Browse files
ChrisEdwardsclaude
andcommitted
Document case-insensitive session metadata matching and field discovery (mcp-b7s)
- Update sessionMetadataName @ToolParam: Document case-insensitive matching, guide users to call get_session_metadata(appId) to discover available fields - Update sessionMetadataValue @ToolParam: Document case-insensitive matching, guide users to discover values via get_session_metadata(appId) - Remove hardcoded examples (Branch, Environment) that suggested fixed fields - Session metadata fields are dynamic per-customer configuration, not enums 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 1aafe1a commit b37b9d9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

src/main/java/com/contrast/labs/ai/mcp/contrast/AssessService.java

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,22 @@ public PaginatedResponse<VulnLight> searchAppVulnerabilities(
619619
String lastSeenBefore,
620620
@ToolParam(description = "Comma-separated vulnerability tags", required = false)
621621
String vulnTags,
622-
@ToolParam(description = "Session metadata field name for filtering", required = false)
622+
@ToolParam(
623+
description =
624+
"Filter by session metadata field name. Matching is case-insensitive: 'branch',"
625+
+ " 'Branch', and 'BRANCH' all match. Use get_session_metadata(appId) to"
626+
+ " discover available field names for this application. When specified"
627+
+ " without sessionMetadataValue, returns vulnerabilities that have this"
628+
+ " metadata field with any value.",
629+
required = false)
623630
String sessionMetadataName,
624-
@ToolParam(description = "Session metadata field value for filtering", required = false)
631+
@ToolParam(
632+
description =
633+
"Filter by session metadata field value. Matching is case-insensitive: 'Main',"
634+
+ " 'main', and 'MAIN' all match. Use get_session_metadata(appId) to discover"
635+
+ " available values for the specified field name. Requires"
636+
+ " sessionMetadataName to be specified.",
637+
required = false)
625638
String sessionMetadataValue,
626639
@ToolParam(description = "Filter to latest session only", required = false)
627640
Boolean useLatestSession)

0 commit comments

Comments
 (0)