Skip to main content
Glama
KrishBnsl

PromptVault MCP Server

by KrishBnsl

PromptVault

Open-Source-Prompt-Versionierung, -Evaluierung und -Verwaltung als MCP-Server.

Python 3.11+ License: MIT Docs

Was ist PromptVault?

PromptVault ist ein selbst gehostetes Tool für KI-Ingenieure und Prompt-Ingenieure:

  • Prompts versionieren wie Code mit unveränderlichen Versionen und Rollback-Unterstützung

  • Prompts evaluieren gegen Datensätze mithilfe von LLM-Anbietern (OpenAI, Anthropic, Ollama)

  • Auf alles zugreifen über einen MCP-Server, die CLI oder eine REST-API

Related MCP server: PromptingBox MCP Server

Schnellstart

Installation (kein Klonen erforderlich)

pip install pvlt

Oder mit uv/pipx:

uvx --from git+https://github.com/KrishBnsl/promptVault.git promptctl --help

Oder mit Docker:

docker run -p 8000:8000 -e GEMINI_API_KEY=your-key ghcr.io/krishbnsl/pvlt

Aus dem Quellcode

git clone https://github.com/KrishBnsl/promptVault.git
cd promptVault
uv sync
cp .env.example .env
# Edit .env with your API keys

Erstellen Sie Ihren ersten Prompt

promptctl prompt create summarize \
  --content "Summarize the following article in {tone} style:\n\n{article}" \
  --description "Summarizes an article" \
  --variables '{"tone": "concise", "article": "string"}' \
  --model-config '{"provider": "openai", "model": "gpt-4o-mini", "temperature": 0.2}' \
  --tags "summarization,content"

Erstellen Sie einen Datensatz

echo '{"input": {"article": "AI is transforming..."}, "expected_output": "AI transforms..."}' > dataset.jsonl
promptctl dataset create article-summaries --file dataset.jsonl

Evaluierung ausführen

promptctl eval run summarize --dataset article-summaries

Verwendung mit MCP (Claude Desktop)

Fügen Sie Ihrer Claude Desktop-Konfiguration Folgendes hinzu:

{
  "mcpServers": {
    "pvlt": {
      "command": "promptctl",
      "args": ["serve"]
    }
  }
}

CLI-Referenz

promptctl prompt create <name> --content <text> [options]
promptctl prompt list [--tags TAGS] [--limit N]
promptctl prompt show <name> [--version N]
promptctl prompt versions <name>
promptctl prompt diff <name> <version-a> <version-b>
promptctl prompt rollback <name> --version N

promptctl dataset create <name> --file <jsonl-or-json>
promptctl dataset list

promptctl eval run <prompt-name> --dataset <dataset-name>
promptctl eval report <evaluation-id>

promptctl serve [--stdio|--http] [--port 8000]
promptctl web [--port 8080]

MCP-Tools

Tool

Beschreibung

prompt_create

Erstellt einen neuen Prompt mit einer Anfangsversion

prompt_get

Ruft eine Prompt-Version ab

prompt_list

Listet alle Prompts auf

prompt_versions

Listet alle Versionen eines Prompts auf

prompt_diff

Vergleicht zwei Prompt-Versionen

prompt_rollback

Führt ein Rollback auf eine frühere Version durch

dataset_create

Erstellt einen Datensatz

dataset_list

Listet Datensätze auf

dataset_get

Ruft einen Datensatz mit Elementen ab

evaluation_run

Führt eine Evaluierung aus

evaluation_status

Prüft den Evaluierungsstatus

evaluation_report

Ruft den Evaluierungsbericht ab

evaluation_compare

Vergleicht zwei Evaluierungen

REST-API

Basis-URL: http://localhost:8000/api

# Create a prompt
curl -X POST http://localhost:8000/api/prompts \
  -H "Content-Type: application/json" \
  -d '{"name": "test", "content": "Hello {name}"}'

# List prompts
curl http://localhost:8000/api/prompts

# Get a prompt
curl http://localhost:8000/api/prompts/test

Konfiguration

Kopieren Sie .env.example in .env und konfigurieren Sie:

PROMPTVAULT_DB_PATH=./promptvault.db
PROMPTVAULT_DEFAULT_PROVIDER=openai
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=...
OLLAMA_BASE_URL=http://localhost:11434

Architektur

┌─────────────┐   ┌─────────────┐   ┌─────────────┐
│   MCP Client │   │     CLI     │   │  REST Client │
│ (Claude etc) │   │ (promptctl) │   │ (curl, apps) │
└──────┬──────┘   └──────┬──────┘   └──────┬──────┘
       │                 │                 │
       ▼                 ▼                 ▼
┌─────────────────────────────────────────────────┐
│              PromptVault Core                   │
│  ┌─────────────┐ ┌──────────────┐ ┌──────────┐ │
│  │ Versioning  │ │ Evaluation   │ │ Storage  │ │
│  │ Engine      │ │ Engine       │ │ Layer    │ │
│  └─────────────┘ └──────────────┘ └──────────┘ │
│  ┌──────────────────────────────────────────┐  │
│  │        SQLite Database (local)           │  │
│  └──────────────────────────────────────────┘  │
└─────────────────────────────────────────────────┘

Dokumentation

📖 Vollständige Dokumentation: https://krishbnsl.github.io/promptVault/

Lizenz

MIT-Lizenz - siehe LICENSE für Details.

Related MCP Connectors

Related MCP Servers

Appeared in Searches