Sponsored by Deepsite.site

Promptstudio

Created By
BodieCoding7 months ago
PromptStudio - An MCP server and Application for managing AI prompts with collections, variables, execution history, and import/export capabilities.
Content

PromptStudio Logo

Professional AI Prompt Management - Organize, test, and manage your AI prompts with ease.

Prompt Studio is a clean, modern web application that helps you organize your AI prompts into collections, define variables for dynamic content, and test prompts with different values - just like professional API testing tools do for web services.

✨ Features

  • 📁 Collections: Organize prompts into logical groups
  • ⚡ Dynamic Variables: Use {{variable}} syntax for reusable prompts
  • 🧪 Test & Execute: Run prompts with different variable values
  • 📊 Execution History: Track when and how prompts were used
  • 🎨 Modern UI: Clean, professional interface
  • 🔗 Variable Auto-Detection: Automatically extracts variables from prompt content
  • 📋 Variable Collections: Batch execute prompts with CSV data sets - like data-driven testing in professional API tools
  • 📥 CSV Templates: Download properly formatted CSV templates for your prompt variables
  • 🚀 Batch Processing: Execute prompts against multiple variable sets simultaneously
  • 📤 Results Export: Export comprehensive batch execution results to CSV
  • 🤖 MCP Integration: Model Context Protocol server for AI agent integration (GitHub Copilot, Claude Desktop, etc.)
  • 🔌 API Access: RESTful API endpoints for programmatic access to all functionality

🏗️ Architecture

Built with Clean Architecture principles:

PromptStudio/
├── Domain/              # Core business entities
│   ├── Collection.cs
│   ├── PromptTemplate.cs
│   ├── PromptVariable.cs
│   ├── PromptExecution.cs
│   └── VariableCollection.cs
├── Services/            # Business logic
│   └── PromptService.cs
├── Data/                # Entity Framework
│   └── PromptStudioDbContext.cs
└── Pages/               # Razor Pages UI
    ├── Collections/
    ├── Prompts/
    └── VariableCollections/

🚀 Quick Start

Prerequisites

Setup with Docker SQL Server

  1. Start SQL Server in Docker:

    docker pull mcr.microsoft.com/mssql/server:2019-latest
    docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=YourPassword123!' -p 1433:1433 --name sqlserver -d mcr.microsoft.com/mssql/server:2019-latest
    
  2. Clone and Run:

    git clone <your-repo>
    cd PromptStudio
    dotnet run
    
  3. Open Browser: Navigate to http://localhost:5131

🤖 MCP Server Setup (GitHub Copilot Integration)

PromptStudio includes a Model Context Protocol (MCP) server that enables AI agents like GitHub Copilot to access and manage your prompts programmatically.

Prerequisites for MCP Server

  • Node.js 18+ (for MCP server)
  • PromptStudio application running (see setup above)

Install and Run MCP Server

  1. Navigate to MCP server directory:

    cd mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Build the TypeScript code:

    npm run build
    
  4. Start the MCP server:

    npm start
    

    Or for development with auto-reload:

    npm run dev
    

Configure with GitHub Copilot

To use the MCP server with GitHub Copilot, add this configuration to your VS Code settings:

  1. Open VS Code Settings (JSON)
  2. Add the MCP server configuration:
{
  "github.copilot.chat.experimental.codeGeneration.instructions": [
    {
      "text": "You have access to PromptStudio via MCP server for professional prompt management."
    }
  ],
  "mcp.servers": {
    "promptstudio": {
      "command": "node",
      "args": ["path/to/your/mcp-server/dist/index.js"],
      "env": {
        "PROMPTSTUDIO_BASE_URL": "http://localhost:5131"
      }
    }
  }
}

Configure with Claude Desktop

Add to your Claude Desktop MCP configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "promptstudio": {
      "command": "node",
      "args": ["path/to/your/mcp-server/dist/index.js"],
      "env": {
        "PROMPTSTUDIO_BASE_URL": "http://localhost:5131"
      }
    }
  }
}

