mcp-prompt-optimizer 3.7.0 → 3.7.2

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.
package/package.json CHANGED
@@ -1,263 +1,271 @@
1
- {
2
- "name": "mcp-prompt-optimizer",
3
- "version": "3.7.0",
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
- "main": "index.js",
6
- "bin": {
7
- "mcp-prompt-optimizer": "index.js"
8
- },
9
- "scripts": {
10
- "start": "node index.js",
11
- "check-status": "node lib/check-status.js",
12
- "validate-key": "node lib/validate-key.js",
13
- "clear-cache": "node lib/clear-cache.js",
14
- "diagnose": "node lib/diagnose.js",
15
- "dev": "cross-env OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-test-key node index.js",
16
- "dev:mock": "cross-env NODE_ENV=development OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-mock-key node index.js",
17
- "dev:windows": "set OPTIMIZER_DEV_MODE=true && set OPTIMIZER_API_KEY=sk-dev-test-key && node index.js",
18
- "dev:unix": "OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-test-key node index.js",
19
- "health-check": "node -e \"console.log('Package health check passed')\"",
20
- "reset-cache": "node lib/clear-cache.js && echo 'Cache and health data cleared'",
21
- "test": "node tests/test-runner.js",
22
- "test:quick": "node tests/quick-test.js",
23
- "test:integration": "node tests/integration-test.js",
24
- "test:comprehensive": "node tests/comprehensive-test.js",
25
- "test:runner": "node tests/test-runner.js",
26
- "test:simple": "node tests/simple-test.js",
27
- "pretest": "npm run health-check",
28
- "prepublishOnly": "npm run test:quick",
29
- "version": "echo 'Updating version...' && npm run test:quick"
30
- },
31
- "dependencies": {
32
- "@modelcontextprotocol/sdk": "^1.15.1",
33
- "node-fetch": "^3.0.0"
34
- },
35
- "devDependencies": {
36
- "cross-env": "^7.0.3"
37
- },
38
- "engines": {
39
- "node": ">=16.0.0"
40
- },
41
- "os": [
42
- "win32",
43
- "darwin",
44
- "linux"
45
- ],
46
- "cpu": [
47
- "x64",
48
- "arm64"
49
- ],
50
- "keywords": [
51
- "mcp",
52
- "mcp-server",
53
- "prompt",
54
- "optimization",
55
- "ai",
56
- "claude",
57
- "anthropic",
58
- "prompt-engineering",
59
- "llm",
60
- "cursor",
61
- "windsurf",
62
- "cline",
63
- "context-aware",
64
- "professional",
65
- "automation"
66
- ],
67
- "author": "Prompt Optimizer Team <support@promptoptimizer.xyz>",
68
- "license": "Proprietary",
69
- "repository": {
70
- "type": "git",
71
- "url": "git+https://github.com/prompt-optimizer/mcp-prompt-optimizer.git"
72
- },
73
- "homepage": "https://promptoptimizer.xyz",
74
- "bugs": {
75
- "url": "https://github.com/prompt-optimizer/mcp-prompt-optimizer/issues"
76
- },
77
- "files": [
78
- "index.js",
79
- "lib/",
80
- "README.md",
81
- "CHANGELOG.md",
82
- "CONTRIBUTING.md",
83
- "CODE_OF_CONDUCT.md",
84
- "SECURITY.md",
85
- "LICENSE"
86
- ],
87
- "config": {
88
- "crossPlatform": true,
89
- "platforms": [
90
- "win32-x64",
91
- "darwin-x64",
92
- "darwin-arm64",
93
- "linux-x64",
94
- "linux-arm64"
95
- ],
96
- "securityRequired": true,
97
- "binaryIntegrity": false,
98
- "freeTierSupport": false
99
- },
100
- "platforms": {
101
- "win32-x64": {
102
- "supported": true,
103
- "tested": true
104
- },
105
- "darwin-x64": {
106
- "supported": true,
107
- "tested": true
108
- },
109
- "darwin-arm64": {
110
- "supported": true,
111
- "tested": true
112
- },
113
- "linux-x64": {
114
- "supported": true,
115
- "tested": true
116
- },
117
- "linux-arm64": {
118
- "supported": true,
119
- "tested": false
120
- }
121
- },
122
- "api_requirements": {
123
- "required_keys": [
124
- {
125
- "name": "OPTIMIZER_API_KEY",
126
- "format": "sk-opt-*, sk-team-*, sk-dev-*, or sk-local-*",
127
- "description": "Cloud API key from promptoptimizer.xyz/local-license or development key for testing",
128
- "required": true
129
- }
130
- ],
131
- "optional_keys": [
132
- {
133
- "name": "OPTIMIZER_BACKEND_URL",
134
- "description": "Custom backend URL (defaults to production)",
135
- "required": false
136
- },
137
- {
138
- "name": "OPTIMIZER_DEV_MODE",
139
- "description": "Enable development mode (true/false)",
140
- "required": false,
141
- "default": "false"
142
- },
143
- {
144
- "name": "ENABLE_BAYESIAN_OPTIMIZATION",
145
- "description": "Enable Bayesian optimization features (true/false)",
146
- "required": false,
147
- "default": "true"
148
- },
149
- {
150
- "name": "ENABLE_AGUI_FEATURES",
151
- "description": "Enable AG-UI real-time optimization features (true/false)",
152
- "required": false,
153
- "default": "true"
154
- }
155
- ]
156
- },
157
- "features": {
158
- "core": {
159
- "ai_context_detection": true,
160
- "template_management": true,
161
- "optimization_insights": true,
162
- "quota_management": true,
163
- "multi_tier_support": true,
164
- "error_handling": true,
165
- "caching": true,
166
- "fallback_modes": true
167
- },
168
- "advanced": {
169
- "bayesian_optimization": true,
170
- "ag_ui_real_time": true,
171
- "streaming_optimization": true,
172
- "intelligent_routing": true,
173
- "performance_analytics": true,
174
- "ai_aware_rules": true,
175
- "context_aware_templates": true,
176
- "parameter_tuning": true
177
- },
178
- "enterprise": {
179
- "team_collaboration": true,
180
- "advanced_analytics": true,
181
- "custom_models": true,
182
- "priority_support": true,
183
- "sla_guarantees": true,
184
- "dedicated_resources": true
185
- }
186
- },
187
- "backend_alignment": {
188
- "version": "production-v2.3.0",
189
- "api_version": "v1",
190
- "endpoints_aligned": true,
191
- "feature_parity": true,
192
- "bayesian_support": true,
193
- "agui_support": true,
194
- "last_sync": "2026-06-01T00:00:00Z"
195
- },
196
- "release_notes": {
197
- "v3.4.1": {
198
- "major_features": [
199
- "D6 pricing migration: tier names updated to free/pro/enterprise (was free_trial/explorer/creator/innovator)",
200
- "Tier-limit error message simplified to 'Pro tier or higher' matching new backend tier model",
201
- "Mock mode and account status display default to 'free' tier"
202
- ],
203
- "breaking_changes": [],
204
- "migration_guide": "No migration required. Existing API keys and configurations remain valid."
205
- },
206
- "v3.3.0": {
207
- "major_features": [
208
- "New tool: generate_harness_bundle — generate a deployment-ready Agentic Harness ZIP for 9 platforms (claude_code, claude_desktop, cursor, copilot, windsurf, cline, zed, replit, openai_agents)",
209
- "generate_agent_sop now accepts intent_frame parameter (perspective, out_of_scope, success_definition) to sharpen SOP scope and success criteria",
210
- "Explorer+ tier gate enforced server-side for non-default deploy targets",
211
- "callBackendAPI now handles binary (ZIP) responses gracefully — skips JSON parse for non-JSON content types",
212
- "Improved TIER_LIMIT_REACHED error detection with proper error detail stringification"
213
- ],
214
- "breaking_changes": [],
215
- "migration_guide": "No migration required. Both new features are additive and fully optional; existing calls are unaffected."
216
- },
217
- "v3.2.3": {
218
- "major_features": [
219
- "optimize_prompt now accepts intent_frame parameter for Question Method intent framing",
220
- "intent_frame.perspective steers optimization toward a specific angle or thesis",
221
- "intent_frame.out_of_scope excludes topics/approaches from optimization scope",
222
- "intent_frame.success_definition defines what a successful output achieves",
223
- "Any non-null intent_frame field floors routing to HYBRID tier minimum for higher-quality optimization",
224
- "Fixed value_hierarchy passthrough — was sent by client but silently dropped by backend MCP router (now fixed end-to-end)"
225
- ],
226
- "breaking_changes": [],
227
- "migration_guide": "No migration required. intent_frame is fully optional; existing calls are unaffected."
228
- },
229
- "v3.2.2": {
230
- "major_features": [
231
- "optimize_prompt now accepts value_hierarchy parameter for constraint-driven optimization",
232
- "NON_NEGOTIABLE entries force LLM-tier routing and inject hard constraints into system prompt",
233
- "HIGH/MEDIUM/LOW entries add ordered priority directives to optimization context"
234
- ],
235
- "breaking_changes": [],
236
- "migration_guide": "No migration required. value_hierarchy is fully optional; existing calls are unaffected."
237
- },
238
- "v3.0.5": {
239
- "major_features": [
240
- "Updated homepage and support links to promptoptimizer.xyz"
241
- ],
242
- "breaking_changes": [],
243
- "migration_guide": "No migration required. Drop-in replacement for v3.0.4."
244
- },
245
- "v3.0.4": {
246
- "major_features": [
247
- "Bayesian optimization with parameter tuning",
248
- "AG-UI real-time optimization capabilities",
249
- "Enhanced AI context detection with weighted scoring",
250
- "Advanced template search with AI-aware filtering"
251
- ],
252
- "breaking_changes": [],
253
- "migration_guide": "All existing functionality remains compatible. New features are opt-in via environment variables.",
254
- "backend_compatibility": "Fully aligned with FastAPI Backend v2.1.0-bayesian"
255
- }
256
- },
257
- "support": {
258
- "email": "support@promptoptimizer.xyz",
259
- "documentation": "https://promptoptimizer.xyz/docs",
260
- "dashboard": "https://promptoptimizer.xyz/dashboard",
261
- "pricing": "https://promptoptimizer.xyz/pricing"
262
- }
263
- }
1
+ {
2
+ "name": "mcp-prompt-optimizer",
3
+ "version": "3.7.2",
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
+ "main": "index.js",
6
+ "bin": {
7
+ "mcp-prompt-optimizer": "index.js"
8
+ },
9
+ "scripts": {
10
+ "start": "node index.js",
11
+ "check-status": "node lib/check-status.js",
12
+ "validate-key": "node lib/validate-key.js",
13
+ "clear-cache": "node lib/clear-cache.js",
14
+ "diagnose": "node lib/diagnose.js",
15
+ "dev": "cross-env OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-test-key node index.js",
16
+ "dev:mock": "cross-env NODE_ENV=development OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-mock-key node index.js",
17
+ "dev:windows": "set OPTIMIZER_DEV_MODE=true && set OPTIMIZER_API_KEY=sk-dev-test-key && node index.js",
18
+ "dev:unix": "OPTIMIZER_DEV_MODE=true OPTIMIZER_API_KEY=sk-dev-test-key node index.js",
19
+ "health-check": "node -e \"console.log('Package health check passed')\"",
20
+ "reset-cache": "node lib/clear-cache.js && echo 'Cache and health data cleared'",
21
+ "test": "node tests/test-runner.js",
22
+ "test:quick": "node tests/quick-test.js",
23
+ "test:integration": "node tests/integration-test.js",
24
+ "test:comprehensive": "node tests/comprehensive-test.js",
25
+ "test:runner": "node tests/test-runner.js",
26
+ "test:simple": "node tests/simple-test.js",
27
+ "test:contract": "node tests/contract-check.js",
28
+ "pretest": "npm run health-check",
29
+ "prepublishOnly": "npm run test:quick",
30
+ "version": "echo 'Updating version...' && npm run test:quick"
31
+ },
32
+ "dependencies": {
33
+ "@modelcontextprotocol/sdk": "^1.15.1",
34
+ "node-fetch": "^3.0.0"
35
+ },
36
+ "devDependencies": {
37
+ "cross-env": "^7.0.3"
38
+ },
39
+ "engines": {
40
+ "node": ">=16.0.0"
41
+ },
42
+ "os": [
43
+ "win32",
44
+ "darwin",
45
+ "linux"
46
+ ],
47
+ "cpu": [
48
+ "x64",
49
+ "arm64"
50
+ ],
51
+ "keywords": [
52
+ "mcp",
53
+ "mcp-server",
54
+ "prompt",
55
+ "optimization",
56
+ "ai",
57
+ "claude",
58
+ "anthropic",
59
+ "prompt-engineering",
60
+ "llm",
61
+ "cursor",
62
+ "windsurf",
63
+ "cline",
64
+ "context-aware",
65
+ "professional",
66
+ "automation"
67
+ ],
68
+ "author": "Prompt Optimizer Team <support@promptoptimizer.xyz>",
69
+ "license": "Proprietary",
70
+ "repository": {
71
+ "type": "git",
72
+ "url": "git+https://github.com/prompt-optimizer/mcp-prompt-optimizer.git"
73
+ },
74
+ "homepage": "https://promptoptimizer.xyz",
75
+ "bugs": {
76
+ "url": "https://github.com/prompt-optimizer/mcp-prompt-optimizer/issues"
77
+ },
78
+ "files": [
79
+ "index.js",
80
+ "lib/",
81
+ "README.md",
82
+ "CHANGELOG.md",
83
+ "CONTRIBUTING.md",
84
+ "CODE_OF_CONDUCT.md",
85
+ "SECURITY.md",
86
+ "LICENSE"
87
+ ],
88
+ "config": {
89
+ "crossPlatform": true,
90
+ "platforms": [
91
+ "win32-x64",
92
+ "darwin-x64",
93
+ "darwin-arm64",
94
+ "linux-x64",
95
+ "linux-arm64"
96
+ ],
97
+ "securityRequired": true,
98
+ "binaryIntegrity": false,
99
+ "freeTierSupport": false
100
+ },
101
+ "platforms": {
102
+ "win32-x64": {
103
+ "supported": true,
104
+ "tested": true
105
+ },
106
+ "darwin-x64": {
107
+ "supported": true,
108
+ "tested": true
109
+ },
110
+ "darwin-arm64": {
111
+ "supported": true,
112
+ "tested": true
113
+ },
114
+ "linux-x64": {
115
+ "supported": true,
116
+ "tested": true
117
+ },
118
+ "linux-arm64": {
119
+ "supported": true,
120
+ "tested": false
121
+ }
122
+ },
123
+ "api_requirements": {
124
+ "required_keys": [
125
+ {
126
+ "name": "OPTIMIZER_API_KEY",
127
+ "format": "sk-opt-*, sk-team-*, sk-dev-*, or sk-local-*",
128
+ "description": "Cloud API key from promptoptimizer.xyz/local-license or development key for testing",
129
+ "required": true
130
+ }
131
+ ],
132
+ "optional_keys": [
133
+ {
134
+ "name": "OPTIMIZER_BACKEND_URL",
135
+ "description": "Custom backend URL (defaults to production)",
136
+ "required": false
137
+ },
138
+ {
139
+ "name": "OPTIMIZER_DEV_MODE",
140
+ "description": "Enable development mode (true/false)",
141
+ "required": false,
142
+ "default": "false"
143
+ },
144
+ {
145
+ "name": "ENABLE_BAYESIAN_OPTIMIZATION",
146
+ "description": "Enable Bayesian optimization features (true/false)",
147
+ "required": false,
148
+ "default": "true"
149
+ },
150
+ {
151
+ "name": "ENABLE_AGUI_FEATURES",
152
+ "description": "Enable AG-UI real-time optimization features (true/false)",
153
+ "required": false,
154
+ "default": "true"
155
+ }
156
+ ]
157
+ },
158
+ "features": {
159
+ "core": {
160
+ "ai_context_detection": true,
161
+ "template_management": true,
162
+ "optimization_insights": true,
163
+ "quota_management": true,
164
+ "multi_tier_support": true,
165
+ "error_handling": true,
166
+ "caching": true,
167
+ "fallback_modes": true
168
+ },
169
+ "advanced": {
170
+ "bayesian_optimization": true,
171
+ "ag_ui_real_time": true,
172
+ "streaming_optimization": true,
173
+ "intelligent_routing": true,
174
+ "performance_analytics": true,
175
+ "ai_aware_rules": true,
176
+ "context_aware_templates": true,
177
+ "parameter_tuning": true
178
+ },
179
+ "enterprise": {
180
+ "team_collaboration": true,
181
+ "advanced_analytics": true,
182
+ "custom_models": true,
183
+ "priority_support": true,
184
+ "sla_guarantees": true,
185
+ "dedicated_resources": true
186
+ }
187
+ },
188
+ "backend_alignment": {
189
+ "version": "production-v2.3.0",
190
+ "api_version": "v1",
191
+ "endpoints_aligned": true,
192
+ "feature_parity": true,
193
+ "bayesian_support": true,
194
+ "agui_support": true,
195
+ "last_sync": "2026-06-01T00:00:00Z"
196
+ },
197
+ "release_notes": {
198
+ "v3.7.2": {
199
+ "major_features": [
200
+ "MCP server startup logs (banner, status lines, mode indicators, key validation messages) now write to stderr so stdout stays a clean JSON-RPC channel for stdio MCP clients"
201
+ ],
202
+ "breaking_changes": [],
203
+ "migration_guide": "No migration required. Log stream was incorrect on stdout for stdio transports; consumers that relied on parsing startup banners should now read stderr."
204
+ },
205
+ "v3.4.1": {
206
+ "major_features": [
207
+ "D6 pricing migration: tier names updated to free/pro/enterprise (was free_trial/explorer/creator/innovator)",
208
+ "Tier-limit error message simplified to 'Pro tier or higher' matching new backend tier model",
209
+ "Mock mode and account status display default to 'free' tier"
210
+ ],
211
+ "breaking_changes": [],
212
+ "migration_guide": "No migration required. Existing API keys and configurations remain valid."
213
+ },
214
+ "v3.3.0": {
215
+ "major_features": [
216
+ "New tool: generate_harness_bundle — generate a deployment-ready Agentic Harness ZIP for 9 platforms (claude_code, claude_desktop, cursor, copilot, windsurf, cline, zed, replit, openai_agents)",
217
+ "generate_agent_sop now accepts intent_frame parameter (perspective, out_of_scope, success_definition) to sharpen SOP scope and success criteria",
218
+ "Explorer+ tier gate enforced server-side for non-default deploy targets",
219
+ "callBackendAPI now handles binary (ZIP) responses gracefully — skips JSON parse for non-JSON content types",
220
+ "Improved TIER_LIMIT_REACHED error detection with proper error detail stringification"
221
+ ],
222
+ "breaking_changes": [],
223
+ "migration_guide": "No migration required. Both new features are additive and fully optional; existing calls are unaffected."
224
+ },
225
+ "v3.2.3": {
226
+ "major_features": [
227
+ "optimize_prompt now accepts intent_frame parameter for Question Method intent framing",
228
+ "intent_frame.perspective steers optimization toward a specific angle or thesis",
229
+ "intent_frame.out_of_scope excludes topics/approaches from optimization scope",
230
+ "intent_frame.success_definition defines what a successful output achieves",
231
+ "Any non-null intent_frame field floors routing to HYBRID tier minimum for higher-quality optimization",
232
+ "Fixed value_hierarchy passthrough was sent by client but silently dropped by backend MCP router (now fixed end-to-end)"
233
+ ],
234
+ "breaking_changes": [],
235
+ "migration_guide": "No migration required. intent_frame is fully optional; existing calls are unaffected."
236
+ },
237
+ "v3.2.2": {
238
+ "major_features": [
239
+ "optimize_prompt now accepts value_hierarchy parameter for constraint-driven optimization",
240
+ "NON_NEGOTIABLE entries force LLM-tier routing and inject hard constraints into system prompt",
241
+ "HIGH/MEDIUM/LOW entries add ordered priority directives to optimization context"
242
+ ],
243
+ "breaking_changes": [],
244
+ "migration_guide": "No migration required. value_hierarchy is fully optional; existing calls are unaffected."
245
+ },
246
+ "v3.0.5": {
247
+ "major_features": [
248
+ "Updated homepage and support links to promptoptimizer.xyz"
249
+ ],
250
+ "breaking_changes": [],
251
+ "migration_guide": "No migration required. Drop-in replacement for v3.0.4."
252
+ },
253
+ "v3.0.4": {
254
+ "major_features": [
255
+ "Bayesian optimization with parameter tuning",
256
+ "AG-UI real-time optimization capabilities",
257
+ "Enhanced AI context detection with weighted scoring",
258
+ "Advanced template search with AI-aware filtering"
259
+ ],
260
+ "breaking_changes": [],
261
+ "migration_guide": "All existing functionality remains compatible. New features are opt-in via environment variables.",
262
+ "backend_compatibility": "Fully aligned with FastAPI Backend v2.1.0-bayesian"
263
+ }
264
+ },
265
+ "support": {
266
+ "email": "support@promptoptimizer.xyz",
267
+ "documentation": "https://promptoptimizer.xyz/docs",
268
+ "dashboard": "https://promptoptimizer.xyz/dashboard",
269
+ "pricing": "https://promptoptimizer.xyz/pricing"
270
+ }
271
+ }