{"_id":"@abhi1381/promptpilot-mcp","_rev":"6-3ce80eed3253f4719cc319d6122bbd72","name":"@abhi1381/promptpilot-mcp","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.0":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.0","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","_id":"@abhi1381/promptpilot-mcp@1.0.0","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"bin":{"promptpilot-mcp":"dist/index.js"},"dist":{"shasum":"1a4648b8dcf0171f8d074d3360cd33a37a3dfae2","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.0.tgz","fileCount":17,"integrity":"sha512-ncLcFRhv5akzV4pkTBle9TYjXAU9ninKgeegDjNdMGRmqP9ykFNIo9DbzRKRvyEu5Z+AIdms2pzwYYpHJ1RscQ==","signatures":[{"sig":"MEYCIQDDyWFZC6rgWA9YE2AsFgNyHkHLOtlvuHLiZpVPrmCwKAIhAImXpOVOKmod0tfNX18L49MiAHkUzOvNFwPPaYPSxg09","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18571},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"b43e3e22a1a4830a353e183c44a30f7e3b50e8d4","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"_npmVersion":"10.9.2","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promptpilot-mcp_1.0.0_1773656103698_0.44587822165883395","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.1","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","_id":"@abhi1381/promptpilot-mcp@1.0.1","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"bin":{"promptpilot-mcp":"dist/index.js"},"dist":{"shasum":"32c58eb803031b926f8c9cd16fb54929aaf26b8a","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.1.tgz","fileCount":17,"integrity":"sha512-TrnhXV1ZUiC7GOJEsDG/cHeqK/wGd57nMlkXBfqQGru8qUqRFgSGi2FA4kJSNWid4OQtz7KmRXtCuD4Xw2le4Q==","signatures":[{"sig":"MEUCIF+qtkBBJvTscQwfC3TPwMhxNMGr3+0jXa1q4GrsAysJAiEA3UPVNk15+Bvk4hhq9EebK90MJru4EkuHXEscXnaUzIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18575},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"284f6afc8cfdae7efe0a3829e24a269ac1bbe68f","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"_npmVersion":"10.9.2","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promptpilot-mcp_1.0.1_1773685458261_0.6799637329761565","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.2","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","_id":"@abhi1381/promptpilot-mcp@1.0.2","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"bin":{"promptpilot-mcp":"dist/index.js"},"dist":{"shasum":"36615e3dd73620fb98bd4b8b275e57d3fed8deac","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.2.tgz","fileCount":17,"integrity":"sha512-4lDwbDZpQSf2EIXO6xMuhwX9/19391EX1oWZsi8LuozEGps7Raw6kSlxWdeQ/zI5lS2G0y3bxeSVR+SWRPOHAQ==","signatures":[{"sig":"MEQCICeBJvMoPO38zzkBymDAl5CCAXwpySHYm6pjW2BHtBviAiATUp/2Bhx93dhVRnMWgJbA2ZTZDaIa0YHUjsYTZm8uHQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19642},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"0272eaf63a3bc7c1a7733a4bbdcd2c8dbf65ccf9","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"_npmVersion":"10.9.2","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promptpilot-mcp_1.0.2_1773686609232_0.4799770460485995","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.3","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","_id":"@abhi1381/promptpilot-mcp@1.0.3","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"bin":{"promptpilot-mcp":"dist/index.js"},"dist":{"shasum":"fd76cbb212452f0b386a63e54b874fc523d266ca","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.3.tgz","fileCount":17,"integrity":"sha512-gCDgGNWjv6uq+Nho2+v+FNomJCCYyTUoQmtFVTwWbuC/cfwvohpYv19/irFU0nEkhTx7RrdaY0pk3H8tiDY41A==","signatures":[{"sig":"MEQCIBaRYwhZfS3f5kNIArI/yHRlbhGbLslEArDBMBELV2IdAiBjn8LbvyUrwdK/cXkrtMtIsDBFiuB42336BoPHgC5dSA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21376},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"0272eaf63a3bc7c1a7733a4bbdcd2c8dbf65ccf9","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepublishOnly":"npm run build"},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"_npmVersion":"10.9.2","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promptpilot-mcp_1.0.3_1773686808904_0.8173069475004313","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.4","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","_id":"@abhi1381/promptpilot-mcp@1.0.4","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"bin":{"promptpilot-mcp":"dist/index.js"},"dist":{"shasum":"bfddb7c12bcd5b2d0cb31f23484ff69ac459f487","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.4.tgz","fileCount":17,"integrity":"sha512-HDW5l6/e4iu1RqnH1VVPG1wGzkSOKc7ME/alEqvkhj1GqN5jNf3mfSUFzteMFzBdxIFkXSS9Kgl9Ir66fbW7mQ==","signatures":[{"sig":"MEYCIQDUZX7RFOH87w3S+UNMCS9dCJ/KPB8/KaU5w9aVc8+SgAIhALGQ6x6nJpNPkg69e9uLbz0ClQ+XU5rpMrwq70sQRGs5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21591},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"38b18e44de2432af926db6c40634f9cd1205eaa5","scripts":{"dev":"tsx watch src/index.ts","build":"tsc","clean":"rm -rf dist","start":"node dist/index.js","prepublishOnly":"node scripts/sync-version.js && npm run build"},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"_npmVersion":"10.9.2","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","directories":{},"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.0","@modelcontextprotocol/sdk":"^1.27.1"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.2","typescript":"^5.7.2","@types/node":"^22.10.0"},"_npmOperationalInternal":{"tmp":"tmp/promptpilot-mcp_1.0.4_1773687821235_0.017536468899427504","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@abhi1381/promptpilot-mcp","version":"1.0.5","description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","type":"module","main":"dist/index.js","bin":{"promptpilot-mcp":"dist/index.js"},"scripts":{"build":"tsc","dev":"tsx watch src/index.ts","start":"node dist/index.js","clean":"rm -rf dist","prepublishOnly":"node scripts/sync-version.js && npm run build"},"engines":{"node":">=18"},"keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"license":"MIT","dependencies":{"@modelcontextprotocol/sdk":"^1.27.1","zod":"^3.25.0"},"devDependencies":{"@types/node":"^22.10.0","tsx":"^4.19.2","typescript":"^5.7.2"},"gitHead":"e0cf2ee011545293b187905f0c00a1d79509fe58","types":"./dist/index.d.ts","_id":"@abhi1381/promptpilot-mcp@1.0.5","_nodeVersion":"26.0.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-wBC1MRmMx6WDl/y5o7HVhDJ7ZVzNeMOkr8rGOAts3y/3velqUG6+rNGrSNBFZ5VdPPzHSTUWMQtPvD7Jih24wA==","shasum":"e96e3a3f6fa218b737a3978325c823aec4729f5a","tarball":"https://registry.npmjs.org/@abhi1381/promptpilot-mcp/-/promptpilot-mcp-1.0.5.tgz","fileCount":17,"unpackedSize":24669,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCAb+UBq2OM+BXBbxy3ER2xeMhDt3XLVdkGTQBTr4vxOQIgWR0IlC/5k/u5F2kIV5l1shs/MrUIK8P/SDkc4iSgUKk="}]},"_npmUser":{"name":"abhi1381","email":"abhilnm011@gmail.com"},"directories":{},"maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/promptpilot-mcp_1.0.5_1783502299778_0.6802525198172937"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-16T10:15:03.616Z","modified":"2026-07-08T09:18:20.034Z","1.0.0":"2026-03-16T10:15:03.834Z","1.0.1":"2026-03-16T18:24:18.416Z","1.0.2":"2026-03-16T18:43:29.461Z","1.0.3":"2026-03-16T18:46:49.094Z","1.0.4":"2026-03-16T19:03:41.398Z","1.0.5":"2026-07-08T09:18:19.924Z"},"license":"MIT","keywords":["mcp","promptpilot","prompt-optimization","ai","claude-code","cursor"],"description":"MCP server for PromptPilot — prompt optimization for Claude Code, Cursor, Codex, and more","maintainers":[{"name":"abhi1381","email":"abhilnm011@gmail.com"}],"readme":"# promptpilot-mcp\n\nMCP server for [PromptPilot](https://promptpilotai.in) — AI-powered prompt optimization for Claude Code, Cursor, Codex, Windsurf, VS Code, and any MCP-compatible client.\n\n## Quick Setup\n\n### 1. Get an API key\n\nGo to [promptpilotai.in/settings](https://promptpilotai.in/settings) → Developers → Generate API Key.\n\n### 2. Add to your MCP config\n\n```json\n{\n  \"mcpServers\": {\n    \"promptpilot\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@abhi1381/promptpilot-mcp\"],\n      \"env\": {\n        \"PROMPTPILOT_API_KEY\": \"pp_live_your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### 3. Config file locations\n\n| Platform | Config file |\n|----------|-------------|\n| Claude Code | `~/.claude.json` (user scope) or `.mcp.json` at the project root |\n| Cursor | `.cursor/mcp.json` |\n| VS Code | `.vscode/mcp.json` |\n| Windsurf | `~/.codeium/windsurf/mcp_config.json` |\n| Codex | `~/.codex/config.toml` (TOML `[mcp_servers.promptpilot]` table — the JSON snippet above doesn't apply verbatim) |\n\n### 4. Restart your MCP client\n\nThe server validates your API key on startup and connects via stdio transport.\n\n## Usage Examples\n\n**Optimize a coding prompt:**\n```\noptimize this prompt for coding: \"write a function that sorts users by activity score\"\n```\n\n**Optimize a writing prompt:**\n```\noptimize this prompt: \"write a blog post about remote work productivity\"\n```\n\n**Optimize an image generation prompt:**\n```\noptimize this image prompt: \"a cat sitting on a rooftop at sunset, cinematic lighting\"\n```\n\n**Optimize a general prompt:**\n```\noptimize this: \"explain how database indexing works\"\n```\n\n**Check your plan:**\n```\nwhat's my promptpilot subscription tier?\n```\n\n## Tools\n\n### `promptpilot_optimize`\n\nOptimize a prompt, optionally tailored to a target platform.\n\n**Input:**\n- `prompt` (string, required) — The raw prompt to optimize (1–10,000 chars)\n- `platform` (string, optional) — `general`, `coding`, `writing`, `research`, `image_gen`; treated as general text when omitted\n\n**Output:**\n- `optimized` — Enhanced prompt text\n- `score` — Quality score 0–100\n- `improvements` — List of what was improved\n- `platform_detected` — Echoes the platform you passed, or `auto` when omitted\n\nUsage is governed by your subscription tier's hourly/weekly action limits; hitting a limit returns an error with the reset time.\n\n### `promptpilot_credits`\n\nCheck your subscription tier. Credit-based billing has been replaced by per-tier action limits, so the credit fields are deprecated.\n\n**Output:**\n- `subscription_tier` — `free`, `starter`, `pro`, `max`\n- `credits_remaining` — Deprecated; always `0` (a zero balance does **not** mean optimization is unavailable)\n- `monthly_credits` — Legacy monthly allocation for the tier, not a spendable balance\n- `deprecation_notice` — Explains the move to action limits\n\n## Environment Variables\n\n| Variable | Required | Description |\n|----------|----------|-------------|\n| `PROMPTPILOT_API_KEY` | Yes | Your API key (starts with `pp_live_`) |\n| `PROMPTPILOT_API_URL` | No | Override API base URL (default: `https://www.promptpilotai.in/api/mcp`) |\n\n## Troubleshooting\n\n**\"PROMPTPILOT_API_KEY environment variable is required\"**\nSet the `PROMPTPILOT_API_KEY` in your MCP config's `env` block.\n\n**\"Invalid API key format\"**\nKeys start with `pp_live_`. Generate a new one at [promptpilotai.in/settings](https://promptpilotai.in/settings).\n\n**\"API key validation failed\"**\nThe key may have been revoked. Generate a new one from Settings → Developers.\n\n**\"You've hit your hourly/weekly text limit\"**\nUsage is limited per subscription tier via hourly and weekly sliding windows. The error includes the reset time — wait for it, or upgrade at [promptpilotai.in/pricing](https://promptpilotai.in/pricing) for higher limits.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}