Skip to content

Conversation

Sean-Sekora
Copy link

Key Features Added

1. Enhanced Schema Support

  • Add default property to PromptArgumentSchema for explicit default values
  • Support for parameterless prompt execution with sensible defaults

2. Improved Parameter Handling

  • MCPServer now passes empty object when arguments are undefined
  • BasePrompt gracefully handles missing arguments with automatic defaults
  • Automatic type-based defaults: string="", number=0, boolean=false, array=[], object={}

3. Smart Validation Logic

  • Fields with explicit defaults are marked as not required in prompt definitions
  • Optional parameters (required: false) bypass validation requirements
  • Maintains full backward compatibility with existing prompts

4. Comprehensive Testing

  • 12 test cases covering all parameterless execution scenarios
  • Tests for explicit defaults, automatic defaults, and optional parameters
  • Error handling and edge case validation

5. Rich Documentation

  • Complete Prompts section in README with examples and best practices
  • Migration guide for existing prompts
  • Usage patterns for different parameter configurations

Breaking Changes

None - fully backward compatible

Usage Examples

Before: /my-prompt (MCP) {"message": ""} (required empty object)
After: /my-prompt (MCP) (truly parameterless execution)

This enables natural prompt usage like /gitlab:commit (MCP) without requiring empty JSON objects.

🤖 Generated with Claude Code

Sean-Sekora and others added 4 commits October 6, 2025 23:35
…to-generated values

## Key Features Added

### 1. Enhanced Schema Support
- Add `default` property to PromptArgumentSchema for explicit default values
- Support for parameterless prompt execution with sensible defaults

### 2. Improved Parameter Handling
- MCPServer now passes empty object when arguments are undefined
- BasePrompt gracefully handles missing arguments with automatic defaults
- Automatic type-based defaults: string="", number=0, boolean=false, array=[], object={}

### 3. Smart Validation Logic
- Fields with explicit defaults are marked as not required in prompt definitions
- Optional parameters (required: false) bypass validation requirements
- Maintains full backward compatibility with existing prompts

### 4. Comprehensive Testing
- 12 test cases covering all parameterless execution scenarios
- Tests for explicit defaults, automatic defaults, and optional parameters
- Error handling and edge case validation

### 5. Rich Documentation
- Complete Prompts section in README with examples and best practices
- Migration guide for existing prompts
- Usage patterns for different parameter configurations

## Breaking Changes
None - fully backward compatible

## Usage Examples

**Before**: `/my-prompt (MCP) {"message": ""}` (required empty object)
**After**: `/my-prompt (MCP)` (truly parameterless execution)

This enables natural prompt usage like `/gitlab:commit (MCP)` without requiring empty JSON objects.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Update package name to @sekora/mcp-framework for scoped npm publishing
- Add publish.yml workflow that triggers on GitHub releases and manual dispatch
- Include comprehensive CI steps: linting, testing, building before publishing
- Support manual version updates and automatic npm publishing with public access
- Enhance release.yml workflow with outputs for better integration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
…--components--mcp-framework

chore: release 0.2.16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant