@bryan-thompson/inspector-assessment-cli 1.42.2 → 1.43.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.
@@ -85,6 +85,19 @@ export async function getToolsWithPreservedHints(client) {
85
85
  }
86
86
  // Start with SDK tool
87
87
  const enrichedTool = { ...sdkTool };
88
+ // Issue #207: Preserve complete annotations object from raw response
89
+ // This ensures runtime-defined annotations are not lost when SDK strips them
90
+ if (rawTool.annotations && Object.keys(rawTool.annotations).length > 0) {
91
+ enrichedTool.annotations = {
92
+ ...sdkTool.annotations, // Keep any SDK-preserved annotations
93
+ ...rawTool.annotations, // Override with raw response annotations
94
+ };
95
+ // Debug logging when DEBUG_ANNOTATIONS env var is set
96
+ if (process.env.DEBUG_ANNOTATIONS) {
97
+ // eslint-disable-next-line no-console
98
+ console.log(`[DEBUG-HINTS] ${rawTool.name}: Preserved annotations object:`, JSON.stringify(enrichedTool.annotations));
99
+ }
100
+ }
88
101
  // Preserve hint properties from raw response (priority order)
89
102
  for (const hint of HINT_PROPERTIES) {
90
103
  // Skip if SDK already has it via annotations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment-cli",
3
- "version": "1.42.2",
3
+ "version": "1.43.0",
4
4
  "description": "CLI for the Enhanced MCP Inspector with assessment capabilities",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",