mcp-prompt-optimizer 3.2.1 → 3.2.3

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 (2) hide show
  1. package/index.js +26 -0
  2. package/package.json +15 -3
package/index.js CHANGED
@@ -146,6 +146,25 @@ class MCPPromptOptimizer {
146
146
  },
147
147
  required: ["label", "description"]
148
148
  }
149
+ },
150
+ intent_frame: {
151
+ type: "object",
152
+ description: "Question Method intent framing — steers optimization toward a specific angle, excludes off-topic territory, and defines what success looks like. Any non-null field floors routing to HYBRID tier minimum.",
153
+ properties: {
154
+ perspective: {
155
+ type: "string",
156
+ description: "The angle or thesis to optimize from (e.g. 'growth is a retention problem, not an acquisition problem'). Gives the optimizer a north-star direction."
157
+ },
158
+ out_of_scope: {
159
+ type: "array",
160
+ items: { type: "string" },
161
+ description: "Topics, approaches, or angles to explicitly exclude from optimization (e.g. ['pricing strategy', 'acquisition channels'])."
162
+ },
163
+ success_definition: {
164
+ type: "string",
165
+ description: "Narrative description of what a successful optimized output achieves (e.g. 'reader understands why churn drives flat revenue even with user growth')."
166
+ }
167
+ }
149
168
  }
150
169
  },
151
170
  required: ["prompt"]
@@ -712,6 +731,13 @@ class MCPPromptOptimizer {
712
731
  optimizationPayload.value_hierarchy = args.value_hierarchy;
713
732
  }
714
733
 
734
+ if (args.intent_frame && typeof args.intent_frame === 'object') {
735
+ const { perspective, out_of_scope, success_definition } = args.intent_frame;
736
+ if (perspective || (out_of_scope && out_of_scope.length > 0) || success_definition) {
737
+ optimizationPayload.intent_frame = args.intent_frame;
738
+ }
739
+ }
740
+
715
741
  const result = await this.callBackendAPI(ENDPOINTS.OPTIMIZE, optimizationPayload);
716
742
 
717
743
  const enableBayesian = args.enable_bayesian !== false && this.bayesianOptimizationEnabled;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcp-prompt-optimizer",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Professional cloud-based MCP server for AI-powered prompt optimization with intelligent context detection, Bayesian optimization, AG-UI real-time optimization, template auto-save, optimization insights, personal model configuration via WebUI, team collaboration, enterprise-grade features, production resilience, and startup validation. Universal compatibility with Claude Desktop, Cursor, Windsurf, and 17+ MCP clients.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -191,10 +191,22 @@
191
191
  "feature_parity": true,
192
192
  "bayesian_support": true,
193
193
  "agui_support": true,
194
- "last_sync": "2026-05-19T00:00:00Z"
194
+ "last_sync": "2026-05-22T00:00:00Z"
195
195
  },
196
196
  "release_notes": {
197
- "v3.2.1": {
197
+ "v3.2.3": {
198
+ "major_features": [
199
+ "optimize_prompt now accepts intent_frame parameter for Question Method intent framing",
200
+ "intent_frame.perspective steers optimization toward a specific angle or thesis",
201
+ "intent_frame.out_of_scope excludes topics/approaches from optimization scope",
202
+ "intent_frame.success_definition defines what a successful output achieves",
203
+ "Any non-null intent_frame field floors routing to HYBRID tier minimum for higher-quality optimization",
204
+ "Fixed value_hierarchy passthrough — was sent by client but silently dropped by backend MCP router (now fixed end-to-end)"
205
+ ],
206
+ "breaking_changes": [],
207
+ "migration_guide": "No migration required. intent_frame is fully optional; existing calls are unaffected."
208
+ },
209
+ "v3.2.2": {
198
210
  "major_features": [
199
211
  "optimize_prompt now accepts value_hierarchy parameter for constraint-driven optimization",
200
212
  "NON_NEGOTIABLE entries force LLM-tier routing and inject hard constraints into system prompt",