MCP Tools Available

The MCP server provides these tools for AI agents:

  • csv_template_generate - Generate CSV templates for prompt variables
  • variable_collection_create_from_csv - Create variable collections from CSV data
  • variable_collections_list - List variable collections for prompts
  • prompt_execute - Execute prompts with variables
  • batch_execute - Batch execute prompts with variable collections

Example MCP Usage

Once configured, you can ask GitHub Copilot or Claude:

"Generate a CSV template for prompt ID 1 in PromptStudio"

"Create a variable collection from this CSV data for my code review prompt"

"List all variable collections for prompt template 2"

The AI agent will use the MCP server to interact with your PromptStudio instance automatically.

Troubleshooting MCP Setup

  1. Ensure PromptStudio is running on http://localhost:5131
  2. Check Node.js version: node --version (must be 18+)
  3. Verify MCP server build: Check dist/index.js exists after npm run build
  4. Test API endpoints: Visit http://localhost:5131/api/mcp/prompts in browser
  5. Check logs: MCP server logs will show connection status and errors

First Steps

  1. Create a Collection - Like a project folder for related prompts
  2. Add Prompts - Write prompts with {{variables}} for dynamic content
  3. Execute & Test - Run prompts with different variable values
  4. Batch Processing - Create Variable Collections for testing multiple scenarios
  5. Download Templates - Get CSV templates with your prompt variables
  6. Upload Data Sets - Fill CSV with multiple test scenarios and upload
  7. Batch Execute - Run prompts against all variable sets simultaneously
  8. Export Results - Download comprehensive results for analysis

📝 Example Prompts

Code Review

Please review the following {{language}} code for {{focus_area}}:

```{{language}}
{{code}}

Focus on:

  • Code quality
  • Performance
  • Security
  • Best practices

### Content Writing

Write a {{tone}} {{content_type}} about {{topic}} for {{audience}}.

Requirements:

  • Length: {{length}}
  • Include: {{key_points}}
  • Avoid: {{avoid_topics}}

### Batch Testing with Variable Collections

Create a CSV file to test multiple scenarios at once:

**CSV Template** (auto-generated from your prompt):
```csv
language,code
javascript,"function greet(name) { return 'Hello ' + name; }"
python,"def greet(name): return f'Hello {name}'"
java,"public class Greeting { public static String greet(String name) { return ""Hello "" + name; } }"
typescript,"function greet(name: string): string { return `Hello ${name}`; }"

Workflow:

  1. Download CSV Template → Get properly formatted headers
  2. Fill with Data → Add multiple test scenarios in Excel/editor
  3. Upload & Execute → Batch process all variable sets
  4. Export Results → Download comprehensive results with resolved prompts

📸 Screenshots

Main Dashboard

PromptStudio Dashboard Clean, modern dashboard showing collections overview with prompt counts and recent activity

Creating New Prompts

New Prompt Creation Intuitive prompt creation interface with variable auto-detection and syntax highlighting

Prompt Execution

Prompt Execution Execute prompts with variable substitution and see resolved output in real-time

Variable Collections Management

Variable Collections Manage multiple variable sets for batch testing and data-driven prompt execution

Batch Variable Collection

Batch Processing Advanced batch processing interface for executing prompts against multiple variable collections simultaneously

CSV Import for Variable Collections

CSV Import Import CSV data to create variable collections - Excel/CSV workflow integration for enterprise-scale testing

MCP Integration with AI Assistants

MCP Tools Model Context Protocol integration enables AI assistants like GitHub Copilot and Claude Desktop to access PromptStudio functionality through natural language commands

🔥 Variable Collections - Batch Processing Power

Transform single prompt testing into enterprise-scale batch processing!

Key Benefits

  • 10x Faster Testing - Process hundreds of scenarios vs. manual one-by-one execution
  • Systematic Quality Assurance - Ensure prompts work across diverse scenarios
  • Data-Driven Insights - Export results for analysis and optimization
  • Excel/CSV Integration - Use familiar tools to manage test data

