Sponsored by Deepsite.site

Prompt Manager

Created By
appositeit7 months ago
A web and API-based system for managing, composing, and organizing AI prompts, with an MCP server for intetgration with common AI pltforms (Claude Desktop, Cursor, Windsurf, etc.).
Content

Prompt Manager

A standalone system for managing AI prompts with composable elements.

Overview

Prompt Manager provides a web interface and API for creating, organizing, and managing prompts for AI interactions. It supports composable templates, prompt directories, and real-time editing. There is a focus on keyboard shortcuts and efficient workflow- directory listing and prompt embedding support tab completion, most interactions can be navigated using keyboard shortcuts, etc.

Features

  • Create and manage prompts (standard and composite)
  • Compose templates with prompt inclusions and expansions
  • Real-time editing via WebSocket (for prompts)
  • Access prompts via RESTful API
  • Render templates with all inclusions expanded
  • Organize prompts in directories
  • Integrates with Model Context Protocol (MCP) for advanced prompt workflows

Quick Start

  1. Clone the repository:

    git clone <repository-url>
    cd prompt_manager
    
  2. Set up the environment (choose one):

    # Using Taskfile (recommended for full dev setup)
    task setup:py
    task setup:js
    task setup:e2e
    # Or using Makefile
    make setup
    
  3. Run the application:

    ./bin/start_prompt_manager.sh
    # Or
    bin/restart_prompt_manager.sh
    
  4. Open your browser to http://localhost:8081

Usage

The prompt manager can be used in two ways:

  1. Web Interface: Access the web UI at http://localhost:8081
  2. API: Use the RESTful API endpoints to programmatically manage prompts

API Endpoints

Prompt Management

  • GET /api/prompts/all: List all prompts
  • GET /api/prompts/{prompt_id}: Get a specific prompt
  • POST /api/prompts: Create a new prompt
  • PUT /api/prompts/{prompt_id}: Update a prompt
  • DELETE /api/prompts/{prompt_id}: Delete a prompt
  • POST /api/prompts/expand: Render a template with inclusions expanded
  • POST /api/prompts/rename: Rename a prompt

Directory Management

  • GET /api/prompts/directories/all: List all prompt directories
  • POST /api/prompts/directories: Add a new directory
  • DELETE /api/prompts/directories/{directory_path}: Remove a directory
  • POST /api/prompts/reload: Reload all prompts from all directories

WebSocket Interface

  • Connect to /api/prompts/ws/{prompt_id} for real-time prompt editing
  • Uses standard WebSocket protocol with JSON messages for updates

Configuration

The system uses several directories for prompt storage:

  • Project data directory: prompt_manager/data/prompts/
  • User config directory: ~/.prompt_manager/prompts/

MCP Integration

Prompt Manager supports integration with the Model Context Protocol (MCP) for advanced prompt workflows and Claude Desktop compatibility. See mcp_server/ and related scripts for details.

Development & Testing

  • Run tests with pytest or using the provided Taskfile/Makefile targets.
  • See CHANGES.md for recent updates and protocol fixes.
  • See README.md in mcp_server/ for MCP-specific details.

License

Apache License 2.0. See LICENSE.

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
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.
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
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.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Playwright McpPlaywright MCP server
Tavily Mcp
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"
DeepChatYour AI Partner on Desktop
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Amap Maps高德地图官方 MCP Server
Serper MCP ServerA Serper MCP Server
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
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.
WindsurfThe new purpose-built IDE to harness magic
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors