danielsobrado/ainovelprompter
Create the prompts you need to write your Novel using AI
AI Novel Prompter
AI Novel Prompter is a comprehensive writing tool designed to help novelists create consistent, well-structured prompts for AI writing assistants while managing story elements and improving prose through AI-powered assistance.
๐ Key Features
๐ฅ๏ธ Desktop Application (Wails)
- Story Element Management: Characters, locations, codex entries, rules, and sample chapters
- Intelligent Prompt Generation: Optimized for ChatGPT and Claude with real-time preview
- Prose Improvement Engine: Iterative text refinement with customizable AI prompts
- Local Data Storage: All data saved locally with versioned storage system
๐ MCP Server Integration
- Claude Desktop Integration: Direct access to your story data through Claude Desktop
- Real-time Character/Location Access: Query and manage entities directly in Claude conversations
- Configurable Logging: Debug character loading issues with detailed logging
- Robust Data Validation: Prevents creation of incomplete or empty entities
๐ฆ Installation & Setup
Desktop Application
# Clone the repository
git clone https://github.com/danielsobrado/ainovelprompter.git
cd ainovelprompter
# Install frontend dependencies
cd frontend
npm install
cd ..
# Development mode
wails dev
# Build for production
wails buildMCP Server for Claude Desktop
- Build the MCP Server:
cd mcp
go build -o ainovelprompter-mcp.exe ..\cmd\mcp-server\main.go- Configure Claude Desktop (edit
claude_desktop_config.json):
{
"mcpServers": {
"ai-novel-prompter": {
"command": "C:\\path\\to\\ainovelprompter-mcp.exe",
"args": [
"--data-dir", "C:\\path\\to\\your\\story\\data",
"--log-level", "INFO"
],
"env": {}
}
}
}- Restart Claude Desktop to load the MCP server
โ๏ธ Configuration
MCP Server Options
| Argument | Short | Description | Default |
|---|---|---|---|
--data-dir |
-d |
Data directory path | ~/.ai-novel-prompter |
--log-level |
-l |
Logging verbosity | INFO |
--help |
-h |
Show help message | - |
Log Levels
- DEBUG: Detailed operation logging (for troubleshooting)
- INFO: Standard operational logging (recommended)
- WARN: Warnings and unexpected conditions only
- ERROR: Errors only
Example Configurations
Development/Troubleshooting:
"args": ["--data-dir", "./test-data", "--log-level", "DEBUG"]Production:
"args": ["--data-dir", "/path/to/story/data", "--log-level", "INFO"]๐ก๏ธ Data Validation & Quality
Enhanced Validation System
- Required Fields: All entities must have non-empty names and descriptions
- Length Constraints: Names (1-200 chars), Descriptions (1-2000 chars)
- Automatic Sanitization: Whitespace trimming and cleanup
- Error Prevention: Cannot create incomplete entities
Validation Rules
- โ Character names and descriptions required
- โ Location names and descriptions required
- โ Codex entry titles and content required
- โ Automatic whitespace cleanup
- โ Empty or whitespace-only entities rejected
๐ฏ Usage
Desktop Application
-
Prompt Generation Tab:
- Define task types (e.g., "Write Next Chapter", "Revise Chapter")
- Manage story elements (characters, locations, rules, codex)
- Generate AI-optimized prompts for ChatGPT or Claude
- Real-time token counting and preview
-
Prose Improvement Tab:
Claude Desktop Integration
Once configured, you can directly interact with your story data in Claude conversations:
# Get all characters
Show me my characters
# Search for specific characters
Find characters related to "magic"
# Get locations
What locations do I have in my story?
# Search locations
Show me locations in the forest
๐ง Technical Stack
Frontend
- React with TypeScript
- Tailwind CSS for styling
- shadcn/ui components
- Wails framework for desktop
Backend
- Go with Wails bindings
- MCP (Model Context Protocol) server
- Versioned JSON storage system
- Comprehensive validation layer
MCP Server
- JSON-RPC 2.0 protocol
- Stdio communication with Claude Desktop
- Configurable logging system
- Real-time data access
๐ Data Storage
Storage Format
~/.ai-novel-prompter/
โโโ characters/
โ โโโ [character-id]/
โ โโโ 2025-07-22T10-30-15.000+04-00.json
โ โโโ 2025-07-22T11-45-20.000+04-00.json
โโโ locations/
โโโ codex/
โโโ rules/
โโโ sample-chapters/
โโโ task-types/
โโโ prose-prompts/
Features
- Version History: Complete audit trail for all changes
- Data Integrity: Individual files reduce corruption risk
- Scalability: Better performance with large datasets
- MCP Compatibility: Direct access through Claude Desktop
๐ Troubleshooting
Character Loading Issues
- Enable Debug Logging:
"args": ["--log-level", "DEBUG"]-
Check Claude Desktop Logs for detailed error information
-
Common Issues:
- Invalid timestamps in filenames
- Corrupted JSON files
- Permission problems
- Missing data directories
MCP Server Issues
- Verify Server Binary: Ensure
ainovelprompter-mcp.exeis built with latest code - Check Configuration: Verify paths and arguments in
claude_desktop_config.json - Restart Claude Desktop: Required after configuration changes
- Review Logs: Look for startup errors and connection issues
๐ Recent Improvements
Version 0.1.0 Features
- โ MCP Server Integration: Direct Claude Desktop access
- โ Enhanced Logging: Configurable debug levels with performance tracking
- โ Data Validation: Prevents incomplete entity creation
- โ Improved Character Loading: Robust timestamp parsing and error handling
- โ Command Line Interface: Flexible configuration options
Validation Enhancements
- โ Frontend Validation: Immediate feedback with specific error messages
- โ Backend Validation: Server-side validation with detailed errors
- โ Automatic Sanitization: Whitespace trimming and cleanup
- โ Length Constraints: Proper limits for names and descriptions
๐ค Contributing
Contributions are welcome! Please feel free to:
- Open issues for bugs or feature requests
- Submit pull requests for improvements
- Share feedback and suggestions
๐ License
This project is licensed under the Attribution-NonCommercial-NoDerivatives (BY-NC-ND) license.
See: https://creativecommons.org/licenses/by-nc-nd/4.0/deed.en
๐ Links
- Repository: https://github.com/danielsobrado/ainovelprompter
- Wails Framework: https://wails.io/
- shadcn/ui Components: https://ui.shadcn.com/
- Model Context Protocol: https://modelcontextprotocol.io/
Last Updated: July 2025 - MCP Integration & Validation Release