How It Works

  1. Create a Prompt with variables like {{language}} and {{code}}

  2. Download CSV Template - Auto-generated with correct headers:

    language,code
    
  3. Fill with Test Data in Excel or any CSV editor:

    language,code
    javascript,"function hello() { console.log('Hello World'); }"
    python,"def hello(): print('Hello World')"
    java,"public class Hello { public static void main(String[] args) { System.out.println(""Hello World""); } }"
    
  4. Upload & Execute - Process all rows automatically

  5. Export Results - Get comprehensive CSV with:

    • Original variables for each test case
    • Resolved prompts with variables substituted
    • Execution metadata and timestamps
    • Success/failure status for each scenario

Perfect For

  • A/B Testing - Compare prompt variations across multiple inputs
  • Quality Assurance - Test prompts against edge cases and diverse scenarios
  • Data Processing - Batch process large datasets through AI workflows
  • Performance Testing - Validate prompt performance at scale

🎯 Use Cases

  • Development Teams: Standardize code review prompts, batch test across multiple codebases
  • Content Creators: Template-driven content generation with A/B testing scenarios
  • Support Teams: Consistent customer response templates with variable customer data
  • Researchers: Structured data analysis prompts with batch data processing
  • Educators: Reusable teaching and assessment prompts with student cohort testing
  • QA Teams: Systematic prompt testing across diverse scenarios and edge cases
  • Data Scientists: Batch process datasets through AI models with variable parameters

🛠️ Technology Stack

  • Backend: ASP.NET Core 8, Entity Framework Core
  • Frontend: Razor Pages, Bootstrap 5, Bootstrap Icons
  • Database: SQL Server
  • Architecture: Clean Architecture, Repository Pattern

🔧 Configuration

Update appsettings.json with your database connection:

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=localhost,1433;Database=PromptStudio;User Id=sa;Password=YourPassword123!;TrustServerCertificate=true;"
  }
}

📊 Database Schema

Collections (id, name, description, created_at, updated_at)
├── PromptTemplates (id, collection_id, name, description, content, created_at, updated_at)
    ├── PromptVariables (id, template_id, name, description, default_value, type, created_at)
    ├── VariableCollections (id, template_id, name, description, variable_sets_json, created_at, updated_at)
    └── PromptExecutions (id, template_id, variable_collection_id, resolved_prompt, variable_values, executed_at, ...)

🚧 Roadmap

  • Variable Collections - Batch execute prompts with CSV data sets ✅
  • CSV Templates - Auto-generate properly formatted CSV templates ✅
  • Batch Processing - Execute multiple variable sets simultaneously ✅
  • Results Export - Export comprehensive execution results ✅
  • MCP Integration - Model Context Protocol server for AI agent access ✅
  • API Endpoints - RESTful API for programmatic access ✅
  • AI Provider Integration - Direct integration with OpenAI, Claude, etc.
  • Prompt Sharing - Import/export collections
  • Team Collaboration - Share collections with team members
  • Advanced Variables - File uploads, dropdowns, validation
  • Analytics - Usage statistics and prompt performance
  • Enhanced MCP Tools - More AI agent capabilities

🤝 Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Commit changes: git commit -m 'Add amazing feature'
  4. Push to branch: git push origin feature/amazing-feature
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

  • Inspired by professional API testing tools and modern development workflows
  • Built with modern web development best practices
  • Designed for the AI-powered development era

Made with ❤️ for the AI community

Simplifying prompt management, one variable at a time.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Serper MCP ServerA Serper MCP Server
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
CursorThe AI Code Editor
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
ChatWiseThe second fastest AI chatbot™
DeepChatYour AI Partner on Desktop
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Amap Maps高德地图官方 MCP Server
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Tavily Mcp
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Playwright McpPlaywright MCP server