v2.1: Add Testing Framework, Role System, MCP Server & Package Publishing #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This is a major release (v2.1) that transforms
prmpfrom a simple package manager into a comprehensive prompt orchestration platform. This PR adds testing capabilities, role-based templates, runtime integration via MCP, and a complete package publishing ecosystem.What's New
🧪 Prompt Testing Framework
Test your prompts with actual AI tools to validate effectiveness before deployment.
New Commands:
prmp test <path> --with <tool>- Test prompts with cursor, claude, aider, windsurf, or continueprmp test list-tools- List available AI tools for testingprmp test list-roles- Show available roles with test scenariosFeatures:
Example:
🎭 Role-Based Template System
10+ specialized roles for different development tasks, inspired by Zen MCP.
Available Roles:
Features:
Example:
🌐 MCP Server (Model Context Protocol)
Runtime prompt discovery and integration for AI tools.
New Commands:
prmp mcp start- Start MCP server on port 3000prmp mcp info- Get server informationprmp mcp stop- Stop the MCP serverMCP Capabilities:
MCP Endpoints:
POST /mcp- JSON-RPC 2.0 endpointGET /health- Health checkGET /info- Server infoGET /prompts- List all promptsGET /prompts/:id- Get specific promptGET /search?q=<query>- Search promptsGET /roles- List available rolesExample:
📦 Package Publishing & Registry
Publish and share prompts with the community.
New Commands:
prmp publish- Publish package to registryprmp install <package>- Install from registryprmp search <query>- Search registry for packagesprmp registry info- Get registry informationFeatures:
Example:
🔄 Format Conversion
Convert prompts between different AI tool formats.
New Command:
prmp convert <path> --from <type> --to <type>- Convert between formatsprmp convert list-compatible <type>- List compatible formatsFeatures:
Example:
Technical Changes
New Core Modules
src/core/cli-bridge.ts- Bridge to execute commands with AI tool CLIssrc/core/converter.ts- Package format conversion enginesrc/core/filesystem.ts- Enhanced filesystem utilitiessrc/core/role-scenarios.ts- 717 lines of role-specific test scenariossrc/core/roles.ts- Role definitions and managementsrc/core/templates.ts- Enhanced template system with role supportsrc/core/test-runner.ts- Test execution and reportingsrc/core/validator.ts- Enhanced package validationNew Commands
src/commands/convert.ts- Format conversionsrc/commands/create.ts- Enhanced with role templatessrc/commands/install.ts- Registry installationsrc/commands/lint.ts- Validation and lintingsrc/commands/mcp.ts- MCP server managementsrc/commands/publish.ts- Package publishingsrc/commands/registry.ts- Registry operationssrc/commands/search.ts- Package searchsrc/commands/test.ts- Prompt testingMCP Implementation
src/mcp/server.ts- Full MCP server with JSON-RPC 2.0src/mcp/types.ts- MCP type definitionsEnhanced Functionality
src/commands/add.ts- Multi-tool installation supportsrc/types.ts- Extended type definitionssrc/index.ts- Integrated all new commandspackage.json- Added express, cors for MCP serverDocumentation
README.md- Complete rewrite with all v2.1 featuresBreaking Changes
None! This is a backward-compatible release. All existing functionality remains intact.
Testing
The PR includes:
To test:
Migration Guide
No migration needed! New features are opt-in:
prmp addas beforeprmp test <path> --with <tool>prmp create --role <role>prmp mcp startprmp publishFiles Changed
Statistics:
What's Next
This lays the foundation for:
Generated with prmp v2.1 - The Universal Prompt Orchestration Platform